Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
7faa8c9e
Commit
7faa8c9e
authored
Apr 23, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.pseer.com/platform/hp-smart
into dev-ly
parents
1207a0d7
8087fdf0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
ServiceHPBI003.java
.../java/com/baosight/hpjx/hp/bi/service/ServiceHPBI003.java
+16
-0
ServiceHPSC003.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
+6
-0
No files found.
src/main/java/com/baosight/hpjx/hp/bi/service/ServiceHPBI003.java
View file @
7faa8c9e
...
@@ -59,6 +59,13 @@ public class ServiceHPBI003 extends ServiceBase {
...
@@ -59,6 +59,13 @@ public class ServiceHPBI003 extends ServiceBase {
JSONObject
jsonObject
=
(
JSONObject
)
jsonArray
.
get
(
0
);
JSONObject
jsonObject
=
(
JSONObject
)
jsonArray
.
get
(
0
);
JSONArray
idsArr
=
(
JSONArray
)
jsonObject
.
get
(
"ids"
);
JSONArray
idsArr
=
(
JSONArray
)
jsonObject
.
get
(
"ids"
);
String
idsStr
=
idsArr
.
getString
(
0
);
String
idsStr
=
idsArr
.
getString
(
0
);
JSONObject
paramsObj
=
null
;
if
(
jsonObject
.
get
(
"params"
)
instanceof
String
)
{
paramsObj
=
JSON
.
parseObject
((
String
)
jsonObject
.
get
(
"params"
));
}
else
{
paramsObj
=
(
JSONObject
)
jsonObject
.
get
(
"params"
);
}
String
deviceCodeStr
=
paramsObj
.
getString
(
"deviceCode"
);
EiInfo
eiInfo
=
new
EiInfo
();
EiInfo
eiInfo
=
new
EiInfo
();
String
serviceId
=
"S_BE_XP_17"
;
String
serviceId
=
"S_BE_XP_17"
;
eiInfo
.
set
(
EiConstant
.
serviceId
,
serviceId
);
eiInfo
.
set
(
EiConstant
.
serviceId
,
serviceId
);
...
@@ -74,6 +81,7 @@ public class ServiceHPBI003 extends ServiceBase {
...
@@ -74,6 +81,7 @@ public class ServiceHPBI003 extends ServiceBase {
//数据集入参
//数据集入参
Map
params
=
new
HashMap
();
Map
params
=
new
HashMap
();
params
.
put
(
"companycode"
,
companycode
);
params
.
put
(
"companycode"
,
companycode
);
params
.
put
(
"deviceCode"
,
deviceCodeStr
);
map
.
put
(
"params"
,
params
);
map
.
put
(
"params"
,
params
);
List
list
=
new
ArrayList
();
List
list
=
new
ArrayList
();
list
.
add
(
map
);
list
.
add
(
map
);
...
@@ -122,6 +130,13 @@ public class ServiceHPBI003 extends ServiceBase {
...
@@ -122,6 +130,13 @@ public class ServiceHPBI003 extends ServiceBase {
JSONObject
jsonObject
=
(
JSONObject
)
jsonArray
.
get
(
0
);
JSONObject
jsonObject
=
(
JSONObject
)
jsonArray
.
get
(
0
);
JSONArray
idsArr
=
(
JSONArray
)
jsonObject
.
get
(
"ids"
);
JSONArray
idsArr
=
(
JSONArray
)
jsonObject
.
get
(
"ids"
);
String
idsStr
=
idsArr
.
getString
(
0
);
String
idsStr
=
idsArr
.
getString
(
0
);
JSONObject
paramsObj
=
null
;
if
(
jsonObject
.
get
(
"params"
)
instanceof
String
)
{
paramsObj
=
JSON
.
parseObject
((
String
)
jsonObject
.
get
(
"params"
));
}
else
{
paramsObj
=
(
JSONObject
)
jsonObject
.
get
(
"params"
);
}
String
deviceCodeStr
=
paramsObj
.
getString
(
"deviceCode"
);
EiInfo
eiInfo
=
new
EiInfo
();
EiInfo
eiInfo
=
new
EiInfo
();
String
serviceId
=
"S_BE_XP_17"
;
String
serviceId
=
"S_BE_XP_17"
;
eiInfo
.
set
(
EiConstant
.
serviceId
,
serviceId
);
eiInfo
.
set
(
EiConstant
.
serviceId
,
serviceId
);
...
@@ -137,6 +152,7 @@ public class ServiceHPBI003 extends ServiceBase {
...
@@ -137,6 +152,7 @@ public class ServiceHPBI003 extends ServiceBase {
//数据集入参
//数据集入参
Map
params
=
new
HashMap
();
Map
params
=
new
HashMap
();
params
.
put
(
"companycode"
,
companycode
);
params
.
put
(
"companycode"
,
companycode
);
params
.
put
(
"deviceCode"
,
deviceCodeStr
);
map
.
put
(
"params"
,
params
);
map
.
put
(
"params"
,
params
);
List
list
=
new
ArrayList
();
List
list
=
new
ArrayList
();
list
.
add
(
map
);
list
.
add
(
map
);
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC003.java
View file @
7faa8c9e
...
@@ -27,6 +27,7 @@ import com.baosight.iplat4j.core.ei.EiConstant;
...
@@ -27,6 +27,7 @@ import com.baosight.iplat4j.core.ei.EiConstant;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.soa.XLocalManager
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
...
@@ -296,6 +297,10 @@ public class ServiceHPSC003 extends ServiceBase {
...
@@ -296,6 +297,10 @@ public class ServiceHPSC003 extends ServiceBase {
*/
*/
public
EiInfo
qrcodePlanDetail
(
EiInfo
inInfo
)
{
public
EiInfo
qrcodePlanDetail
(
EiInfo
inInfo
)
{
try
{
try
{
// EiInfo callInfo = new EiInfo();
// callInfo.set(EiConstant.serviceName, "");
// callInfo.set(EiConstant.methodName, "");
// XLocalManager.call(callInfo);
String
planInfoNo
=
inInfo
.
getString
(
HPSC003
.
FIELD_PLAN_INFO_NO
);
String
planInfoNo
=
inInfo
.
getString
(
HPSC003
.
FIELD_PLAN_INFO_NO
);
AssertUtils
.
isNull
(
planInfoNo
,
"计划号不能为空"
);
AssertUtils
.
isNull
(
planInfoNo
,
"计划号不能为空"
);
// 查询计划主信息
// 查询计划主信息
...
@@ -326,6 +331,7 @@ public class ServiceHPSC003 extends ServiceBase {
...
@@ -326,6 +331,7 @@ public class ServiceHPSC003 extends ServiceBase {
return
;
return
;
}
}
List
<
Map
>
dbSc004Maps
=
dbSc004s
.
stream
().
map
(
HPSC004:
:
toMap
).
collect
(
Collectors
.
toList
());
List
<
Map
>
dbSc004Maps
=
dbSc004s
.
stream
().
map
(
HPSC004:
:
toMap
).
collect
(
Collectors
.
toList
());
dbSc003Map
.
put
(
"planDetail"
,
dbSc004Maps
);
// 派工信息
// 派工信息
buildProdOrder
(
dbSc004Maps
);
buildProdOrder
(
dbSc004Maps
);
}
}
...
...
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