优化单据的新增和更新接口
This commit is contained in:
@@ -996,11 +996,7 @@ public class DepotHeadService {
|
||||
String.format(ExceptionConstants.DEPOT_HEAD_FILE_NUM_LIMIT_MSG, 4));
|
||||
}
|
||||
}
|
||||
try{
|
||||
depotHeadMapper.insertSelective(depotHead);
|
||||
}catch(Exception e){
|
||||
JshException.writeFail(logger, e);
|
||||
}
|
||||
depotHeadMapper.insertSelective(depotHead);
|
||||
/**入库和出库处理预付款信息*/
|
||||
if(BusinessConstants.PAY_TYPE_PREPAID.equals(depotHead.getPayType())){
|
||||
if(depotHead.getOrganId()!=null) {
|
||||
@@ -1094,11 +1090,7 @@ public class DepotHeadService {
|
||||
String.format(ExceptionConstants.DEPOT_HEAD_FILE_NUM_LIMIT_MSG, 4));
|
||||
}
|
||||
}
|
||||
try{
|
||||
depotHeadMapper.updateByPrimaryKeySelective(depotHead);
|
||||
}catch(Exception e){
|
||||
JshException.writeFail(logger, e);
|
||||
}
|
||||
depotHeadMapper.updateByPrimaryKeySelective(depotHead);
|
||||
//如果存在多账户结算需要将原账户的id置空
|
||||
if(StringUtil.isNotEmpty(depotHead.getAccountIdList())) {
|
||||
depotHeadMapperEx.setAccountIdToNull(depotHead.getId());
|
||||
|
||||
Reference in New Issue
Block a user