Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
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
platform
hg-smart
Commits
b5c8735b
Commit
b5c8735b
authored
Oct 30, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-sx' of
http://129.211.46.84:8800/platform/hg-smart
into master-dc
parents
d23c3691
a736e4e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
ServiceHGSC101.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC101.java
+14
-2
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC101.java
View file @
b5c8735b
...
...
@@ -6,6 +6,7 @@ import com.baosight.hggp.core.extapp.decheng.api.DcOpenApi;
import
com.baosight.hggp.core.extapp.decheng.model.DcContract
;
import
com.baosight.hggp.core.extapp.decheng.model.DcContractList
;
import
com.baosight.hggp.core.model.Pager
;
import
com.baosight.hggp.core.tools.CodeValueTools
;
import
com.baosight.hggp.core.utils.ThreadUtils
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
...
...
@@ -232,8 +233,19 @@ public class ServiceHGSC101 extends ServiceEPBase {
* @return
*/
private
String
getProjectSource
(
String
name
)
{
ProjectSourceEnum
projectSourceEnum
=
ProjectSourceEnum
.
getByName
(
name
);
return
projectSourceEnum
==
null
?
ProjectSourceEnum
.
OTHER
.
getCode
()
:
projectSourceEnum
.
getCode
();
List
<
Map
>
codesetMaps
=
CodeValueTools
.
getCodeValues
(
"app.sc.projectSource"
);
if
(
CollectionUtils
.
isEmpty
(
codesetMaps
))
{
ProjectSourceEnum
projectSourceEnum
=
ProjectSourceEnum
.
getByName
(
name
);
return
projectSourceEnum
==
null
?
ProjectSourceEnum
.
OTHER
.
getCode
()
:
projectSourceEnum
.
getCode
();
}
for
(
Map
codesetMap
:
codesetMaps
)
{
String
value
=
MapUtils
.
getString
(
codesetMap
,
"value"
);
String
text
=
MapUtils
.
getString
(
codesetMap
,
"label"
);
if
(
text
.
equals
(
name
))
{
return
value
;
}
}
return
ProjectSourceEnum
.
OTHER
.
getCode
();
}
}
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