|
|
|
@ -105,7 +105,6 @@ public class MesLineServiceImpl implements IMesLineService {
|
|
|
|
|
mesLine.setUpdateBy(SecurityUtils.getUsername());
|
|
|
|
|
List<String> processList = mesLine.getProcessList();
|
|
|
|
|
List<BigDecimal> qualityList = mesLine.getQualityList();
|
|
|
|
|
int flag = 0;
|
|
|
|
|
if (!CollectionUtils.isEmpty(processList)) {
|
|
|
|
|
//删除旧的工艺项
|
|
|
|
|
mesLineProcessService.deleteMesLineProcessByBelongTo(mesLine.getId());
|
|
|
|
@ -126,16 +125,12 @@ public class MesLineServiceImpl implements IMesLineService {
|
|
|
|
|
mesLineProcess.setLineCode(lineCode);
|
|
|
|
|
mesLineProcess.setLineName(lineName);
|
|
|
|
|
mesLineProcess.setFactoryCode(factoryCode);
|
|
|
|
|
flag += mesLineProcessService.insertMesLineProcess(mesLineProcess);
|
|
|
|
|
mesLineProcessService.insertMesLineProcess(mesLineProcess);
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
if (flag > 0){
|
|
|
|
|
return mesLineMapper.updateMesLine(mesLine);
|
|
|
|
|
}else {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return mesLineMapper.updateMesLine(mesLine);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -166,4 +161,10 @@ public class MesLineServiceImpl implements IMesLineService {
|
|
|
|
|
public List<MesLine> selectLineBody(MesLine mesLine) {
|
|
|
|
|
return mesLineMapper.selectLineBody(mesLine);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public MesLine validate(String lineCode) {
|
|
|
|
|
return mesLineMapper.validate(lineCode);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|