Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
yn-health-science
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐俊
yn-health-science
Commits
ebe704ec
Commit
ebe704ec
authored
Nov 30, 2024
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
58609977
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
9 deletions
+16
-9
ComProjectManagementRuleServiceImpl.java
...nce/service/impl/ComProjectManagementRuleServiceImpl.java
+1
-0
ComProjectServiceImpl.java
...m/yiboshi/science/service/impl/ComProjectServiceImpl.java
+8
-7
ComProjectSubServiceImpl.java
...iboshi/science/service/impl/ComProjectSubServiceImpl.java
+1
-0
ComProjectManagementRuleDAO.xml
...src/main/resources/mapper/ComProjectManagementRuleDAO.xml
+3
-1
ComProjectSubDAO.xml
science-admin/src/main/resources/mapper/ComProjectSubDAO.xml
+3
-1
No files found.
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectManagementRuleServiceImpl.java
View file @
ebe704ec
...
@@ -48,6 +48,7 @@ public class ComProjectManagementRuleServiceImpl extends BaseServiceImpl<ComProj
...
@@ -48,6 +48,7 @@ public class ComProjectManagementRuleServiceImpl extends BaseServiceImpl<ComProj
if
(!
isObjectNull
(
list
.
get
(
i
)))
{
if
(!
isObjectNull
(
list
.
get
(
i
)))
{
list
.
get
(
i
).
setObjectId
(
objectId
);
list
.
get
(
i
).
setObjectId
(
objectId
);
list
.
get
(
i
).
setShowIndex
(
i
+
1
);
list
.
get
(
i
).
setShowIndex
(
i
+
1
);
list
.
get
(
i
).
setFileId
(
list
.
get
(
i
).
getDownloadId
());
ComProjectManagementRule
comProjectManagementRule
=
convert2Entity
(
list
.
get
(
i
));
ComProjectManagementRule
comProjectManagementRule
=
convert2Entity
(
list
.
get
(
i
));
this
.
insert
(
comProjectManagementRule
);
this
.
insert
(
comProjectManagementRule
);
}
}
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectServiceImpl.java
View file @
ebe704ec
...
@@ -259,6 +259,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
...
@@ -259,6 +259,7 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
dto
.
setDepositBankAddress
(
null
);
dto
.
setDepositBankAddress
(
null
);
dto
.
setInterbankNumber
(
null
);
dto
.
setInterbankNumber
(
null
);
}
}
//经费表
//经费表
List
<
ComProjectBudgetDTO
>
budgetList
=
comProjectBudgetService
.
getList
(
projType
);
List
<
ComProjectBudgetDTO
>
budgetList
=
comProjectBudgetService
.
getList
(
projType
);
dto
.
setBudget
(
budgetList
);
dto
.
setBudget
(
budgetList
);
...
@@ -297,13 +298,13 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
...
@@ -297,13 +298,13 @@ public class ComProjectServiceImpl extends BaseServiceImpl<ComProjectDAO, ComPro
if
(
null
!=
comUnitDTO
)
{
if
(
null
!=
comUnitDTO
)
{
dto
.
setAppUnitName
(
comUnitDTO
.
getUnitName
());
dto
.
setAppUnitName
(
comUnitDTO
.
getUnitName
());
dto
.
setUnitTypeName
(
comUnitDTO
.
getUnitTypeName
());
dto
.
setUnitTypeName
(
comUnitDTO
.
getUnitTypeName
());
dto
.
setOrganizationCode
(
null
);
//
dto.setOrganizationCode(null);
dto
.
setAddress
(
comUnitDTO
.
getUnitAddress
());
//
dto.setAddress(comUnitDTO.getUnitAddress());
dto
.
setLegalPerson
(
null
);
//
dto.setLegalPerson(null);
dto
.
setDepositBank
(
null
);
//
dto.setDepositBank(null);
dto
.
setBankAccount
(
null
);
//
dto.setBankAccount(null);
dto
.
setDepositBankAddress
(
null
);
//
dto.setDepositBankAddress(null);
dto
.
setInterbankNumber
(
null
);
//
dto.setInterbankNumber(null);
}
}
// 项目合作单位
// 项目合作单位
...
...
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectSubServiceImpl.java
View file @
ebe704ec
...
@@ -49,6 +49,7 @@ public class ComProjectSubServiceImpl extends BaseServiceImpl<ComProjectSubDAO,
...
@@ -49,6 +49,7 @@ public class ComProjectSubServiceImpl extends BaseServiceImpl<ComProjectSubDAO,
if
(!
isObjectNull
(
list
.
get
(
i
)))
{
if
(!
isObjectNull
(
list
.
get
(
i
)))
{
list
.
get
(
i
).
setObjectId
(
objectId
);
list
.
get
(
i
).
setObjectId
(
objectId
);
list
.
get
(
i
).
setShowIndex
(
i
+
1
);
list
.
get
(
i
).
setShowIndex
(
i
+
1
);
list
.
get
(
i
).
setFileId
(
list
.
get
(
i
).
getDownloadId
());
ComProjectSub
comProjectSub
=
convert2Entity
(
list
.
get
(
i
));
ComProjectSub
comProjectSub
=
convert2Entity
(
list
.
get
(
i
));
this
.
insert
(
comProjectSub
);
this
.
insert
(
comProjectSub
);
}
}
...
...
science-admin/src/main/resources/mapper/ComProjectManagementRuleDAO.xml
View file @
ebe704ec
...
@@ -7,8 +7,9 @@
...
@@ -7,8 +7,9 @@
t.id as id, t.object_id as objectId, t.unit_name as unitName, t.unit_address as unitAddress, t.project_work as projectWork
t.id as id, t.object_id as objectId, t.unit_name as unitName, t.unit_address as unitAddress, t.project_work as projectWork
</sql>
</sql>
<select
id=
"getListByObjectId"
parameterType=
"java.lang.String"
resultType=
"com.yiboshi.science.param.dto.ComProjectManagementRuleDTO"
>
<select
id=
"getListByObjectId"
parameterType=
"java.lang.String"
resultType=
"com.yiboshi.science.param.dto.ComProjectManagementRuleDTO"
>
SELECT a.*
SELECT a.*
,b.id download_id,b.download_url,b.file_name
FROM com_project_management_rule a
FROM com_project_management_rule a
left join com_download b on a.file_id=b.id
where object_id=#{objectId} order by a.show_index asc
where object_id=#{objectId} order by a.show_index asc
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
science-admin/src/main/resources/mapper/ComProjectSubDAO.xml
View file @
ebe704ec
...
@@ -7,8 +7,9 @@
...
@@ -7,8 +7,9 @@
t.id as id, t.object_id as objectId, t.unit_name as unitName, t.unit_address as unitAddress, t.project_work as projectWork
t.id as id, t.object_id as objectId, t.unit_name as unitName, t.unit_address as unitAddress, t.project_work as projectWork
</sql>
</sql>
<select
id=
"getListByObjectId"
parameterType=
"java.lang.String"
resultType=
"com.yiboshi.science.param.dto.ComProjectSubDTO"
>
<select
id=
"getListByObjectId"
parameterType=
"java.lang.String"
resultType=
"com.yiboshi.science.param.dto.ComProjectSubDTO"
>
SELECT a.*
SELECT a.*
,b.id download_id,b.download_url,b.file_name
FROM com_project_sub a
FROM com_project_sub a
left join com_download b on a.file_id=b.id
where object_id=#{objectId} order by a.show_index asc
where object_id=#{objectId} order by a.show_index asc
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment