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
f7b2be3a
Commit
f7b2be3a
authored
Aug 05, 2024
by
江和松
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
9dca58fc
b798d0f2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
HGSC004B.java
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC004B.java
+5
-5
HGSCTools.java
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
+5
-4
No files found.
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC004B.java
View file @
f7b2be3a
...
@@ -115,7 +115,7 @@ public class HGSC004B extends DaoEPBase {
...
@@ -115,7 +115,7 @@ public class HGSC004B extends DaoEPBase {
private
BigDecimal
thick
=
new
BigDecimal
(
"0"
);
/* 厚*/
private
BigDecimal
thick
=
new
BigDecimal
(
"0"
);
/* 厚*/
private
Integer
productStatus
=
new
Integer
(
0
);
/* 产品状态 0:未提交,1:已提交*/
private
Integer
productStatus
=
new
Integer
(
0
);
/* 产品状态 0:未提交,1:已提交*/
private
Integer
changeType
=
new
Integer
(
0
);
/* 变更类型:默认0,1:增加,2:替换,3:删除*/
private
Integer
changeType
=
new
Integer
(
0
);
/* 变更类型:默认0,1:增加,2:替换,3:删除*/
private
Integer
quantity
=
new
Integer
(
0
);
/* 数量*/
private
BigDecimal
quantity
=
new
BigDecimal
(
0
);
/* 数量*/
private
BigDecimal
singleWeight
=
new
BigDecimal
(
0.000
);
/* 单重*/
private
BigDecimal
singleWeight
=
new
BigDecimal
(
0.000
);
/* 单重*/
private
BigDecimal
totalWeight
=
new
BigDecimal
(
0.000
);
/* 总重*/
private
BigDecimal
totalWeight
=
new
BigDecimal
(
0.000
);
/* 总重*/
private
Integer
approvalStatus
=
new
Integer
(
0
);
/* 审批状态\t0:待审;1:审核中;2:已审*/
private
Integer
approvalStatus
=
new
Integer
(
0
);
/* 审批状态\t0:待审;1:审核中;2:已审*/
...
@@ -259,7 +259,7 @@ public class HGSC004B extends DaoEPBase {
...
@@ -259,7 +259,7 @@ public class HGSC004B extends DaoEPBase {
eiColumn
=
new
EiColumn
(
FIELD_quantity
);
eiColumn
=
new
EiColumn
(
FIELD_quantity
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
0
);
eiColumn
.
setScaleLength
(
0
);
eiColumn
.
setFieldLength
(
8
);
eiColumn
.
setFieldLength
(
20
);
eiColumn
.
setDescName
(
"数量"
);
eiColumn
.
setDescName
(
"数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
...
@@ -573,7 +573,7 @@ public class HGSC004B extends DaoEPBase {
...
@@ -573,7 +573,7 @@ public class HGSC004B extends DaoEPBase {
* get the quantity - 数量.
* get the quantity - 数量.
* @return the quantity
* @return the quantity
*/
*/
public
Integer
getQuantity
()
{
public
BigDecimal
getQuantity
()
{
return
this
.
quantity
;
return
this
.
quantity
;
}
}
...
@@ -582,7 +582,7 @@ public class HGSC004B extends DaoEPBase {
...
@@ -582,7 +582,7 @@ public class HGSC004B extends DaoEPBase {
*
*
* @param quantity - 数量
* @param quantity - 数量
*/
*/
public
void
setQuantity
(
Integer
quantity
)
{
public
void
setQuantity
(
BigDecimal
quantity
)
{
this
.
quantity
=
quantity
;
this
.
quantity
=
quantity
;
}
}
/**
/**
...
@@ -820,7 +820,7 @@ public class HGSC004B extends DaoEPBase {
...
@@ -820,7 +820,7 @@ public class HGSC004B extends DaoEPBase {
setInventType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_invent_type
)),
inventType
));
setInventType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_invent_type
)),
inventType
));
setProductStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_product_status
)),
productStatus
));
setProductStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_product_status
)),
productStatus
));
setChangeType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_change_type
)),
changeType
));
setChangeType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_change_type
)),
changeType
));
setQuantity
(
NumberUtils
.
to
Integer
(
StringUtils
.
toString
(
map
.
get
(
FIELD_quantity
)),
quantity
));
setQuantity
(
NumberUtils
.
to
BigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_quantity
)),
quantity
));
setSingleWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_single_weight
)),
singleWeight
));
setSingleWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_single_weight
)),
singleWeight
));
setTotalWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_total_weight
)),
totalWeight
));
setTotalWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_total_weight
)),
totalWeight
));
setApprovalStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_approval_status
)),
approvalStatus
));
setApprovalStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_approval_status
)),
approvalStatus
));
...
...
src/main/java/com/baosight/hggp/hg/sc/tools/HGSCTools.java
View file @
f7b2be3a
...
@@ -337,7 +337,7 @@ public class HGSCTools {
...
@@ -337,7 +337,7 @@ public class HGSCTools {
hgsc004a
.
setMaterialId
(
results
.
get
(
0
).
getId
());
hgsc004a
.
setMaterialId
(
results
.
get
(
0
).
getId
());
checkSaveData
(
hgsc004a
);
checkSaveData
(
hgsc004a
);
}
else
if
(
hgsc004a
.
getLv
()==
4
){
}
else
if
(
hgsc004a
.
getLv
()==
4
){
if
(
hgsc004a
.
getParentProdCode
().
length
()==
0
){
if
(
hgsc004a
.
getParentProdCode
().
trim
().
length
()==
0
){
AssertUtils
.
isTrue
(
true
,
"层级为4级,父节点-产品编号不能为空!"
);
AssertUtils
.
isTrue
(
true
,
"层级为4级,父节点-产品编号不能为空!"
);
}
}
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
...
@@ -1411,13 +1411,14 @@ public class HGSCTools {
...
@@ -1411,13 +1411,14 @@ public class HGSCTools {
for
(
HGSC009
hgsc009:
hgsc009List
)
{
for
(
HGSC009
hgsc009:
hgsc009List
)
{
HGSC001
hgsc001
=
Hgsc001
.
queryByCode
(
hgsc009
.
getProjCode
());
HGSC001
hgsc001
=
Hgsc001
.
queryByCode
(
hgsc009
.
getProjCode
());
AssertUtils
.
isNull
(
hgsc001
,
"项目不存在,添加失败!"
);
AssertUtils
.
isNull
(
hgsc001
,
"项目不存在,添加失败!"
);
HGSC009
sc009
=
queryByCode
(
hgsc009
.
getProjCode
());
//
HGSC009 sc009 = queryByCode(hgsc009.getProjCode());
AssertUtils
.
isNotNull
(
sc009
,
"材料计划项目已添加,添加失败!"
);
//
AssertUtils.isNotNull(sc009,"材料计划项目已添加,添加失败!");
if
(
hgsc001
.
getCompanyCode
()
!=
null
)
{
if
(
hgsc001
.
getCompanyCode
()
!=
null
)
{
hgsc009
.
setCompanyCode
(
hgsc001
.
getCompanyCode
());
hgsc009
.
setCompanyCode
(
hgsc001
.
getCompanyCode
());
}
hgsc009
.
setCompanyName
(
hgsc001
.
getCompanyName
());
hgsc009
.
setCompanyName
(
hgsc001
.
getCompanyName
());
hgsc009
.
setProjName
(
hgsc001
.
getProjName
());
hgsc009
.
setProjName
(
hgsc001
.
getProjName
());
}
hgsc009
.
setPlanMaterialCode
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
PLAN_MATERIAL_CODE
));
hgsc009
.
setPlanMaterialCode
(
SequenceGenerator
.
getNextSequence
(
HGConstant
.
SequenceId
.
PLAN_MATERIAL_CODE
));
DaoUtils
.
insert
(
HGSC009
.
INSERT
,
hgsc009
);
DaoUtils
.
insert
(
HGSC009
.
INSERT
,
hgsc009
);
for
(
HGSC009A
hgsc009a:
hgsc009aList
)
{
for
(
HGSC009A
hgsc009a:
hgsc009aList
)
{
...
...
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