|
|
|
|
@ -279,7 +279,7 @@ public class PlateAroundServiceImpl extends BaseServiceImpl<PlateAroundMapper, P |
|
|
|
|
plateAround.setMakeMan(user.getUserId()); |
|
|
|
|
} |
|
|
|
|
this.updatePrPlateAround(plateAround); |
|
|
|
|
baseMapper.insert(plateAround); |
|
|
|
|
this.save(plateAround); |
|
|
|
|
if (paType.equals(PlateAround.BEFORE_PLAT_IN)) { |
|
|
|
|
WorkPlan nextWorkPlan = workPlanMapper.selectById(wp.getNextWpId()); |
|
|
|
|
if (nextWorkPlan != null && nextWorkPlan.getNextWpId() == null) { |
|
|
|
|
@ -303,11 +303,11 @@ public class PlateAroundServiceImpl extends BaseServiceImpl<PlateAroundMapper, P |
|
|
|
|
newPa.setWpId(wp.getNextWpId()); |
|
|
|
|
newPa.setTsId(wp.getMakeTeam()); |
|
|
|
|
this.updatePrPlateAround(newPa); |
|
|
|
|
baseMapper.insert(newPa); |
|
|
|
|
this.save(newPa); |
|
|
|
|
// 修改镀前入库记录状态
|
|
|
|
|
oldPa = baseMapper.selectById(plateAround.getId()); |
|
|
|
|
oldPa = this.getById(plateAround.getId()); |
|
|
|
|
oldPa.setCurStatus(PlateAround.CUR_STATUS_OK); |
|
|
|
|
baseMapper.updateById(oldPa); |
|
|
|
|
this.updateById(oldPa); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|