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
ecfaf75d
Commit
ecfaf75d
authored
Aug 08, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-08-08 生产任务和生产报工增加长度、规格字段
parent
c8c6c7d0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
12 deletions
+29
-12
ServiceHGSC006A.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC006A.java
+11
-4
ServiceHGSC006B.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC006B.java
+10
-2
HGSC007.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
+0
-0
HGSC008.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC008.xml
+0
-0
sqlmap-config.xml
src/main/resources/resources/ibatis/sqlmap-config.xml
+2
-2
HGSC007A.jsp
src/main/webapp/HG/SC/HGSC007A.jsp
+6
-4
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC006A.java
View file @
ecfaf75d
...
...
@@ -3,12 +3,11 @@ package com.baosight.hggp.hg.sc.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.common.AssignStatusEnum
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.sc.domain.HGSC005A
;
import
com.baosight.hggp.hg.sc.domain.HGSC006
;
import
com.baosight.hggp.hg.sc.domain.HGSC006A
;
import
com.baosight.hggp.hg.sc.domain.HGSC007
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005
;
import
com.baosight.hggp.hg.sc.domain.*
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.BeanUtils
;
...
...
@@ -23,6 +22,8 @@ import com.baosight.iplat4j.ed.util.SequenceGenerator;
import
java.math.BigDecimal
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
...
...
@@ -67,6 +68,7 @@ public class ServiceHGSC006A extends ServiceBase {
String
groupCode
=
inInfo
.
getString
(
"groupCode"
);
String
groupName
=
inInfo
.
getString
(
"groupName"
);
HGSC006
hgsc006
=
HGSCTools
.
THGSC006
.
getByOrderCode
(
orderCode
);
List
<
HGPZ005
>
hgpz005List
=
DaoBase
.
getInstance
().
query
(
HGPZ005
.
QUERY
,
new
HashMap
<>());
for
(
String
orderDetailId
:
orderDetailIds
)
{
// 校验主订单是否已分派
HGSC006A
hgsc006A
=
HGSCTools
.
THGSC006A
.
getById
(
Long
.
parseLong
(
orderDetailId
));
...
...
@@ -89,10 +91,15 @@ public class ServiceHGSC006A extends ServiceBase {
default
:
throw
new
PlatException
(
String
.
format
(
"生产订单[%s]%s状态异常,请联系管理员!"
,
hgsc006A
.
getProcessName
(),
hgsc006A
.
getProductName
()));
}
HGPZ005
hgpz005
=
hgpz005List
.
stream
().
filter
(
pz005
->
pz005
.
getInventCode
().
equals
(
hgsc006A
.
getProductCode
())).
findAny
().
get
();
// 写入子表数据
HGSC007
hgsc007
=
new
HGSC007
();
BeanUtils
.
copyProperties
(
hgsc006A
,
hgsc007
);
cleanBaseInfo
(
hgsc007
);
if
(
hgpz005
!=
null
)
{
hgsc007
.
setSpec
(
hgpz005
.
getSpec
());
hgsc007
.
setLength
(
hgpz005
.
getLength
());
}
hgsc007
.
setTaskCode
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
HGSC007_TASK_CODE
));
hgsc007
.
setMatId
(
hgsc006
.
getMatId
());
hgsc007
.
setOrderId
(
hgsc006
.
getId
());
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC006B.java
View file @
ecfaf75d
...
...
@@ -3,9 +3,12 @@ package com.baosight.hggp.hg.sc.service;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.common.ProductTypeEnum
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoBase
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.enums.OrgTypeEnum
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.pz.domain.HGPZ005
;
import
com.baosight.hggp.hg.pz.tools.HGPZTools
;
import
com.baosight.hggp.hg.sc.domain.*
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.xs.domain.Org
;
...
...
@@ -145,12 +148,13 @@ public class ServiceHGSC006B extends ServiceBase {
HGSC006A
hgsc006A
=
HGSCTools
.
THGSC006A
.
getById
(
orderDetailId
);
// 查询任务信息
List
<
HGSC007
>
hgsc007List
=
HGSCTools
.
THGSC007
.
list
(
taskIds
);
HGPZ005
hgpz005
=
HGPZTools
.
HgPz005
.
get
(
hgsc006A
.
getProductCode
());
// 写入数据
for
(
Map
resultRow
:
resultRows
)
{
HGSC007
hgsc007
=
new
HGSC007
();
hgsc007
.
fromMap
(
resultRow
);
if
(
hgsc007
.
getId
()
==
null
||
hgsc007
.
getId
()
==
0
)
{
this
.
add
(
hgsc006
,
hgsc006A
,
hgsc007
);
this
.
add
(
hgsc006
,
hgsc006A
,
hgsc007
,
hgpz005
);
}
else
{
this
.
modify
(
hgsc006A
,
hgsc007
,
hgsc007List
);
}
...
...
@@ -173,7 +177,7 @@ public class ServiceHGSC006B extends ServiceBase {
* @param hgsc006A
* @param hgsc007
*/
private
void
add
(
HGSC006
hgsc006
,
HGSC006A
hgsc006A
,
HGSC007
hgsc007
)
{
private
void
add
(
HGSC006
hgsc006
,
HGSC006A
hgsc006A
,
HGSC007
hgsc007
,
HGPZ005
hgpz005
)
{
Long
orderDetailId
=
hgsc006A
.
getId
();
// 数据校验
AssertUtils
.
isEmpty
(
hgsc007
.
getFactoryCode
(),
"请选择厂区"
);
...
...
@@ -196,6 +200,10 @@ public class ServiceHGSC006B extends ServiceBase {
add007
.
setGroupName
(
hgsc007
.
getGroupName
());
add007
.
setFactoryCode
(
hgsc007
.
getFactoryCode
());
add007
.
setFactoryName
(
hgsc007
.
getFactoryName
());
if
(
hgpz005
!=
null
)
{
add007
.
setSpec
(
hgpz005
.
getSpec
());
add007
.
setLength
(
hgpz005
.
getLength
());
}
DaoUtils
.
insert
(
HGSC007
.
INSERT
,
add007
);
}
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC007.xml
View file @
ecfaf75d
This diff is collapsed.
Click to expand it.
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC008.xml
View file @
ecfaf75d
This diff is collapsed.
Click to expand it.
src/main/resources/resources/ibatis/sqlmap-config.xml
View file @
ecfaf75d
...
...
@@ -56,8 +56,8 @@
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC005A.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC006.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC006A.xml"
/>
<
!--<
sqlMap resource="com/baosight/hggp/hg/sc/sql/HGSC007.xml"/>
<sqlMap resource="com/baosight/hggp/hg/sc/sql/HGSC008.xml"/>
-->
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC007.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC008.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC009.xml"
/>
<!-- 財務 -->
...
...
src/main/webapp/HG/SC/HGSC007A.jsp
View file @
ecfaf75d
...
...
@@ -14,22 +14,24 @@
<EF:EFInput
ename=
"result-0-processName"
cname=
"工序"
colWidth=
"4"
readonly=
"true"
/>
</div>
<div
class=
"row"
>
<EF:EFInput
ename=
"result-0-spec"
cname=
"规格"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-length"
cname=
"长度"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-singleWeight"
cname=
"单重(KG)"
colWidth=
"4"
format=
"{0:0.00}"
editType=
"text"
readonly=
"true"
/>
</div>
<div
class=
"row"
>
<EF:EFInput
ename=
"result-0-taskQuantity"
cname=
"任务数量"
format=
"{0:0}"
editType=
"text"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-taskWeight"
cname=
"任务重量"
format=
"{0:0.00}"
editType=
"text"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-registeredQuantity"
cname=
"已报工数量"
format=
"{0:0}"
editType=
"text"
colWidth=
"4"
readonly=
"true"
/>
</div>
<div
class=
"row"
>
<EF:EFInput
ename=
"result-0-registeredQuantity"
cname=
"已报工数量"
format=
"{0:0}"
editType=
"text"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-registeredWeight"
cname=
"已报工重量"
format=
"{0:0.00}"
editType=
"text"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-unregisterQuantity"
cname=
"剩余数量"
format=
"{0:0}"
editType=
"text"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-unregisterWeight"
cname=
"剩余重量"
format=
"{0:0.00}"
editType=
"text"
colWidth=
"4"
readonly=
"true"
/>
</div>
<div
class=
"row"
>
<EF:EFInput
ename=
"result-0-unregisterWeight"
cname=
"剩余重量"
format=
"{0:0.00}"
editType=
"text"
colWidth=
"4"
readonly=
"true"
/>
<EF:EFInput
ename=
"result-0-groupName"
cname=
"班组"
colWidth=
"4"
required=
"true"
readonly=
"true"
/>
<EF:EFDatePicker
cname=
"报工日期"
ename=
"result-0-registerDate"
colWidth=
"4"
format=
"yyyy-MM-dd"
required=
"true"
readonly=
"false"
/>
</div>
<div
class=
"row"
>
<EF:EFInput
ename=
"result-0-quantity"
cname=
"报工数量"
format=
"{0:0}"
editType=
"text"
colWidth=
"4"
required=
"true"
/>
<EF:EFInput
ename=
"result-0-totalWeight"
cname=
"报工重量"
format=
"{0:0.00}"
editType=
"text"
colWidth=
"4"
readonly=
"true"
/>
</div>
...
...
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