|
|
|
@ -104,7 +104,11 @@ public class AcheckTaskQuartz {
|
|
|
|
|
@Value("${zcXxUrl}")
|
|
|
|
|
private String zcXxUrl;
|
|
|
|
|
|
|
|
|
|
@Value("${zczqUrl}")
|
|
|
|
|
private String zczqUrl;
|
|
|
|
|
|
|
|
|
|
@Value("${xczqUrl}")
|
|
|
|
|
private String xczqUrl;
|
|
|
|
|
/**
|
|
|
|
|
* 新增创建时间为昨天且处于审批通过的工单数据
|
|
|
|
|
*
|
|
|
|
@ -133,11 +137,17 @@ public class AcheckTaskQuartz {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
for (ACheckQuatzRequest a : list) {
|
|
|
|
|
// todo 来自新表查询 根据企业xxbh 以及周期编号
|
|
|
|
|
String xcrwuuid = UUID.randomUUID().toString().replace("-", "").toLowerCase();
|
|
|
|
|
//获取企业编号
|
|
|
|
|
ASafeQyjcxx aSafeQyjcxx = aSafeQyjcxxService.findOneByqymcOrXybm(a.getName(), a.getEntCode());
|
|
|
|
|
String enterPriseId = aSafeQyjcxx.getXxbh();
|
|
|
|
|
// todo 来自新表查询 根据企业xxbh 以及周期编号
|
|
|
|
|
JSONObject xcjsonObject = new JSONObject();
|
|
|
|
|
xcjsonObject.put("xxbh", aSafeQyjcxx.getXxbh());
|
|
|
|
|
xcjsonObject.put("zqbh", rwzqUuid);
|
|
|
|
|
String xcresponse = HttpRequest.post(xczqUrl).contentType("application/x-www-form-urlencoded;charset=UTF-8").body(xcjsonObject.toJSONString()).execute().body();
|
|
|
|
|
JSONObject xcjsonResponse = JSON.parseObject(xcresponse);
|
|
|
|
|
String xcrwuuid = xcjsonResponse.getString("msg");
|
|
|
|
|
|
|
|
|
|
//根据工单获取数据
|
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
|
|
jsonObject.put("improvingNo", a.getImprovingNo());
|
|
|
|
@ -594,7 +604,13 @@ public class AcheckTaskQuartz {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
for (ACheckQuatzZichaRequest a : list) {
|
|
|
|
|
String zcrwUuid = UUID.randomUUID().toString().replace("-", "").toLowerCase();
|
|
|
|
|
JSONObject zcjsonObject = new JSONObject();
|
|
|
|
|
zcjsonObject.put("xxbh", a.getEnterpriseID());
|
|
|
|
|
zcjsonObject.put("zqbh", rwzqUuid);
|
|
|
|
|
String zcresponse = HttpRequest.post(zczqUrl).contentType("application/x-www-form-urlencoded;charset=UTF-8").body(zcjsonObject.toJSONString()).execute().body();
|
|
|
|
|
JSONObject zcjsonResponse = JSON.parseObject(zcresponse);
|
|
|
|
|
String zcrwUuid = zcjsonResponse.getString("msg");
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*新增任务周期a_safe_rwzq
|
|
|
|
|
*/
|
|
|
|
|