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
e42ab4a0
Commit
e42ab4a0
authored
Apr 30, 2021
by
季圣华
Browse files
多账户优化
parent
ccf97392
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java
View file @
e42ab4a0
...
@@ -523,8 +523,12 @@ public class DepotHeadService {
...
@@ -523,8 +523,12 @@ public class DepotHeadService {
depotHead
.
setCreateTime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
depotHead
.
setCreateTime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
depotHead
.
setStatus
(
BusinessConstants
.
BILLS_STATUS_UN_AUDIT
);
depotHead
.
setStatus
(
BusinessConstants
.
BILLS_STATUS_UN_AUDIT
);
depotHead
.
setPayType
(
depotHead
.
getPayType
()==
null
?
"现付"
:
depotHead
.
getPayType
());
depotHead
.
setPayType
(
depotHead
.
getPayType
()==
null
?
"现付"
:
depotHead
.
getPayType
());
depotHead
.
setAccountIdList
(
depotHead
.
getAccountIdList
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replaceAll
(
"\""
,
""
));
if
(
StringUtil
.
isNotEmpty
(
depotHead
.
getAccountIdList
())){
depotHead
.
setAccountMoneyList
(
depotHead
.
getAccountMoneyList
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replaceAll
(
"\""
,
""
));
depotHead
.
setAccountIdList
(
depotHead
.
getAccountIdList
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replaceAll
(
"\""
,
""
));
}
if
(
StringUtil
.
isNotEmpty
(
depotHead
.
getAccountMoneyList
()))
{
depotHead
.
setAccountMoneyList
(
depotHead
.
getAccountMoneyList
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replaceAll
(
"\""
,
""
));
}
try
{
try
{
depotHeadMapper
.
insertSelective
(
depotHead
);
depotHeadMapper
.
insertSelective
(
depotHead
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -576,8 +580,12 @@ public class DepotHeadService {
...
@@ -576,8 +580,12 @@ public class DepotHeadService {
BigDecimal
preTotalPrice
,
Long
tenantId
,
HttpServletRequest
request
)
throws
Exception
{
BigDecimal
preTotalPrice
,
Long
tenantId
,
HttpServletRequest
request
)
throws
Exception
{
/**更新单据主表信息*/
/**更新单据主表信息*/
DepotHead
depotHead
=
JSONObject
.
parseObject
(
beanJson
,
DepotHead
.
class
);
DepotHead
depotHead
=
JSONObject
.
parseObject
(
beanJson
,
DepotHead
.
class
);
depotHead
.
setAccountIdList
(
depotHead
.
getAccountIdList
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replaceAll
(
"\""
,
""
));
if
(
StringUtil
.
isNotEmpty
(
depotHead
.
getAccountIdList
())){
depotHead
.
setAccountMoneyList
(
depotHead
.
getAccountMoneyList
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replaceAll
(
"\""
,
""
));
depotHead
.
setAccountIdList
(
depotHead
.
getAccountIdList
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replaceAll
(
"\""
,
""
));
}
if
(
StringUtil
.
isNotEmpty
(
depotHead
.
getAccountMoneyList
()))
{
depotHead
.
setAccountMoneyList
(
depotHead
.
getAccountMoneyList
().
replace
(
"["
,
""
).
replace
(
"]"
,
""
).
replaceAll
(
"\""
,
""
));
}
try
{
try
{
depotHeadMapper
.
updateByPrimaryKeySelective
(
depotHead
);
depotHeadMapper
.
updateByPrimaryKeySelective
(
depotHead
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
...
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