Browse Source

fit:1、信访投诉删除功能

master
pengwei 3 months ago
parent
commit
9c54a0d352
  1. 22
      src/main/java/com/biutag/supervision/controller/books/DataThreadControllers.java
  2. 2
      src/main/resources/mapper/DataThreadMapper.xml

22
src/main/java/com/biutag/supervision/controller/books/DataThreadControllers.java

@ -17,10 +17,7 @@ import com.biutag.supervision.pojo.vo.DataPetitionComplaintVo;
import com.biutag.supervision.pojo.vo.DataThreaVo;
import com.biutag.supervision.pojo.vo.ExcelDataThreaVo;
import com.biutag.supervision.pojo.vo.ExportGabxfVo;
import com.biutag.supervision.service.DataMailboxService;
import com.biutag.supervision.service.DataPetitionComplaintService;
import com.biutag.supervision.service.DataThreadService;
import com.biutag.supervision.service.SupDictDataService;
import com.biutag.supervision.service.*;
import com.biutag.supervision.util.CommonUtil;
import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor;
@ -47,6 +44,7 @@ public class DataThreadControllers {
private final SupDictDataService dictDataService;
private final DataCaseVerifService dataCaseVerifService;
@GetMapping
public Result<Object> page(DataThreadQueryParam queryParam){
return dataThreadService.pageList(queryParam);
@ -150,12 +148,18 @@ public class DataThreadControllers {
@DeleteMapping("/delDataThread")
public Result delDataThread(DataThreadQueryParam queryParam){
if("gabxf".equals(queryParam.getTableName()) ){
dataPetitionComplaintService.removeById(queryParam.getOriginId());
}else{
dataMailboxService.removeById(queryParam.getOriginId());
switch (queryParam.getProblemSourcesCode()){
case "21", "22":
dataPetitionComplaintService.removeById(queryParam.getOriginId());
break;
case "23":
dataMailboxService.removeById(queryParam.getOriginId());
break;
case "24":
default:
dataCaseVerifService.removeById(queryParam.getOriginId());
break;
}
return Result.success();
}
}

2
src/main/resources/mapper/DataThreadMapper.xml

@ -127,7 +127,7 @@
'' as initialPetition,
'' as massVisits,
distribution_state as distributionState,
'' as problemSourcesCode,
'24' as problemSourcesCode,
'' as receivingLeaderName,
'' as petitionProcessingStatus,
'' as checkStatus,

Loading…
Cancel
Save