来自新表查询 根据企业xxbh 以及周期编号

main
dongdingding 9 months ago
parent ea73448d84
commit 3e00a494fc

@ -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
*/

@ -50,3 +50,11 @@ bqbhUrl: http://221.229.220.83:9028/mudu/aSafeBqbhpx/findAll
# 特殊作业
tszyUrl: http://221.229.220.83:9028/mudu/aSafeQyzypgl/findAll
#自查周期url
zczqUrl: http://221.229.220.83:9028/mudu/aSafeZcrwRead
#巡查周期url
xczqUrl: http://221.229.220.83:9028/mudu/aSafeXcrwRead
Loading…
Cancel
Save