优化单据保存的接口,对单据状态进行判断
This commit is contained in:
@@ -266,7 +266,9 @@ public class AccountHeadService {
|
||||
AccountHead accountHead = JSONObject.parseObject(beanJson, AccountHead.class);
|
||||
User userInfo=userService.getCurrentUser();
|
||||
accountHead.setCreator(userInfo==null?null:userInfo.getId());
|
||||
accountHead.setStatus(BusinessConstants.BILLS_STATUS_UN_AUDIT);
|
||||
if(StringUtil.isEmpty(accountHead.getStatus())) {
|
||||
accountHead.setStatus(BusinessConstants.BILLS_STATUS_UN_AUDIT);
|
||||
}
|
||||
accountHeadMapper.insertSelective(accountHead);
|
||||
//根据单据编号查询单据id
|
||||
AccountHeadExample dhExample = new AccountHeadExample();
|
||||
|
||||
@@ -729,7 +729,9 @@ public class DepotHeadService {
|
||||
User userInfo=userService.getCurrentUser();
|
||||
depotHead.setCreator(userInfo==null?null:userInfo.getId());
|
||||
depotHead.setCreateTime(new Timestamp(System.currentTimeMillis()));
|
||||
depotHead.setStatus(BusinessConstants.BILLS_STATUS_UN_AUDIT);
|
||||
if(StringUtil.isEmpty(depotHead.getStatus())) {
|
||||
depotHead.setStatus(BusinessConstants.BILLS_STATUS_UN_AUDIT);
|
||||
}
|
||||
depotHead.setPurchaseStatus(BusinessConstants.BILLS_STATUS_UN_AUDIT);
|
||||
depotHead.setPayType(depotHead.getPayType()==null?"现付":depotHead.getPayType());
|
||||
if(StringUtil.isNotEmpty(depotHead.getAccountIdList())){
|
||||
|
||||
Reference in New Issue
Block a user