草稿删除接口

This commit is contained in:
yuezhihang
2021-12-05 15:52:43 +08:00
parent 1ba0157052
commit 0f78d8a78b
4 changed files with 32 additions and 4 deletions
@@ -44,10 +44,7 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.tmsps.fk.common.base.action.BaseAction;
import com.tmsps.fk.common.util.ChkUtil;
@@ -2521,6 +2518,13 @@ public class TodoTaskController extends BaseAction {
}
@ApiOperation(value = "删除草稿")
@PostMapping("/delCG")
public String delCG(@RequestParam("id") String id) {
return iBusProcessNameService.delDB(id);
}
// @ApiOperation(value = "查询流程信息", notes = "根据流程流程编号查询名称等信息")
// @ApiImplicitParams({@ApiImplicitParam(name = "prcNum", value = "流程编号")})
// @PostMapping("/findProcessNameByPrcNum")
@@ -140,4 +140,16 @@ public interface LawsUserInfoService {
@PostMapping("/sapMeetInfo/getDateMeeting")
public int getDateMeeting(@RequestParam("date") @DateTimeFormat(pattern = "yyyy-MM-dd") Date date,@RequestParam("id") String id,@RequestParam("type") int type);
@PostMapping("/esRevisePlan/es-revise-plan/modPlanByWk")
public ResponseMessage<Object> modPlan(@RequestBody EsRevisePlanDTO esRevisePlan);
@PostMapping("/esRevisePlan/es-revise-plan/addPlanByWk")
public ResponseMessage<Object> addPlan(@RequestBody EsRevisePlanDTO esRevisePlan);
@GetMapping("/esRevisePlan/es-revise-plan/delPlanByWk")
public ResponseMessage<Object> delPlan(@RequestParam("id") String id);
}
@@ -21,4 +21,7 @@ public interface IBusProcessNameService extends IService<BusProcessName> {
//新查询代办接口 初步测试中
List<BusProcessName> todoTask(TaskCommonQuery taskCommonQuery);
String delDB(String id);
}
@@ -34,4 +34,13 @@ public class BusProcessNameServiceImpl extends ServiceImpl<BusProcessNameMapper,
return busProcessNameMapper.todoTask(taskCommonQuery);
}
@Override
public String delDB(String id) {
if (busProcessNameMapper.deleteById(id)>0) {
return "success";
}else {
return "error";
}
}
}