|
|
@ -157,6 +157,8 @@ public class PODetailServiceImpl extends ServiceImpl<PODetailMapper, PODetail> i |
|
|
// 新增保存:设置 create_time(创建时间) |
|
|
// 新增保存:设置 create_time(创建时间) |
|
|
applyCrdOriOnCreate(model, poDetail); |
|
|
applyCrdOriOnCreate(model, poDetail); |
|
|
poDetail.setCreateTime(currentTime); |
|
|
poDetail.setCreateTime(currentTime); |
|
|
|
|
|
// 新增时将订单数量同步给 a_qty(仅后台快照,前端不展示) |
|
|
|
|
|
poDetail.setAQty(poDetail.getQty()); |
|
|
baseMapper.insert(poDetail); |
|
|
baseMapper.insert(poDetail); |
|
|
} |
|
|
} |
|
|
if (model.getItemNo() == null && poDetail.getItemNo() != null) { |
|
|
if (model.getItemNo() == null && poDetail.getItemNo() != null) { |
|
|
@ -1793,6 +1795,8 @@ public class PODetailServiceImpl extends ServiceImpl<PODetailMapper, PODetail> i |
|
|
PODetail poDetail = new PODetail(); |
|
|
PODetail poDetail = new PODetail(); |
|
|
BeanUtils.copyProperties(detailVo, poDetail); |
|
|
BeanUtils.copyProperties(detailVo, poDetail); |
|
|
poDetail.setId(null); |
|
|
poDetail.setId(null); |
|
|
|
|
|
// 导入新增同样将订单数量同步给 a_qty(仅后台快照,前端不展示) |
|
|
|
|
|
poDetail.setAQty(poDetail.getQty()); |
|
|
baseMapper.insert(poDetail); |
|
|
baseMapper.insert(poDetail); |
|
|
|
|
|
|
|
|
SysUserEntity currentUser = (SysUserEntity) SecurityUtils.getSubject().getPrincipal(); |
|
|
SysUserEntity currentUser = (SysUserEntity) SecurityUtils.getSubject().getPrincipal(); |
|
|
|