管道基础大数据平台系统开发-【后端】-Server
13693261870
2022-12-25 6f513913cc949f2b505176324f75f396a5d41e43
src/main/java/com/lf/server/controller/show/ApplyController.java
@@ -147,7 +147,7 @@
            @ApiImplicitParam(name = "applyid", value = "数据申请ID", dataType = "Integer", paramType = "query", example = "1")
    })
    @GetMapping(value = "/updateForDiscard")
    public ResponseMsg<Object> updateForDiscard(Integer applyid) {
    public ResponseMsg<Object> updateForDiscard(Integer applyid, HttpServletRequest req) {
        try {
            ApplyEntity applyEntity = applyService.selectById(applyid);
            if (null == applyEntity) {
@@ -157,7 +157,8 @@
                return fail("该数据申请无法废弃");
            }
            int rows = applyService.updateForDiscard(applyid);
            UserEntity ue = tokenService.getCurrentUser(req);
            int rows = applyService.updateForDiscard(ue.getId(), applyid);
            return success(rows);
        } catch (Exception ex) {
@@ -171,7 +172,7 @@
            @ApiImplicitParam(name = "applyid", value = "数据申请ID", dataType = "Integer", paramType = "query", example = "1")
    })
    @GetMapping(value = "/updateForResubmit")
    public ResponseMsg<Object> updateForResubmit(Integer applyid) {
    public ResponseMsg<Object> updateForResubmit(Integer applyid, HttpServletRequest req) {
        try {
            ApplyEntity applyEntity = applyService.selectById(applyid);
            if (null == applyEntity) {
@@ -181,7 +182,8 @@
                return fail("该数据申请无需重新提交");
            }
            int rows = applyService.updateForResubmit(applyid);
            UserEntity ue = tokenService.getCurrentUser(req);
            int rows = applyService.updateForResubmit(ue.getId(), applyid);
            return success(rows);
        } catch (Exception ex) {
@@ -213,11 +215,11 @@
                return fail("该数据申请无需打回");
            }
            int rows = applyService.updateForSubmit(applyEntity.getId(), flowEntity.getId());
            UserEntity ue = tokenService.getCurrentUser(req);
            int rows = applyService.updateForSubmit(ue.getId(), applyEntity.getId(), flowEntity.getId());
            applyEntity = applyService.selectById(applyEntity.getId());
            if (StaticData.TEN == applyEntity.getStatus()) {
                UserEntity ue = tokenService.getCurrentUser(req);
                applyService.zipDbData(ue, applyEntity);
            }
@@ -233,7 +235,7 @@
            @ApiImplicitParam(name = "flowId", value = "申请流程ID", dataType = "Integer", paramType = "query", example = "1")
    })
    @GetMapping(value = "/updateForReject")
    public ResponseMsg<Object> updateForReject(Integer flowId) {
    public ResponseMsg<Object> updateForReject(Integer flowId, HttpServletRequest req) {
        try {
            FlowEntity flowEntity = flowService.selectById(flowId);
            if (null == flowEntity) {
@@ -251,7 +253,8 @@
                return fail("该数据申请无需打回");
            }
            Integer rows = applyService.updateForReject(applyEntity.getId(), flowEntity.getId());
            UserEntity ue = tokenService.getCurrentUser(req);
            Integer rows = applyService.updateForReject(ue.getId(), applyEntity.getId(), flowEntity.getId());
            return success(rows);
        } catch (Exception ex) {