|
|
@@ -171,8 +171,6 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
//日志记录
|
|
|
messageLogService.save(baseDTO);
|
|
|
return baseDTO;
|
|
|
- }else{
|
|
|
- //setUpdateInfo(prodInOut);
|
|
|
}
|
|
|
//更新操作
|
|
|
getMapper().updateByPrimaryKeySelective(prodInOut);
|
|
|
@@ -181,7 +179,6 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
ProdIODetail detail = BeanMapper.map(item, ProdIODetail.class);
|
|
|
detail.setUpdaterId(userId);
|
|
|
detail.setUpdateTime(new Date());
|
|
|
-// detail.setUpdater(userName);
|
|
|
if (StringUtils.isEmpty(detail.getId()) || "0".equals(detail.getId().toString())) {
|
|
|
detail.setCompanyId(companyId);
|
|
|
detail.setCreatorId(userId);
|
|
|
@@ -448,9 +445,9 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
targetPi.setCompanyId(sourcePi.getCompanyId());
|
|
|
targetPi.setCreateTime(new Date());
|
|
|
targetPi.setCreatorId(userId);
|
|
|
-// targetPi.setCreator(userName);
|
|
|
+ targetPi.setCreatorName(userName);
|
|
|
targetPi.setUpdaterId(userId);
|
|
|
-// targetPi.setUpdater(userName);
|
|
|
+ targetPi.setUpdaterName(userName);
|
|
|
targetPi.setUpdateTime(new Date());
|
|
|
|
|
|
//保存数据
|
|
|
@@ -485,9 +482,9 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
targetPid.setCompanyId(sourcePid.getCompanyId());
|
|
|
targetPid.setCreateTime(new Date());
|
|
|
targetPid.setCreatorId(userId);
|
|
|
-// targetPid.setCreator(userName);
|
|
|
+ targetPid.setCreatorName(userName);
|
|
|
targetPid.setUpdaterId(userId);
|
|
|
-// targetPid.setUpdater(userName);
|
|
|
+ targetPid.setUpdaterName(userName);
|
|
|
targetPid.setUpdateTime(new Date());
|
|
|
//本次转单数
|
|
|
targetPid.setPd_outqty(pdInqty-pdYqty);
|
|
|
@@ -514,7 +511,6 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
}
|
|
|
prodInOut.setPi_statuscode(Status.CLOSE.name());
|
|
|
prodInOut.setPi_status(Status.CLOSE.getDisplay());
|
|
|
- //setUpdateInfo(prodInOut);
|
|
|
getMapper().updateByPrimaryKeySelective(prodInOut);
|
|
|
docBaseDTO = getBaseDTOById(id,prodInOut.getPi_class(),prodInOut.getPi_inoutno());
|
|
|
//日志
|