|
|
@ -62,12 +62,15 @@ public class DisposalInfoController extends BaseController {
|
|
|
|
transitHuntersUserModelRecord.setSignStatusCn("已签收已反馈");
|
|
|
|
transitHuntersUserModelRecord.setSignStatusCn("已签收已反馈");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
transitHuntersUserModelRecord.setDisposalResult(one.getDisposalResult());
|
|
|
|
transitHuntersUserModelRecord.setDisposalResult(one.getDisposalResult());
|
|
|
|
if (one.getDisposalResult() == 1){
|
|
|
|
if (one.getDisposalResult() == 1) {
|
|
|
|
transitHuntersUserModelRecord.setDisposalResultCn("无风险");
|
|
|
|
transitHuntersUserModelRecord.setDisposalResultCn("无风险");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (one.getDisposalResult() == 2){
|
|
|
|
if (one.getDisposalResult() == 2) {
|
|
|
|
transitHuntersUserModelRecord.setDisposalResultCn("有风险");
|
|
|
|
transitHuntersUserModelRecord.setDisposalResultCn("有风险");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (one.getDisposalResult() == 3) {
|
|
|
|
|
|
|
|
transitHuntersUserModelRecord.setDisposalResultCn("待查");
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
transitHuntersUserModelRecord.setSignStatusCn("未签收");
|
|
|
|
transitHuntersUserModelRecord.setSignStatusCn("未签收");
|
|
|
|
transitHuntersUserModelRecord.setSignStatus(1);
|
|
|
|
transitHuntersUserModelRecord.setSignStatus(1);
|
|
|
@ -75,8 +78,16 @@ public class DisposalInfoController extends BaseController {
|
|
|
|
String warningTime = transitHuntersUserModelRecord.getWarningTime();
|
|
|
|
String warningTime = transitHuntersUserModelRecord.getWarningTime();
|
|
|
|
LocalDateTime localDateTime = LocalDateTime.parse(warningTime, inputFormatter);
|
|
|
|
LocalDateTime localDateTime = LocalDateTime.parse(warningTime, inputFormatter);
|
|
|
|
transitHuntersUserModelRecord.setWarningTime(localDateTime.format(formatter));
|
|
|
|
transitHuntersUserModelRecord.setWarningTime(localDateTime.format(formatter));
|
|
|
|
|
|
|
|
if (modelRecord.getDisposalResultCn() != null && modelRecord.getDisposalResultCn().equals(transitHuntersUserModelRecord.getDisposalResultCn())) {
|
|
|
|
|
|
|
|
transitHuntersUserModelRecords.add(transitHuntersUserModelRecord);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (modelRecord.getSignStatusCn() != null && modelRecord.getSignStatusCn().equals(transitHuntersUserModelRecord.getSignStatusCn())){
|
|
|
|
|
|
|
|
transitHuntersUserModelRecords.add(transitHuntersUserModelRecord);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (modelRecord.getSignStatusCn() == null && modelRecord.getDisposalResultCn() == null){
|
|
|
|
transitHuntersUserModelRecords.add(transitHuntersUserModelRecord);
|
|
|
|
transitHuntersUserModelRecords.add(transitHuntersUserModelRecord);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
TableDataInfo dataTable = getDataTable(transitHuntersUserModelRecords);
|
|
|
|
TableDataInfo dataTable = getDataTable(transitHuntersUserModelRecords);
|
|
|
|
dataTable.setTotal(count);
|
|
|
|
dataTable.setTotal(count);
|
|
|
|
return dataTable;
|
|
|
|
return dataTable;
|
|
|
@ -95,6 +106,10 @@ public class DisposalInfoController extends BaseController {
|
|
|
|
disposalInfo.setDisposalResult(2);
|
|
|
|
disposalInfo.setDisposalResult(2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ("待查".equals(disposalInfo.getDisposalResultCn())) {
|
|
|
|
|
|
|
|
disposalInfo.setDisposalResult(3);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (disposalInfo.getSignPoliceman() != null && disposalInfo.getSignPoliceStation() != null) {
|
|
|
|
if (disposalInfo.getSignPoliceman() != null && disposalInfo.getSignPoliceStation() != null) {
|
|
|
|
disposalInfo.setSignStatus(2);
|
|
|
|
disposalInfo.setSignStatus(2);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -122,4 +137,12 @@ public class DisposalInfoController extends BaseController {
|
|
|
|
DisposalInfo one = disposalInfoService.getOne(queryWrapper);
|
|
|
|
DisposalInfo one = disposalInfoService.getOne(queryWrapper);
|
|
|
|
return AjaxResult.success(one);
|
|
|
|
return AjaxResult.success(one);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/count")
|
|
|
|
|
|
|
|
@ApiOperation("查找未处置条数")
|
|
|
|
|
|
|
|
public AjaxResult disposalInfoCount() {
|
|
|
|
|
|
|
|
int count = disposalInfoService.count();
|
|
|
|
|
|
|
|
int count1 = transitHuntersUserModelRecordService.count();
|
|
|
|
|
|
|
|
return AjaxResult.success(count1 - count);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|