|
|
@@ -90,10 +90,11 @@ public class MaxnumberServiceImpl extends CommonBaseServiceImpl<MaxnumbersMapper
|
|
|
maxcode = rulecode + createSerialNum(length, maxno);
|
|
|
//如果以更新方式取编号
|
|
|
if (update) {
|
|
|
- detail.setUpdateTime(new Date());
|
|
|
+ /*detail.setUpdateTime(new Date());
|
|
|
detail.setUpdaterId(userId);
|
|
|
detail.setMd_maxno(maxno);
|
|
|
- maxnumbersdetailMapper.updateByPrimaryKeySelective(detail);
|
|
|
+ maxnumbersdetailMapper.updateByPrimaryKeySelective(detail);*/
|
|
|
+ maxnumbersdetailMapper.updateMaxno(detail.getId(), maxno, BaseContextHolder.getCompanyId());
|
|
|
}
|
|
|
}
|
|
|
return maxcode;
|
|
|
@@ -143,10 +144,11 @@ public class MaxnumberServiceImpl extends CommonBaseServiceImpl<MaxnumbersMapper
|
|
|
length = maxnumbers.getMn_number();
|
|
|
Integer serialNum = praseSerialNum(maxcode, length);
|
|
|
if (null != serialNum) {
|
|
|
- detail.setMd_maxno(serialNum);
|
|
|
+ /*detail.setMd_maxno(serialNum);
|
|
|
detail.setUpdaterId(userId);
|
|
|
detail.setUpdateTime(new Date());
|
|
|
- maxnumbersdetailMapper.updateByPrimaryKeySelective(detail);
|
|
|
+ maxnumbersdetailMapper.updateByPrimaryKeySelective(detail);*/
|
|
|
+ maxnumbersdetailMapper.updateMaxno(detail.getId(), serialNum, BaseContextHolder.getCompanyId());
|
|
|
}
|
|
|
|
|
|
}
|