|
@@ -163,6 +163,7 @@ public class MesController extends SuperController<MesNoticeService, Long, MesNo
|
|
|
apiType("QUALITYREPORT").
|
|
|
lineCode("407109").
|
|
|
status("1").
|
|
|
+ orderInfo("1.0").
|
|
|
userCode(threeCoordinateDto.getUserCode()).
|
|
|
batchNo(threeCoordinateDto.getBatchNo()).
|
|
|
source("产线管控单元").
|
|
@@ -333,9 +334,9 @@ public class MesController extends SuperController<MesNoticeService, Long, MesNo
|
|
|
Order order = orderService.getOne(new LbqWrapper<Order>().eq(Order::getSource, "2").eq(Order::getOrderNo, params.get("auidnr").toString()));
|
|
|
BBom bom = bBomService.getOne(new LbqWrapper<BBom>().eq(BBom::getBatchNo, order.getBatchNo()).eq(BBom::getStatus,"1").eq(BBom::getSynFlag, "1").last("LIMIT 1"));
|
|
|
if( order == null || bom == null) return R.fail("数据不存在");
|
|
|
- MesProcessReportDto mesProcessReportDto = MesProcessReportDto.builder().finr("407").kpf("109").auidnr(params.getString("auidnr")).status(params.getString("status")).afonr(bom.getNo()).pnr(params.getString("pnr")).kapaz(params.getString("kapaz")).plmenge(1.0)
|
|
|
+ MesProcessReportDto mesProcessReportDto = MesProcessReportDto.builder().finr("407").kpf("109").auidnr(params.getString("auidnr")).status(params.getString("status")).afonr(bom.getNo()).pnr(params.getString("pnr")).kapaz(params.getString("kapaz")).plmenge(Double.parseDouble(order.getProduceNum().toString()))
|
|
|
.build();
|
|
|
- boolean status = params.get("status").equals("JS")? true: false;
|
|
|
+ boolean status = params.getString("status").equals("JS")? true: false;
|
|
|
if(status){
|
|
|
//默认处理
|
|
|
mesProcessReportDto.setGutmenge(1.0).setAusschuss(0).setAussfinish(0);
|
|
@@ -343,9 +344,9 @@ public class MesController extends SuperController<MesNoticeService, Long, MesNo
|
|
|
JSONObject jsonParam = (JSONObject)JSONObject.toJSON(mesProcessReportDto);
|
|
|
String data = jsonParam.toJSONString();
|
|
|
|
|
|
- MesNotice mesNotice = MesNotice.builder().orderNo(params.getString("auidnr")).userCode(params.getString("pnr")).
|
|
|
- buType("TASKAPPLY").lineCode("407109").status("1").source("产线管控单元").apiType("MESPROCESSREPORT").apiAddress(instructionUrl)
|
|
|
- .targetSource("智能总控系统").acceptPar(data).build();
|
|
|
+ MesNotice mesNotice = MesNotice.builder().orderNo(params.getString("auidnr")).userCode(params.getString("pnr")).batchNo(params.getString("batchno")).
|
|
|
+ buType("TASKAPPLY").lineCode("407109").status(status?"1":"0").source("产线管控单元").apiType("MESPROCESSREPORT").apiAddress(instructionUrl)
|
|
|
+ .targetSource("智能总控系统").acceptPar(data).orderInfo("0.5").build();
|
|
|
try {
|
|
|
boolean b = baseService.addNotice(mesNotice);
|
|
|
} catch (Exception e) {
|