| | |
| | | @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) { |
| | |
| | | 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) { |
| | |
| | | @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) { |
| | |
| | | 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) { |
| | |
| | | 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); |
| | | } |
| | | |
| | |
| | | @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) { |
| | |
| | | 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) { |