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
5f0cdd3f
Commit
5f0cdd3f
authored
Mar 21, 2020
by
季圣华
Browse files
优化逻辑:单据修改的时候单据日期不变
parent
42a56428
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/depotHead/DepotHeadService.java
View file @
5f0cdd3f
...
...
@@ -458,13 +458,14 @@ public class DepotHeadService {
}
/**
* 新增单据主表及单据子表信息
* create time: 2019/1/25 14:36
* @Param: beanJson
* @Param: inserted
* @Param: deleted
* @Param: updated
* @return java.lang.String
* 新增单据主表及单据子表信息
* @param beanJson
* @param inserted
* @param deleted
* @param updated
* @param tenantId
* @param request
* @throws Exception
*/
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
public
void
addDepotHeadAndDetail
(
String
beanJson
,
String
inserted
,
String
deleted
,
String
updated
,
Long
tenantId
,
...
...
@@ -513,16 +514,18 @@ public class DepotHeadService {
}
}
}
/**
* 更新单据主表及单据子表信息
* create time: 2019/1/28 14:47
* @Param: id
* @Param: beanJson
* @Param: inserted
* @Param: deleted
* @Param: updated
* @Param: preTotalPrice
* @return java.lang.Object
* @param id
* @param beanJson
* @param inserted
* @param deleted
* @param updated
* @param preTotalPrice
* @param tenantId
* @param request
* @throws Exception
*/
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
public
void
updateDepotHeadAndDetail
(
Long
id
,
String
beanJson
,
String
inserted
,
String
deleted
,
String
updated
,
...
...
@@ -536,7 +539,6 @@ public class DepotHeadService {
depotHead
.
setId
(
id
);
User
userInfo
=
userService
.
getCurrentUser
();
depotHead
.
setOperpersonname
(
userInfo
==
null
?
null
:
userInfo
.
getUsername
());
depotHead
.
setOpertime
(
new
Timestamp
(
System
.
currentTimeMillis
()));
try
{
depotHeadMapper
.
updateByPrimaryKeySelective
(
depotHead
);
}
catch
(
Exception
e
){
...
...
@@ -553,12 +555,9 @@ public class DepotHeadService {
}
/**
* create by: cjl
* description:
* 删除单据主表及子表信息
* create time: 2019/1/28 17:29
* @Param: id
* @return java.lang.Object
* 删除单据主表及子表信息
* @param id
* @throws Exception
*/
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
public
void
deleteDepotHeadAndDetail
(
Long
id
)
throws
Exception
{
...
...
@@ -597,13 +596,11 @@ public class DepotHeadService {
/**删除单据主表信息*/
batchDeleteDepotHeadByIds
(
id
.
toString
());
}
/**
* create by: cjl
* description:
* 批量删除单据主表及子表信息
* create time: 2019/1/28 17:29
* @Param: id
* @return java.lang.Object
* 批量删除单据主表及子表信息
* @param ids
* @throws Exception
*/
@Transactional
(
value
=
"transactionManager"
,
rollbackFor
=
Exception
.
class
)
public
void
batchDeleteDepotHeadAndDetail
(
String
ids
)
throws
Exception
{
...
...
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