Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
erp-service
Project
Project
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
ximai
erp-service
Commits
378062c2
Commit
378062c2
authored
Jan 10, 2025
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购到购默认值添加
parent
8757a1d3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
+15
-4
PurcdCreateParams.java
...com/topsunit/scanservice/ximai/dto/PurcdCreateParams.java
+5
-3
Purcc.java
...ain/java/com/topsunit/scanservice/ximai/entity/Purcc.java
+3
-0
Purcd.java
...ain/java/com/topsunit/scanservice/ximai/entity/Purcd.java
+2
-0
PurccService.java
.../com/topsunit/scanservice/ximai/service/PurccService.java
+5
-1
No files found.
src/main/java/com/topsunit/scanservice/ximai/dto/PurcdCreateParams.java
View file @
378062c2
...
...
@@ -46,7 +46,7 @@ public class PurcdCreateParams {
@ApiModelProperty
(
"到货数量"
)
private
BigDecimal
cd013
;
@ApiModelProperty
(
""
)
private
String
cd017
;
private
String
cd017
=
""
;
@ApiModelProperty
(
""
)
private
BigDecimal
cd018
=
BigDecimal
.
ZERO
;
@ApiModelProperty
(
""
)
...
...
@@ -61,12 +61,14 @@ public class PurcdCreateParams {
private
BigDecimal
cd028
=
BigDecimal
.
ZERO
;
@ApiModelProperty
(
""
)
private
BigDecimal
cd029
=
BigDecimal
.
ZERO
;
private
String
cd021
=
""
;
private
String
cd022
=
""
;
@ApiModelProperty
(
""
)
private
String
cd034
=
"N"
;
@ApiModelProperty
(
""
)
private
String
cd035
=
""
;
@ApiModelProperty
(
"图号"
)
private
String
udf01
;
private
String
udf01
=
""
;
@ApiModelProperty
(
""
)
private
String
udf02
;
private
String
udf02
=
""
;
}
src/main/java/com/topsunit/scanservice/ximai/entity/Purcc.java
View file @
378062c2
...
...
@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.math.BigDecimal
;
/**
* <p>Title: Purcc</p>
...
...
@@ -47,6 +48,8 @@ public class Purcc extends EntityBase {
@Column
@ApiModelProperty
(
"供货商名称"
)
private
String
cc012
;
@ApiModelProperty
(
"总量"
)
private
BigDecimal
cc013
;
@Column
@ApiModelProperty
(
""
)
private
String
cc026
;
...
...
src/main/java/com/topsunit/scanservice/ximai/entity/Purcd.java
View file @
378062c2
...
...
@@ -65,6 +65,8 @@ public class Purcd extends EntityBase {
private
BigDecimal
cd028
;
@Column
private
BigDecimal
cd029
;
private
String
cd021
=
""
;
private
String
cd022
=
""
;
@Column
private
String
cd034
;
@Column
...
...
src/main/java/com/topsunit/scanservice/ximai/service/PurccService.java
View file @
378062c2
...
...
@@ -246,7 +246,7 @@ public class PurccService {
purcc
.
setCc001
(
DATA_TYPE
);
purcc
.
setCc002
(
this
.
getNewCc002
(
DATA_TYPE
));
purcc
.
setUdf01
(
stockArrivalParams
.
getWarehouse
());
purccDao
.
save
(
purcc
)
;
BigDecimal
sumQuantity
=
BigDecimal
.
ZERO
;
int
i
=
1
;
for
(
StockArrivalParams
.
StockArrivalDetail
detail
:
stockArrivalParams
.
getDetails
()){
Purtd
purtd
=
purtdDao
.
findFirstByTd001AndTd002AndTd003
(
detail
.
getPurchaseType
(),
detail
.
getPurchaseNo
(),
detail
.
getPurchaseSerial
())
...
...
@@ -261,6 +261,7 @@ public class PurccService {
purcd
.
setCd005
(
invmb
.
getMb002
());
purcd
.
setCd006
(
invmb
.
getMb003
());
purcd
.
setCd007
(
invmb
.
getMb004
());
purcd
.
setUdf01
(
invmb
.
getMb029
());
purcd
.
setCd008
(
detail
.
getArrivalQuantity
());
purcd
.
setCd010
(
detail
.
getPurchaseType
());
purcd
.
setCd011
(
detail
.
getPurchaseNo
());
...
...
@@ -269,8 +270,11 @@ public class PurccService {
purcd
.
setCd015
(
purtd
.
getTd009
());
purcd
.
setCd016
(
purtd
.
getTd007
());
purcdDao
.
save
(
purcd
);
sumQuantity
=
sumQuantity
.
add
(
detail
.
getArrivalQuantity
());
i
++;
}
purcc
.
setCc013
(
sumQuantity
);
purccDao
.
save
(
purcc
);
}
public
void
validate
(
StockArrivalValidateParams
params
){
...
...
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