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
3c1e8b68
Commit
3c1e8b68
authored
Oct 19, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-10-19 生产驾驶舱接口调整
parent
7789aafe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
21 deletions
+13
-21
ServiceHGSC007.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
+13
-21
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC007.java
View file @
3c1e8b68
...
@@ -14,12 +14,7 @@ import com.baosight.hggp.hg.xs.domain.Company;
...
@@ -14,12 +14,7 @@ import com.baosight.hggp.hg.xs.domain.Company;
import
com.baosight.hggp.hg.xs.domain.Factory
;
import
com.baosight.hggp.hg.xs.domain.Factory
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.*
;
import
com.baosight.hggp.util.DateUtil
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.hggp.util.StringUtil
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.hggp.util.contants.ACConstants
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
...
@@ -293,10 +288,9 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -293,10 +288,9 @@ public class ServiceHGSC007 extends ServiceEPBase {
@OperationLogAnnotation
(
operModul
=
"生产驾驶舱"
,
operType
=
"工序日产量"
,
operDesc
=
"工序日产量"
)
@OperationLogAnnotation
(
operModul
=
"生产驾驶舱"
,
operType
=
"工序日产量"
,
operDesc
=
"工序日产量"
)
public
EiInfo
getByProcessWt
(
EiInfo
inInfo
)
{
public
EiInfo
getByProcessWt
(
EiInfo
inInfo
)
{
try
{
try
{
EiBlock
queryRow
=
inInfo
.
getBlock
(
EiConstant
.
queryBlock
);
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
depositDate
=
queryRow
.
getCellStr
(
ACConstants
.
ROW_CODE_0
,
"depositDate"
);
if
(
queryRow
.
containsKey
(
"depositDate"
))
{
if
(
StringUtils
.
isEmpty
(
depositDate
))
{
queryRow
.
put
(
"depositDate"
,
DateUtils
.
formatShort
(
queryRow
.
get
(
"depositDate"
)));
queryRow
.
setCell
(
ACConstants
.
ROW_CODE_0
,
"depositDate"
,
depositDate
);
}
}
List
result
=
DaoBase
.
getInstance
().
query
(
"HGSC007.queryByWt"
,
queryRow
);
List
result
=
DaoBase
.
getInstance
().
query
(
"HGSC007.queryByWt"
,
queryRow
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
...
@@ -309,12 +303,11 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -309,12 +303,11 @@ public class ServiceHGSC007 extends ServiceEPBase {
@OperationLogAnnotation
(
operModul
=
"生产驾驶舱"
,
operType
=
"工序累计产量"
,
operDesc
=
"工序累计产量"
)
@OperationLogAnnotation
(
operModul
=
"生产驾驶舱"
,
operType
=
"工序累计产量"
,
operDesc
=
"工序累计产量"
)
public
EiInfo
queryBySunWt
(
EiInfo
inInfo
)
{
public
EiInfo
queryBySunWt
(
EiInfo
inInfo
)
{
try
{
try
{
EiBlock
queryRow
=
inInfo
.
getBlock
(
EiConstant
.
queryBlock
);
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
depositDate
=
queryRow
.
getCellStr
(
ACConstants
.
ROW_CODE_0
,
"depositDate"
);
if
(
queryRow
.
containsKey
(
"depositDate"
))
{
if
(
StringUtils
.
isEmpty
(
depositDate
))
{
queryRow
.
put
(
"depositDate"
,
DateUtils
.
formatShort
(
queryRow
.
get
(
"depositDate"
)));
queryRow
.
setCell
(
ACConstants
.
ROW_CODE_0
,
"depositDate"
,
depositDate
);
}
}
List
result
=
DaoBase
.
getInstance
().
query
(
"HGSC007.queryBySunWt"
,
queryRow
);
List
<
Map
>
result
=
DaoBase
.
getInstance
().
query
(
"HGSC007.queryBySunWt"
,
queryRow
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
...
@@ -325,10 +318,9 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -325,10 +318,9 @@ public class ServiceHGSC007 extends ServiceEPBase {
@OperationLogAnnotation
(
operModul
=
"生产驾驶舱"
,
operType
=
"7日综合产量"
,
operDesc
=
"7日综合产量"
)
@OperationLogAnnotation
(
operModul
=
"生产驾驶舱"
,
operType
=
"7日综合产量"
,
operDesc
=
"7日综合产量"
)
public
EiInfo
getByProcessDayWt
(
EiInfo
inInfo
)
{
public
EiInfo
getByProcessDayWt
(
EiInfo
inInfo
)
{
try
{
try
{
EiBlock
queryRow
=
inInfo
.
getBlock
(
EiConstant
.
queryBlock
);
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
depositDate
=
queryRow
.
getCellStr
(
ACConstants
.
ROW_CODE_0
,
"depositDate"
);
if
(
queryRow
.
containsKey
(
"depositDate"
))
{
if
(
StringUtils
.
isEmpty
(
depositDate
))
{
queryRow
.
put
(
"depositDate"
,
DateUtils
.
formatShort
(
queryRow
.
get
(
"depositDate"
)));
queryRow
.
setCell
(
ACConstants
.
ROW_CODE_0
,
"depositDate"
,
depositDate
);
}
}
List
result
=
DaoBase
.
getInstance
().
query
(
"HGSC007.queryByDayWt"
,
queryRow
);
List
result
=
DaoBase
.
getInstance
().
query
(
"HGSC007.queryByDayWt"
,
queryRow
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
...
@@ -341,7 +333,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -341,7 +333,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
@OperationLogAnnotation
(
operModul
=
"生产任务"
,
operType
=
"主要项目产量"
,
operDesc
=
"主要项目产量"
)
@OperationLogAnnotation
(
operModul
=
"生产任务"
,
operType
=
"主要项目产量"
,
operDesc
=
"主要项目产量"
)
public
EiInfo
getByProjCodeWt
(
EiInfo
inInfo
)
{
public
EiInfo
getByProjCodeWt
(
EiInfo
inInfo
)
{
try
{
try
{
EiBlock
queryRow
=
inInfo
.
getBlock
(
EiConstant
.
queryBlock
);
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
List
<
Map
>
result
=
DaoBase
.
getInstance
().
query
(
HGSC007
.
QUERY_PROJ_CODE_WT
,
queryRow
);
List
<
Map
>
result
=
DaoBase
.
getInstance
().
query
(
HGSC007
.
QUERY_PROJ_CODE_WT
,
queryRow
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
...
@@ -353,7 +345,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
...
@@ -353,7 +345,7 @@ public class ServiceHGSC007 extends ServiceEPBase {
@OperationLogAnnotation
(
operModul
=
"生产任务"
,
operType
=
"日月年产量"
,
operDesc
=
"日月年产量"
)
@OperationLogAnnotation
(
operModul
=
"生产任务"
,
operType
=
"日月年产量"
,
operDesc
=
"日月年产量"
)
public
EiInfo
getByProcessSumWt
(
EiInfo
inInfo
)
{
public
EiInfo
getByProcessSumWt
(
EiInfo
inInfo
)
{
try
{
try
{
EiBlock
queryRow
=
inInfo
.
getBlock
(
EiConstant
.
queryBlock
);
Map
queryRow
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
List
result
=
DaoBase
.
getInstance
().
query
(
HGSC007
.
QUERY_SUM_WT
,
queryRow
);
List
result
=
DaoBase
.
getInstance
().
query
(
HGSC007
.
QUERY_SUM_WT
,
queryRow
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
inInfo
.
set
(
EiConstant
.
resultBlock
,
result
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
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