|
|
|
|
@ -39,6 +39,12 @@ public class MesQcProduceRunServiceImpl extends BaseServiceImpl<MesQcProduceRunM |
|
|
|
|
|
|
|
|
|
@Value("${request.iotNew.url}") |
|
|
|
|
private String iotNewUrl; |
|
|
|
|
|
|
|
|
|
@Value("${request.iot.orgId}") |
|
|
|
|
private String orgId; |
|
|
|
|
|
|
|
|
|
@Value("${request.iot.systemId}") |
|
|
|
|
private String systemId; |
|
|
|
|
public IPage<MesQcProduceRunVO> selectMesQcProduceRunPage(IPage<MesQcProduceRunVO> page, MesQcProduceRunVO mesQcProduceRun) { |
|
|
|
|
return page.setRecords(baseMapper.selectMesQcProduceRunPage(page, mesQcProduceRun)); |
|
|
|
|
} |
|
|
|
|
@ -117,6 +123,8 @@ public class MesQcProduceRunServiceImpl extends BaseServiceImpl<MesQcProduceRunM |
|
|
|
|
headers.setContentType(MediaType.APPLICATION_JSON); |
|
|
|
|
|
|
|
|
|
JSONObject body = new JSONObject(); |
|
|
|
|
body.put("orgId", orgId); |
|
|
|
|
body.put("systemId", systemId); |
|
|
|
|
body.put("deviceId", deviceCode); |
|
|
|
|
body.put("params", Arrays.asList("Trace")); |
|
|
|
|
body.put("paramsRequest", "PatId\\\"" + ":\\\"" + hangNum + "\\\""); |
|
|
|
|
@ -149,6 +157,8 @@ public class MesQcProduceRunServiceImpl extends BaseServiceImpl<MesQcProduceRunM |
|
|
|
|
headers.setContentType(MediaType.APPLICATION_JSON); |
|
|
|
|
|
|
|
|
|
JSONObject body = new JSONObject(); |
|
|
|
|
body.put("orgId", orgId); |
|
|
|
|
body.put("systemId", systemId); |
|
|
|
|
body.put("deviceId", deviceCode); |
|
|
|
|
body.put("type", 1); |
|
|
|
|
body.put("issueMap", Arrays.asList("CH1")); |
|
|
|
|
|