优化单据新增和更新接口

This commit is contained in:
季圣华
2020-10-13 01:17:45 +08:00
parent 73ad4dc2bb
commit 247fe119c4
4 changed files with 8 additions and 25 deletions

View File

@@ -296,7 +296,7 @@ public class DepotItemService {
}
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
public String saveDetials(String inserted, String deleted, String updated, Long headerId, Long tenantId, HttpServletRequest request) throws Exception{
public String saveDetials(String inserted, Long headerId, Long tenantId, HttpServletRequest request) throws Exception{
//查询单据主表信息
DepotHead depotHead=null;
try{
@@ -308,7 +308,6 @@ public class DepotItemService {
User userInfo=userService.getCurrentUser();
//转为json
JSONArray insertedJson = JSONArray.parseArray(inserted);
JSONArray deletedJson = JSONArray.parseArray(deleted);
//删除单据的明细
deleteDepotItemHeadId(headerId);