生产管理修改

liweidong
李涛 2 weeks ago
parent 2491d1212d
commit fd0375d6d8
  1. 8
      blade-service-api/blade-desk-api/src/main/java/org/springblade/desk/produce/pojo/vo/PlateAroundVO.java
  2. 8
      blade-service/blade-desk/src/main/java/org/springblade/desk/produce/service/impl/PlateAroundServiceImpl.java

@ -38,19 +38,19 @@ public class PlateAroundVO {
private Double quantity;
@Schema(description = "入库班组")
private Long tsId;
private String tsId;
@Schema(description = "入库供应商")
private Long ocId;
private String ocId;
@Schema(description = "入库工序号")
private String orders;
@Schema(description = "入库工序名称")
private Long ppsId;
private String ppsId;
@Schema(description = "入库人员")
private Long createUser;
private String createUser;
@Schema(description = "入库时间")
private Date createTime;

@ -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);
}
}

Loading…
Cancel
Save