| | |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.fasterxml.jackson.databind.node.ObjectNode; |
| | | import com.java110.common.bmo.workflow.IQueryWorkFlowFirstStaffBMO; |
| | | import com.java110.dto.workflow.WorkflowDto; |
| | | import com.java110.dto.workflow.WorkflowModelDto; |
| | | import com.java110.dto.oaWorkflow.WorkflowModelDto; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.activiti.engine.ActivitiException; |
| | | import org.activiti.engine.RepositoryService; |
| | | import org.activiti.engine.repository.Model; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpStatus; |
| | | 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; |
| | |
| | | |
| | | @Autowired |
| | | private IQueryWorkFlowFirstStaffBMO queryWorkFlowFirstStaffBMOImpl; |
| | | |
| | | @RequestMapping(value = "/getFirstStaff", method = RequestMethod.GET) |
| | | public ResponseEntity<String> getFirstStaff(@RequestParam(name = "flowType") String flowType, |
| | | @RequestParam(name = "communityId") String communityId, |
| | | @RequestHeader(value = "store-id") String storeId) { |
| | | WorkflowDto workflowDto = new WorkflowDto(); |
| | | workflowDto.setCommunityId(communityId); |
| | | workflowDto.setFlowType(flowType); |
| | | workflowDto.setStoreId(storeId); |
| | | return queryWorkFlowFirstStaffBMOImpl.query(workflowDto); |
| | | } |
| | | |
| | | /** |
| | | * 更新流程 |