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
a736e4e4
Commit
a736e4e4
authored
Oct 30, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.项目来源优先根据小代码进行匹配
parent
b8643c38
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 @
a736e4e4
...
@@ -6,6 +6,7 @@ import com.baosight.hggp.core.extapp.decheng.api.DcOpenApi;
...
@@ -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.DcContract
;
import
com.baosight.hggp.core.extapp.decheng.model.DcContractList
;
import
com.baosight.hggp.core.extapp.decheng.model.DcContractList
;
import
com.baosight.hggp.core.model.Pager
;
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.core.utils.ThreadUtils
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009
;
import
com.baosight.hggp.hg.pz.domain.HGPZ009
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
...
@@ -232,8 +233,19 @@ public class ServiceHGSC101 extends ServiceEPBase {
...
@@ -232,8 +233,19 @@ public class ServiceHGSC101 extends ServiceEPBase {
* @return
* @return
*/
*/
private
String
getProjectSource
(
String
name
)
{
private
String
getProjectSource
(
String
name
)
{
ProjectSourceEnum
projectSourceEnum
=
ProjectSourceEnum
.
getByName
(
name
);
List
<
Map
>
codesetMaps
=
CodeValueTools
.
getCodeValues
(
"app.sc.projectSource"
);
return
projectSourceEnum
==
null
?
ProjectSourceEnum
.
OTHER
.
getCode
()
:
projectSourceEnum
.
getCode
();
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