|
|
@ -10,6 +10,7 @@ import com.mudu.entity.*;
|
|
|
|
import com.mudu.entity.dto.request.ACheckQuatzRequest;
|
|
|
|
import com.mudu.entity.dto.request.ACheckQuatzRequest;
|
|
|
|
import com.mudu.entity.dto.request.ACheckQuatzZichaRequest;
|
|
|
|
import com.mudu.entity.dto.request.ACheckQuatzZichaRequest;
|
|
|
|
import com.mudu.entity.dto.response.ACheckXcTpResponse;
|
|
|
|
import com.mudu.entity.dto.response.ACheckXcTpResponse;
|
|
|
|
|
|
|
|
import com.mudu.entity.dto.response.RwzqUuidResponse;
|
|
|
|
import com.mudu.service.*;
|
|
|
|
import com.mudu.service.*;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
@ -113,6 +114,9 @@ public class AcheckTaskQuartz {
|
|
|
|
// @PostMapping("/insert")
|
|
|
|
// @PostMapping("/insert")
|
|
|
|
// @ApiOperation(value = "新增创建时间为昨天且处于审批通过的工单数据")
|
|
|
|
// @ApiOperation(value = "新增创建时间为昨天且处于审批通过的工单数据")
|
|
|
|
public AjaxResult selectAll() throws ParseException {
|
|
|
|
public AjaxResult selectAll() throws ParseException {
|
|
|
|
|
|
|
|
//巡查任务周期id
|
|
|
|
|
|
|
|
RwzqUuidResponse rwzqUuidResponse=aSafeRwzqService.getXcUuid();
|
|
|
|
|
|
|
|
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");
|
|
|
@ -124,9 +128,7 @@ public class AcheckTaskQuartz {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (ACheckQuatzRequest a : list) {
|
|
|
|
for (ACheckQuatzRequest a : list) {
|
|
|
|
String rwzqUuid = UUID.randomUUID().toString().replace("-", "").toLowerCase();
|
|
|
|
|
|
|
|
String xcrwuuid = UUID.randomUUID().toString().replace("-", "").toLowerCase();
|
|
|
|
String xcrwuuid = UUID.randomUUID().toString().replace("-", "").toLowerCase();
|
|
|
|
|
|
|
|
|
|
|
|
//获取企业编号
|
|
|
|
//获取企业编号
|
|
|
|
ASafeQyjcxx aSafeQyjcxx = aSafeQyjcxxService.findOneByqymcOrXybm(a.getName(), a.getEntCode());
|
|
|
|
ASafeQyjcxx aSafeQyjcxx = aSafeQyjcxxService.findOneByqymcOrXybm(a.getName(), a.getEntCode());
|
|
|
|
String enterPriseId = aSafeQyjcxx.getXxbh();
|
|
|
|
String enterPriseId = aSafeQyjcxx.getXxbh();
|
|
|
@ -162,10 +164,10 @@ public class AcheckTaskQuartz {
|
|
|
|
svaeZghTp(zgh, xcrwuuid, xxsx);
|
|
|
|
svaeZghTp(zgh, xcrwuuid, xxsx);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
// /**
|
|
|
|
*新增任务周期a_safe_rwzq
|
|
|
|
// *新增任务周期a_safe_rwzq
|
|
|
|
*/
|
|
|
|
// */
|
|
|
|
saveRwzq(a, rwzqUuid);
|
|
|
|
// saveRwzq(a, rwzqUuid);
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 新增巡查信息表 a_safe_xcrw
|
|
|
|
* 新增巡查信息表 a_safe_xcrw
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -343,7 +345,7 @@ public class AcheckTaskQuartz {
|
|
|
|
* @param xcrwuuid 巡查任务id
|
|
|
|
* @param xcrwuuid 巡查任务id
|
|
|
|
* @param rwzqUuid 任务周期id
|
|
|
|
* @param rwzqUuid 任务周期id
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private void saveXcrwJcx(ACheckQuatzEntity b, String xcrwwzUuid, String yhzgxxUuid, String xcrwjcxUuid, String enterPriseId, String xcrwuuid, String rwzqUuid) {
|
|
|
|
private void saveXcrwJcx(ACheckQuatzEntity b, String xcrwjcxUuid, String yhzgxxUuid, String xcrwwzUuid, String enterPriseId, String xcrwuuid, String rwzqUuid) {
|
|
|
|
ASafeXcrwjcx aSafeXcrwjcx = new ASafeXcrwjcx();
|
|
|
|
ASafeXcrwjcx aSafeXcrwjcx = new ASafeXcrwjcx();
|
|
|
|
//信息编号
|
|
|
|
//信息编号
|
|
|
|
aSafeXcrwjcx.setXxbh(xcrwjcxUuid);
|
|
|
|
aSafeXcrwjcx.setXxbh(xcrwjcxUuid);
|
|
|
@ -566,6 +568,9 @@ public class AcheckTaskQuartz {
|
|
|
|
// @PostMapping("/zicha")
|
|
|
|
// @PostMapping("/zicha")
|
|
|
|
// @ApiOperation(value = "自查")
|
|
|
|
// @ApiOperation(value = "自查")
|
|
|
|
public AjaxResult zicha() throws ParseException {
|
|
|
|
public AjaxResult zicha() throws ParseException {
|
|
|
|
|
|
|
|
//自己查任务周期id
|
|
|
|
|
|
|
|
RwzqUuidResponse rwzqUuidResponse=aSafeRwzqService.getZcUuid();
|
|
|
|
|
|
|
|
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");
|
|
|
@ -577,7 +582,6 @@ public class AcheckTaskQuartz {
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for (ACheckQuatzZichaRequest a : list) {
|
|
|
|
for (ACheckQuatzZichaRequest a : list) {
|
|
|
|
String rwzqUuid = UUID.randomUUID().toString().replace("-", "").toLowerCase();
|
|
|
|
|
|
|
|
String zcrwUuid = UUID.randomUUID().toString().replace("-", "").toLowerCase();
|
|
|
|
String zcrwUuid = UUID.randomUUID().toString().replace("-", "").toLowerCase();
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*新增任务周期a_safe_rwzq
|
|
|
|
*新增任务周期a_safe_rwzq
|
|
|
|