| | |
| | | @ApiImplicitParam(name = "flowId", value = "申请流程ID", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/updateForSubmit") |
| | | public ResponseMsg<Object> updateForSubmit(Integer flowId) { |
| | | public ResponseMsg<Object> updateForSubmit(Integer flowId, HttpServletRequest req) { |
| | | try { |
| | | FlowEntity flowEntity = flowService.selectById(flowId); |
| | | if (null == flowEntity) { |
| | |
| | | } |
| | | |
| | | int rows = applyService.updateForSubmit(applyEntity.getId(), flowEntity.getId()); |
| | | |
| | | applyEntity = applyService.selectById(applyEntity.getId()); |
| | | if (StaticData.TEN == applyEntity.getStatus()) { |
| | | // 打包 |
| | | UserEntity ue = tokenService.getCurrentUser(req); |
| | | applyService.zipDbData(ue, applyEntity); |
| | | } |
| | | |
| | | return success(rows); |