|
|
@ -115,8 +115,8 @@ public class AcheckTaskQuartz {
|
|
|
|
// @ApiOperation(value = "新增创建时间为昨天且处于审批通过的工单数据")
|
|
|
|
// @ApiOperation(value = "新增创建时间为昨天且处于审批通过的工单数据")
|
|
|
|
public AjaxResult selectAll() throws ParseException {
|
|
|
|
public AjaxResult selectAll() throws ParseException {
|
|
|
|
//巡查任务周期id
|
|
|
|
//巡查任务周期id
|
|
|
|
RwzqUuidResponse rwzqUuidResponse=aSafeRwzqService.getXcUuid();
|
|
|
|
RwzqUuidResponse rwzqUuidResponse = aSafeRwzqService.getXcUuid();
|
|
|
|
String rwzqUuid=rwzqUuidResponse.getXxbh();
|
|
|
|
String rwzqUuid = rwzqUuidResponse.getXxbh();
|
|
|
|
String responseList = HttpRequest.post(imUrl).contentType("application/x-www-form-urlencoded;charset=UTF-8").execute().body();
|
|
|
|
String responseList = HttpRequest.post(imUrl).contentType("application/x-www-form-urlencoded;charset=UTF-8").execute().body();
|
|
|
|
JSONObject jsonResponseList = JSON.parseObject(responseList);
|
|
|
|
JSONObject jsonResponseList = JSON.parseObject(responseList);
|
|
|
|
String dataList = jsonResponseList.getString("data");
|
|
|
|
String dataList = jsonResponseList.getString("data");
|
|
|
@ -228,7 +228,7 @@ public class AcheckTaskQuartz {
|
|
|
|
//周期编号
|
|
|
|
//周期编号
|
|
|
|
aSafeYhzgxx.setZqbh(rwzqUuid);
|
|
|
|
aSafeYhzgxx.setZqbh(rwzqUuid);
|
|
|
|
//企业风险点编号 对应a_safe_fxd的信息编号
|
|
|
|
//企业风险点编号 对应a_safe_fxd的信息编号
|
|
|
|
aSafeYhzgxx.setQyfxdbh(b.getCheckId());
|
|
|
|
aSafeYhzgxx.setQyfxdbh(b.getFxdxxbh());
|
|
|
|
//隐患来源
|
|
|
|
//隐患来源
|
|
|
|
aSafeYhzgxx.setYhly("1");
|
|
|
|
aSafeYhzgxx.setYhly("1");
|
|
|
|
//检查时间
|
|
|
|
//检查时间
|
|
|
@ -569,8 +569,8 @@ public class AcheckTaskQuartz {
|
|
|
|
// @ApiOperation(value = "自查")
|
|
|
|
// @ApiOperation(value = "自查")
|
|
|
|
public AjaxResult zicha() throws ParseException {
|
|
|
|
public AjaxResult zicha() throws ParseException {
|
|
|
|
//自己查任务周期id
|
|
|
|
//自己查任务周期id
|
|
|
|
RwzqUuidResponse rwzqUuidResponse=aSafeRwzqService.getZcUuid();
|
|
|
|
RwzqUuidResponse rwzqUuidResponse = aSafeRwzqService.getZcUuid();
|
|
|
|
String rwzqUuid=rwzqUuidResponse.getXxbh();
|
|
|
|
String rwzqUuid = rwzqUuidResponse.getXxbh();
|
|
|
|
String responseList = HttpRequest.post(zcXxUrl).contentType("application/x-www-form-urlencoded;charset=UTF-8").execute().body();
|
|
|
|
String responseList = HttpRequest.post(zcXxUrl).contentType("application/x-www-form-urlencoded;charset=UTF-8").execute().body();
|
|
|
|
JSONObject jsonResponseList = JSON.parseObject(responseList);
|
|
|
|
JSONObject jsonResponseList = JSON.parseObject(responseList);
|
|
|
|
String dataList = jsonResponseList.getString("data");
|
|
|
|
String dataList = jsonResponseList.getString("data");
|
|
|
@ -586,7 +586,7 @@ public class AcheckTaskQuartz {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*新增任务周期a_safe_rwzq
|
|
|
|
*新增任务周期a_safe_rwzq
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
saveRwzq(a, rwzqUuid);
|
|
|
|
// saveRwzq(a, rwzqUuid);
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 自查任务 a_safe_zcrw
|
|
|
|
* 自查任务 a_safe_zcrw
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -694,7 +694,7 @@ public class AcheckTaskQuartz {
|
|
|
|
//任务编号
|
|
|
|
//任务编号
|
|
|
|
aSafeZcrwjl.setRwbh(zcrwUuid);
|
|
|
|
aSafeZcrwjl.setRwbh(zcrwUuid);
|
|
|
|
//企业风险点编号
|
|
|
|
//企业风险点编号
|
|
|
|
aSafeZcrwjl.setQyfxdbh(b.getCheckId());
|
|
|
|
aSafeZcrwjl.setQyfxdbh(b.getFxdxxbh());
|
|
|
|
//企业风险点位置编号
|
|
|
|
//企业风险点位置编号
|
|
|
|
aSafeZcrwjl.setQyfxdwzbh(b.getFxbh());
|
|
|
|
aSafeZcrwjl.setQyfxdwzbh(b.getFxbh());
|
|
|
|
//是否发现隐患
|
|
|
|
//是否发现隐患
|
|
|
@ -878,7 +878,7 @@ public class AcheckTaskQuartz {
|
|
|
|
//周期编号
|
|
|
|
//周期编号
|
|
|
|
aSafeYhzgxx.setZqbh(rwzqUuid);
|
|
|
|
aSafeYhzgxx.setZqbh(rwzqUuid);
|
|
|
|
//企业风险点编号 对应a_safe_fxd的信息编号
|
|
|
|
//企业风险点编号 对应a_safe_fxd的信息编号
|
|
|
|
aSafeYhzgxx.setQyfxdbh(b.getCheckId());
|
|
|
|
aSafeYhzgxx.setQyfxdbh(b.getFxdxxbh());
|
|
|
|
//隐患来源
|
|
|
|
//隐患来源
|
|
|
|
aSafeYhzgxx.setYhly("2");
|
|
|
|
aSafeYhzgxx.setYhly("2");
|
|
|
|
//检查时间
|
|
|
|
//检查时间
|
|
|
|