[修改] 流程中删除报告
This commit is contained in:
@@ -2,6 +2,7 @@ package com.adc.da.report.controller;
|
||||
|
||||
|
||||
import com.adc.da.report.eo.PowerApply;
|
||||
import com.adc.da.report.service.IPowerApplyActService;
|
||||
import com.adc.da.report.service.IPowerApplyService;
|
||||
import com.adc.da.report.vo.DeleteParamRequestVO;
|
||||
import com.adc.da.report.vo.PowerApplyPageVO;
|
||||
@@ -32,6 +33,9 @@ public class PowerApplyController {
|
||||
@Autowired
|
||||
private IPowerApplyService powerApplyService;
|
||||
|
||||
@Autowired
|
||||
private IPowerApplyActService iPowerApplyActService;
|
||||
|
||||
/**
|
||||
* @param powerApplyPageVO
|
||||
* @return com.adc.da.util.http.ResponseMessage
|
||||
@@ -107,7 +111,7 @@ public class PowerApplyController {
|
||||
* @date 2023-04-23
|
||||
* @description 根据id或id数组进行删除
|
||||
*/
|
||||
@DeleteMapping("/delete")
|
||||
@PostMapping("/delete")
|
||||
@ApiOperation(value = "单条/批量删除数据")
|
||||
public ResponseMessage delete(@RequestBody DeleteParamRequestVO deleteParamRequestVO){
|
||||
|
||||
@@ -115,4 +119,20 @@ public class PowerApplyController {
|
||||
powerApplyService.deleteById(deleteParamRequestVO);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param deleteParamRequestVO
|
||||
* @return com.adc.da.util.http.ResponseMessage
|
||||
* @author bu
|
||||
* @date 2023-04-23
|
||||
* @description 根据id或id数组进行删除
|
||||
*/
|
||||
@PostMapping("/deleteAct")
|
||||
@ApiOperation(value = "单条/批量删除数据")
|
||||
public ResponseMessage deleteAct(@RequestBody DeleteParamRequestVO deleteParamRequestVO){
|
||||
|
||||
//单条/批量删除数据
|
||||
iPowerApplyActService.deleteById(deleteParamRequestVO);
|
||||
return Result.success();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@
|
||||
rep.Name = #{Vo.name}
|
||||
and rep.del_flag = 0
|
||||
<if test="Vo.id != null and Vo.id != ''">
|
||||
and rep.id = #{Vo.id}
|
||||
and rep.id != #{Vo.id}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user