| | |
| | | import com.java110.common.bmo.workflow.IQueryWorkFlowFirstStaffBMO; |
| | | import com.java110.dto.user.StaffDto; |
| | | import com.java110.dto.workflow.WorkflowDto; |
| | | import com.java110.intf.common.workflow.IWorkflowApi; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | 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; |
| | | |
| | | @RestController |
| | | public class WorkflowApi implements IWorkflowApi { |
| | | @RequestMapping("/workflow") |
| | | public class WorkflowApi { |
| | | |
| | | @Autowired |
| | | private IQueryWorkFlowFirstStaffBMO queryWorkFlowFirstStaffServiceImpl; |
| | | @Override |
| | | public StaffDto getFirstStaff(@RequestParam(name = "flowType") String flowType, |
| | | @RequestParam(name = "communityId") String communityId) { |
| | | private IQueryWorkFlowFirstStaffBMO queryWorkFlowFirstStaffBMOImpl; |
| | | |
| | | @RequestMapping(value = "/getFirstStaff", method = RequestMethod.GET) |
| | | public ResponseEntity<String> getFirstStaff(@RequestParam(name = "flowType") String flowType, |
| | | @RequestParam(name = "communityId") String communityId) { |
| | | WorkflowDto workflowDto = new WorkflowDto(); |
| | | workflowDto.setCommunityId(communityId); |
| | | workflowDto.setFlowType(flowType); |
| | | return queryWorkFlowFirstStaffServiceImpl.query(workflowDto); |
| | | return queryWorkFlowFirstStaffBMOImpl.query(workflowDto); |
| | | } |
| | | } |