| | |
| | | @GetMapping(value = "/updateForDiscard") |
| | | public ResponseMsg<Object> updateForDiscard(Integer applyid) { |
| | | try { |
| | | ApplyEntity applyEntity = applyService.selectById(applyid); |
| | | if (null == applyEntity) { |
| | | return fail("找不到数据申请"); |
| | | } |
| | | if (!(applyEntity.getStatus() >= -1 && applyEntity.getStatus() <= StaticData.NINE)) { |
| | | return fail("该数据申请无法废弃"); |
| | | } |
| | | |
| | | int rows = applyService.updateForDiscard(applyid); |
| | | |
| | | return success(rows); |
| | |
| | | @GetMapping(value = "/updateForResubmit") |
| | | public ResponseMsg<Object> updateForResubmit(Integer applyid) { |
| | | try { |
| | | ApplyEntity applyEntity = applyService.selectById(applyid); |
| | | if (null == applyEntity) { |
| | | return fail("找不到数据申请"); |
| | | } |
| | | if (-1 != applyEntity.getStatus()) { |
| | | return fail("该数据申请无需重新提交"); |
| | | } |
| | | |
| | | int rows = applyService.updateForResubmit(applyid); |
| | | |
| | | return success(rows); |
| | |
| | | @GetMapping(value = "/updateForSubmit") |
| | | public ResponseMsg<Object> updateForSubmit(Integer flowId) { |
| | | try { |
| | | FlowEntity flowEntity = flowService.selectById(flowId); |
| | | if (null == flowEntity) { |
| | | return fail("找不到申请流程"); |
| | | } |
| | | if (flowEntity.getStatus() != 0) { |
| | | return fail("该申请流程无需要打回"); |
| | | } |
| | | |
| | | ApplyEntity applyEntity = applyService.selectById(flowEntity.getApplyid()); |
| | | if (null == applyEntity) { |
| | | return fail("找不到数据申请"); |
| | | } |
| | | if (!(applyEntity.getStatus() >= 0 && applyEntity.getStatus() <= StaticData.NINE)) { |
| | | return fail("该数据申请无需要打回"); |
| | | } |
| | | |
| | | // |
| | | |
| | | return success(null); |
| | | } catch (Exception ex) { |