Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
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
hlcm
leaf-hlcm
Commits
93c8538f
Commit
93c8538f
authored
Dec 11, 2024
by
38823
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
机易查优化
parent
ac0c2df4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
14 deletions
+19
-14
JYCInterfaceController.java
...s/hlcm/hlinteface/controllers/JYCInterfaceController.java
+15
-13
JYCInterfaceMapper.xml
...om/hand/hls/hlcm/hlinteface/mapper/JYCInterfaceMapper.xml
+4
-1
No files found.
src/main/java/com/hand/hls/hlcm/hlinteface/controllers/JYCInterfaceController.java
View file @
93c8538f
...
...
@@ -76,20 +76,21 @@ public class JYCInterfaceController extends BaseController {
//BusinessModelService bms = dsf.getModelService(BM_PATH, context);
List
<
Map
>
result
=
jYCInterfaceMapper
.
selectJycList
(
equNo
);
if
(
result
!=
null
)
{
Map
map
=
result
.
get
(
0
);
if
(!
ObjectUtils
.
isEmpty
(
map
))
{
if
(
result
.
size
()
>
0
)
{
Map
map
=
result
.
get
(
0
);
if
(!
ObjectUtils
.
isEmpty
(
map
))
{
existsFlag
=
true
;
JSONObject
JYCResponseBody
=
new
JSONObject
();
JYCResponseBody
.
put
(
"equNm"
,
map
.
get
(
"EQUNM"
));
JYCResponseBody
.
put
(
"brandName"
,
map
.
get
(
"BRANDNAME"
));
JYCResponseBody
.
put
(
"equMdl"
,
map
.
get
(
"EQUMDL"
));
JYCResponseBody
.
put
(
"vinNo"
,
map
.
get
(
"VINNO"
));
JYCResponseBody
.
put
(
"machineNo"
,
map
.
get
(
"MACHINENO"
));
JYCResponseBody
.
put
(
"status"
,
map
.
get
(
"STATUS"
));
JYCResponseBody
.
put
(
"platform"
,
WJFL_FIELD
);
resultjson
.
put
(
"JYCResponseBody"
,
JYCResponseBody
);
resultjson
.
put
(
"ResponseCode"
,
"01"
);
resultjson
.
put
(
"ResponseMsg"
,
"交易正常"
);
JSONObject
JYCResponseBody
=
new
JSONObject
();
JYCResponseBody
.
put
(
"equNm"
,
map
.
get
(
"EQUNM"
));
JYCResponseBody
.
put
(
"brandName"
,
map
.
get
(
"BRANDNAME"
));
JYCResponseBody
.
put
(
"equMdl"
,
map
.
get
(
"EQUMDL"
));
JYCResponseBody
.
put
(
"vinNo"
,
map
.
get
(
"VINNO"
));
JYCResponseBody
.
put
(
"machineNo"
,
map
.
get
(
"MACHINENO"
));
JYCResponseBody
.
put
(
"status"
,
map
.
get
(
"STATUS"
));
JYCResponseBody
.
put
(
"platform"
,
WJFL_FIELD
);
resultjson
.
put
(
"JYCResponseBody"
,
JYCResponseBody
);
resultjson
.
put
(
"ResponseCode"
,
"01"
);
resultjson
.
put
(
"ResponseMsg"
,
"交易正常"
);
/*for (CompositeMap child : valueList) {3
existsFlag = true;
if (child == null) {
...
...
@@ -100,6 +101,7 @@ public class JYCInterfaceController extends BaseController {
}
}*/
}
}
}
if
(!
existsFlag
)
{
...
...
src/main/resources/com/hand/hls/hlcm/hlinteface/mapper/JYCInterfaceMapper.xml
View file @
93c8538f
...
...
@@ -9,7 +9,10 @@
select nvl(t2.equnm,'') equnm,
nvl(t2.brandname,'')brandname,
nvl(t2.equmdl,'')equmdl,
nvl(t2.vinno,'')vinno,
(case when length(t2.vinno) >7 then
nvl(SUBSTR(t2.vinno,1,3)||TRIM( LPAD(' ', LENGTH( TRIM(t2.vinno))-6,'*') )||SUBSTR(t2.vinno,LENGTH( TRIM(t2.vinno)) - 3),'')
else
t2.vinno end) vinno,
nvl(t2.machineno,'')machineno,
t2.status
from (select t1.*
...
...
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