Commit 0fd43ef2 by 284718418@qq.com

Merge remote-tracking branch 'origin/feature_20220222_huayi' into feature_20220222_huayi

parents b1ce664f c8ebc424
...@@ -4,6 +4,7 @@ package cn.timer.api.controller.spmk; ...@@ -4,6 +4,7 @@ package cn.timer.api.controller.spmk;
import java.io.Serializable; import java.io.Serializable;
import java.util.*; import java.util.*;
import cn.timer.api.bean.crm.CrmClientContacts;
import cn.timer.api.bean.spmk.*; import cn.timer.api.bean.spmk.*;
import cn.timer.api.bean.zzgl.ZzglAuth; import cn.timer.api.bean.zzgl.ZzglAuth;
import cn.timer.api.dao.spmk.*; import cn.timer.api.dao.spmk.*;
...@@ -1317,4 +1318,13 @@ public class SpmkController { ...@@ -1317,4 +1318,13 @@ public class SpmkController {
List<SpmkApproveDrafts> listAs = pageAs.getRecords(); List<SpmkApproveDrafts> listAs = pageAs.getRecords();
return ResultUtil.data(pageAs,listAs); return ResultUtil.data(pageAs,listAs);
} }
@PostMapping(value = "/del_drafts")
@ApiOperation(value = "删除草稿", httpMethod = "POST", notes = "删除草稿")
@Log(title = "审批-删除草稿", businessType = BusinessType.OTHER)
public Result<Object> myDrafts(@CurrentUser UserBean userBean, @RequestBody SpmkApproveDrafts spmkApproveDrafts) {
SpmkApproveDrafts drafts = SpmkApproveDrafts.builder().id(spmkApproveDrafts.getId()).build().selectById();
SpmkApproveDetailDrafts.builder().build().delete(new QueryWrapper<SpmkApproveDetailDrafts>().lambda().eq(SpmkApproveDetailDrafts::getApproveSummaryId, drafts.getId()));
drafts.deleteById();
return ResultUtil.data("删除成功");
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment