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