[修改] 草稿删除,删除业务数据
This commit is contained in:
+32
-1
@@ -894,16 +894,47 @@ public class TodoTaskController {
|
||||
|
||||
@ApiOperation(value = "删除草稿", notes = "删除草稿")
|
||||
@GetMapping("/deleteDraft")
|
||||
public Wrapper<String> deleteDraft(String id) {
|
||||
public Wrapper<String> deleteDraft(String id,String prcType,String dataId) {
|
||||
//iBusProcessNameService.removeById(id);
|
||||
//2022-10-11修改为逻辑删除 如果物理删除,会影响发号器计算的编号数量。导致编号重复。
|
||||
BusProcessName busProcessName = new BusProcessName();
|
||||
busProcessName.setId(id);
|
||||
busProcessName.setSubmitStatus(SubmitStatusEnum.DELETE.getValue());
|
||||
this.iBusProcessNameService.updateById(busProcessName);
|
||||
deleteData(prcType,dataId);
|
||||
return WrapMapper.ok("删除成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除业务数据
|
||||
* @param prcType
|
||||
* @param dataId
|
||||
*/
|
||||
private void deleteData(String prcType, String dataId) {
|
||||
if ("".equals(prcType)){
|
||||
//预览
|
||||
powerApplyActDao.deleteByDataId(dataId);
|
||||
}else if ("1".equals(prcType)){
|
||||
//预览
|
||||
powerApplyActDao.deleteByDataId(dataId);
|
||||
} else if ("2".equals(prcType)){
|
||||
//预览 + 下载
|
||||
powerApplyActDao.deleteByDataId(dataId);
|
||||
}else if ("3".equals(prcType)){
|
||||
//下载
|
||||
powerApplyActDao.deleteByDataId(dataId);
|
||||
} else if("4".equals(prcType)){
|
||||
//上传
|
||||
ttReportManageActDao.deleteByDataId(dataId);
|
||||
|
||||
}else if("5".equals(prcType)){
|
||||
//编辑
|
||||
ttReportManageActDao.deleteByDataId(dataId);
|
||||
}else {
|
||||
throw new AdcDaBaseException("没有流程类型"+prcType);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "已发流程", notes = "已发流程")
|
||||
@PostMapping("/issuedProcess")
|
||||
public Page IssuedProcess(@RequestBody TaskCommonQuery taskCommonQuery) {
|
||||
|
||||
Reference in New Issue
Block a user