Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
f005d48f
Commit
f005d48f
authored
May 18, 2022
by
季圣华
Browse files
优化单据保存的接口,对单据状态进行判断
parent
38bf8477
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/accountHead/AccountHeadService.java
View file @
f005d48f
...
@@ -266,7 +266,9 @@ public class AccountHeadService {
...
@@ -266,7 +266,9 @@ public class AccountHeadService {
AccountHead
accountHead
=
JSONObject
.
parseObject
(
beanJson
,
AccountHead
.
class
);
AccountHead
accountHead
=
JSONObject
.
parseObject
(
beanJson
,
AccountHead
.
class
);
User
userInfo
=
userService
.
getCurrentUser
();
User
userInfo
=
userService
.
getCurrentUser
();
accountHead
.
setCreator
(
userInfo
==
null
?
null
:
userInfo
.
getId
());
accountHead
.
setCreator
(
userInfo
==
null
?
null
:
userInfo
.
getId
());
accountHead
.
setStatus
(
BusinessConstants
.
BILLS_STATUS_UN_AUDIT
);
if
(
StringUtil
.
isEmpty
(
accountHead
.
getStatus
()))
{
accountHead
.
setStatus
(
BusinessConstants
.
BILLS_STATUS_UN_AUDIT
);
}
accountHeadMapper
.
insertSelective
(
accountHead
);
accountHeadMapper
.
insertSelective
(
accountHead
);
//根据单据编号查询单据id
//根据单据编号查询单据id
AccountHeadExample
dhExample
=
new
AccountHeadExample
();
AccountHeadExample
dhExample
=
new
AccountHeadExample
();
...
...
jshERP-boot/src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java
View file @
f005d48f
...
@@ -729,7 +729,9 @@ public class DepotHeadService {
...
@@ -729,7 +729,9 @@ public class DepotHeadService {
User
userInfo
=
userService
.
getCurrentUser
();
User
userInfo
=
userService
.
getCurrentUser
();
depotHead
.
setCreator
(
userInfo
==
null
?
null
:
userInfo
.
getId
());
depotHead
.
setCreator
(
userInfo
==
null
?
null
:
userInfo
.
getId
());
depotHead
.
setCreateTime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
depotHead
.
setCreateTime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
depotHead
.
setStatus
(
BusinessConstants
.
BILLS_STATUS_UN_AUDIT
);
if
(
StringUtil
.
isEmpty
(
depotHead
.
getStatus
()))
{
depotHead
.
setStatus
(
BusinessConstants
.
BILLS_STATUS_UN_AUDIT
);
}
depotHead
.
setPurchaseStatus
(
BusinessConstants
.
BILLS_STATUS_UN_AUDIT
);
depotHead
.
setPurchaseStatus
(
BusinessConstants
.
BILLS_STATUS_UN_AUDIT
);
depotHead
.
setPayType
(
depotHead
.
getPayType
()==
null
?
"现付"
:
depotHead
.
getPayType
());
depotHead
.
setPayType
(
depotHead
.
getPayType
()==
null
?
"现付"
:
depotHead
.
getPayType
());
if
(
StringUtil
.
isNotEmpty
(
depotHead
.
getAccountIdList
())){
if
(
StringUtil
.
isNotEmpty
(
depotHead
.
getAccountIdList
())){
...
...
Write
Preview
Supports
Markdown
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