优化逻辑:单据修改的时候单据日期不变
This commit is contained in:
@@ -458,13 +458,14 @@ public class DepotHeadService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增单据主表及单据子表信息
|
* 新增单据主表及单据子表信息
|
||||||
* create time: 2019/1/25 14:36
|
* @param beanJson
|
||||||
* @Param: beanJson
|
* @param inserted
|
||||||
* @Param: inserted
|
* @param deleted
|
||||||
* @Param: deleted
|
* @param updated
|
||||||
* @Param: updated
|
* @param tenantId
|
||||||
* @return java.lang.String
|
* @param request
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
|
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
|
||||||
public void addDepotHeadAndDetail(String beanJson, String inserted, String deleted, String updated,Long tenantId,
|
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: id
|
* @param beanJson
|
||||||
* @Param: beanJson
|
* @param inserted
|
||||||
* @Param: inserted
|
* @param deleted
|
||||||
* @Param: deleted
|
* @param updated
|
||||||
* @Param: updated
|
* @param preTotalPrice
|
||||||
* @Param: preTotalPrice
|
* @param tenantId
|
||||||
* @return java.lang.Object
|
* @param request
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
|
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
|
||||||
public void updateDepotHeadAndDetail(Long id, String beanJson, String inserted, String deleted, String updated,
|
public void updateDepotHeadAndDetail(Long id, String beanJson, String inserted, String deleted, String updated,
|
||||||
@@ -536,7 +539,6 @@ public class DepotHeadService {
|
|||||||
depotHead.setId(id);
|
depotHead.setId(id);
|
||||||
User userInfo=userService.getCurrentUser();
|
User userInfo=userService.getCurrentUser();
|
||||||
depotHead.setOperpersonname(userInfo==null?null:userInfo.getUsername());
|
depotHead.setOperpersonname(userInfo==null?null:userInfo.getUsername());
|
||||||
depotHead.setOpertime(new Timestamp(System.currentTimeMillis()));
|
|
||||||
try{
|
try{
|
||||||
depotHeadMapper.updateByPrimaryKeySelective(depotHead);
|
depotHeadMapper.updateByPrimaryKeySelective(depotHead);
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
@@ -553,12 +555,9 @@ public class DepotHeadService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* create by: cjl
|
* 删除单据主表及子表信息
|
||||||
* description:
|
* @param id
|
||||||
* 删除单据主表及子表信息
|
* @throws Exception
|
||||||
* create time: 2019/1/28 17:29
|
|
||||||
* @Param: id
|
|
||||||
* @return java.lang.Object
|
|
||||||
*/
|
*/
|
||||||
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
|
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
|
||||||
public void deleteDepotHeadAndDetail(Long id) throws Exception {
|
public void deleteDepotHeadAndDetail(Long id) throws Exception {
|
||||||
@@ -597,13 +596,11 @@ public class DepotHeadService {
|
|||||||
/**删除单据主表信息*/
|
/**删除单据主表信息*/
|
||||||
batchDeleteDepotHeadByIds(id.toString());
|
batchDeleteDepotHeadByIds(id.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* create by: cjl
|
* 批量删除单据主表及子表信息
|
||||||
* description:
|
* @param ids
|
||||||
* 批量删除单据主表及子表信息
|
* @throws Exception
|
||||||
* create time: 2019/1/28 17:29
|
|
||||||
* @Param: id
|
|
||||||
* @return java.lang.Object
|
|
||||||
*/
|
*/
|
||||||
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
|
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
|
||||||
public void batchDeleteDepotHeadAndDetail(String ids) throws Exception{
|
public void batchDeleteDepotHeadAndDetail(String ids) throws Exception{
|
||||||
|
|||||||
Reference in New Issue
Block a user