| | |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestHeader; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | |
| | | */ |
| | | @RequestMapping(value = "/queryOaWorkflow", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryOaWorkflow(@RequestHeader(value = "store-id") String storeId, |
| | | @RequestHeader(value = "user-id") String userId, |
| | | @RequestParam(value = "flowId", required = false) String flowId, |
| | | @RequestParam(value = "state", required = false) String state, |
| | | @RequestParam(value = "page") int page, |
| | |
| | | oaWorkflowDto.setStoreId(storeId); |
| | | oaWorkflowDto.setFlowId(flowId); |
| | | oaWorkflowDto.setState(state); |
| | | oaWorkflowDto.setUserId(userId); |
| | | return getOaWorkflowBMOImpl.get(oaWorkflowDto); |
| | | } |
| | | |
| | |
| | | if ("flowId".equals(key)) { |
| | | continue; |
| | | } |
| | | if("fileName".equals(key)){ |
| | | continue; |
| | | } |
| | | |
| | | if("realFileName".equals(key)){ |
| | | continue; |
| | | } |
| | | |
| | | columns.add(key); |
| | | values.add(reqJson.getString(key)); |
| | | } |
| | |
| | | @RequestMapping(value = "/getNextTask", method = RequestMethod.GET) |
| | | public ResponseEntity<String> getNextTask(@RequestHeader(value = "store-id") String storeId, |
| | | @RequestHeader(value = "user-id") String userId, |
| | | @RequestParam(value = "flowId") String flowId, |
| | | @RequestParam(value = "id") String id, |
| | | @RequestParam(value = "taskId") String taskId) { |
| | | JSONObject reqJson = new JSONObject(); |
| | | reqJson.put("storeId", storeId); |
| | | reqJson.put("taskId", taskId); |
| | | reqJson.put("userId", userId); |
| | | reqJson.put("flowId", flowId); |
| | | reqJson.put("id", id); |
| | | return getOaWorkflowFormBMOImpl.getNextTask(reqJson); |
| | | } |
| | | |