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
1790bf2b
Commit
1790bf2b
authored
Oct 20, 2024
by
lyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改生产驾驶舱service方法
parent
a13c62ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
16 deletions
+34
-16
ServiceHGSC007.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
+34
-16
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
View file @
1790bf2b
...
@@ -39,7 +39,7 @@ import java.util.stream.Collectors;
...
@@ -39,7 +39,7 @@ import java.util.stream.Collectors;
* @version 1.0 2024/5/24
* @version 1.0 2024/5/24
*/
*/
public
class
ServiceHGSC007
extends
ServiceEPBase
{
public
class
ServiceHGSC007
extends
ServiceEPBase
{
public
static
List
<
Map
<
String
,
Object
>>
getOrg
()
{
public
static
List
<
Map
<
String
,
Object
>>
getOrg
()
{
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
List
<
Org
>
orgList
=
HGXSTools
.
XsOrg
.
queryByUser
();
List
<
Org
>
orgList
=
HGXSTools
.
XsOrg
.
queryByUser
();
...
@@ -62,11 +62,11 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -62,11 +62,11 @@ public class ServiceHGSC007 extends ServiceEPBase {
}
}
list
.
add
(
objectMap
);
list
.
add
(
objectMap
);
}
}
}
}
return
list
;
return
list
;
}
}
/**
/**
* 初始化
* 初始化
*
*
...
@@ -84,7 +84,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -84,7 +84,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 查询
* 查询
*
*
...
@@ -107,7 +107,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -107,7 +107,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* 统计
* 统计
*
*
...
@@ -131,13 +131,13 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -131,13 +131,13 @@ public class ServiceHGSC007 extends ServiceEPBase {
}
}
return
count
;
return
count
;
}
}
@OperationLogAnnotation
(
operModul
=
"生产任务"
,
operType
=
"APP查询公司"
,
operDesc
=
"APP查询当前登陆用户角色所属公司"
)
@OperationLogAnnotation
(
operModul
=
"生产任务"
,
operType
=
"APP查询公司"
,
operDesc
=
"APP查询当前登陆用户角色所属公司"
)
public
List
<
Company
>
getRoleCompany
(
EiInfo
inInfo
)
{
public
List
<
Company
>
getRoleCompany
(
EiInfo
inInfo
)
{
List
<
Company
>
companyList
=
UserSessionUtils
.
getRoleCompany
();
List
<
Company
>
companyList
=
UserSessionUtils
.
getRoleCompany
();
return
companyList
;
return
companyList
;
}
}
@OperationLogAnnotation
(
operModul
=
"生产任务"
,
operType
=
"APP查询工厂"
,
operDesc
=
"APP查询当前登录用户角色所属工厂"
)
@OperationLogAnnotation
(
operModul
=
"生产任务"
,
operType
=
"APP查询工厂"
,
operDesc
=
"APP查询当前登录用户角色所属工厂"
)
public
List
<
Factory
>
getRoleFactory
(
EiInfo
inInfo
)
{
public
List
<
Factory
>
getRoleFactory
(
EiInfo
inInfo
)
{
List
<
Org
>
factoryCodes
=
new
ArrayList
<>();
List
<
Org
>
factoryCodes
=
new
ArrayList
<>();
...
@@ -161,7 +161,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -161,7 +161,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
m
->
new
ArrayList
<>(
m
.
values
())
m
->
new
ArrayList
<>(
m
.
values
())
));
));
}
}
/**
/**
* app查询工序累计产量
* app查询工序累计产量
*/
*/
...
@@ -180,7 +180,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -180,7 +180,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* app查询工序产量
* app查询工序产量
*/
*/
...
@@ -199,7 +199,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -199,7 +199,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* app查询工序日产量
* app查询工序日产量
*/
*/
...
@@ -223,7 +223,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -223,7 +223,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* app查询工序日产量
* app查询工序日产量
*/
*/
...
@@ -247,7 +247,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -247,7 +247,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
}
}
return
inInfo
;
return
inInfo
;
}
}
/**
/**
* app查询工序产量
* app查询工序产量
*/
*/
...
@@ -292,8 +292,17 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -292,8 +292,17 @@ public class ServiceHGSC007 extends ServiceEPBase {
if
(
queryRow
.
containsKey
(
"depositDate"
))
{
if
(
queryRow
.
containsKey
(
"depositDate"
))
{
queryRow
.
put
(
"depositDate"
,
DateUtils
.
formatShort
(
queryRow
.
get
(
"depositDate"
)));
queryRow
.
put
(
"depositDate"
,
DateUtils
.
formatShort
(
queryRow
.
get
(
"depositDate"
)));
}
}
List
result
=
DaoBase
.
getInstance
().
query
(
"HGSC007.queryByWt"
,
queryRow
);
List
<
HashMap
<
String
,
Object
>>
result
=
(
List
<
HashMap
<
String
,
Object
>>)
DaoBase
.
getInstance
().
query
(
"HGSC007.queryByWt"
,
queryRow
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
List
<
String
>
processNameList
=
result
.
stream
()
.
map
(
item
->
(
String
)
item
.
get
(
"processName"
))
.
collect
(
Collectors
.
toList
());
List
<
String
>
totalWeightList
=
result
.
stream
()
.
map
(
item
->
String
.
valueOf
(
item
.
get
(
"totalWeight"
)))
// 使用 String.valueOf()
.
collect
(
Collectors
.
toList
());
EiBlock
block
=
new
EiBlock
(
"result"
);
block
.
set
(
"processNameList"
,
processNameList
);
block
.
set
(
"totalWeightList"
,
totalWeightList
);
inInfo
.
setBlock
(
block
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
}
...
@@ -323,8 +332,17 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -323,8 +332,17 @@ public class ServiceHGSC007 extends ServiceEPBase {
if
(
queryRow
.
containsKey
(
"depositDate"
))
{
if
(
queryRow
.
containsKey
(
"depositDate"
))
{
queryRow
.
put
(
"depositDate"
,
DateUtils
.
formatShort
(
queryRow
.
get
(
"depositDate"
)));
queryRow
.
put
(
"depositDate"
,
DateUtils
.
formatShort
(
queryRow
.
get
(
"depositDate"
)));
}
}
List
result
=
DaoBase
.
getInstance
().
query
(
"HGSC007.queryByDayWt"
,
queryRow
);
List
<
HashMap
<
String
,
Object
>>
result
=
(
List
<
HashMap
<
String
,
Object
>>)
DaoBase
.
getInstance
().
query
(
"HGSC007.queryByDayWt"
,
queryRow
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
List
<
String
>
depositDateList
=
result
.
stream
()
.
map
(
item
->
(
String
)
item
.
get
(
"depositDate"
))
.
collect
(
Collectors
.
toList
());
List
<
String
>
totalWeightList
=
result
.
stream
()
.
map
(
item
->
String
.
valueOf
(
item
.
get
(
"totalWeight"
)))
// 使用 String.valueOf()
.
collect
(
Collectors
.
toList
());
EiBlock
block
=
new
EiBlock
(
"result"
);
block
.
set
(
"depositDateList"
,
depositDateList
);
block
.
set
(
"totalWeightList"
,
totalWeightList
);
inInfo
.
setBlock
(
block
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
}
...
...
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