|
@@ -119,18 +119,19 @@ public class RetroactiveNowServiceImpl extends ServiceImpl<RetroactiveNowMapper,
|
|
|
mesService.processFeedback(retroactiveNow.getBatchNo(),"2");
|
|
|
}
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
|
|
- baseData.setStatus(retroactiveNow.getStatus());
|
|
|
baseData.setDeviceId("PDA");
|
|
|
baseData.setUpdateBy(loginUser.getUsername());
|
|
|
baseData.setRemark("PDA手动补码");
|
|
|
if(Integer.parseInt(retroactiveNow.getStatus())>Integer.parseInt(baseData.getStatus())){
|
|
|
+ baseData.setStatus(retroactiveNow.getStatus());
|
|
|
retroactiveNowMapper.updateById(baseData);
|
|
|
}
|
|
|
- baseData.setCreateBy(loginUser.getUsername());
|
|
|
- if (ObjectUtil.isNull(retroactiveNow.getCreateTime())){
|
|
|
+ baseData.setStatus(retroactiveNow.getStatus());
|
|
|
+ if (ObjectUtil.isNull(retroactiveNow.getUpdateTime())){
|
|
|
throw new ServiceException("工序完成时间为空!");
|
|
|
}
|
|
|
- baseData.setCreateTime(retroactiveNow.getCreateTime());
|
|
|
+ baseData.setCreateBy(loginUser.getUsername());
|
|
|
+ baseData.setCreateTime(retroactiveNow.getUpdateTime());
|
|
|
RetroactiveHistory retroactiveHistory = BeanUtil.copyProperties(baseData, RetroactiveHistory.class);
|
|
|
retroactiveHistory.setCreateTime(baseData.getUpdateTime());
|
|
|
retroactiveHistoryMapper.insert(retroactiveHistory);
|