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