package com.newfiber.api.pc.controller.zhz; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.newfiber.api.core.annotation.SysLog; import com.newfiber.api.core.commons.ResultCode; import com.newfiber.api.core.commons.ResultObj; import com.newfiber.api.pc.model.meet.People; import com.newfiber.api.pc.service.MeetTaskService; import com.newfiber.api.pc.service.PeopleSerivce; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * 人员排班任务列表 */ @RestController @RequestMapping("/scheduleTask") @Api(value = "MeetTaskController",tags = "人员排班任务功能") public class MeetTaskController { @Autowired private MeetTaskService meetTaskService; @Autowired private PeopleSerivce peopleSerivce; @PostMapping("/list") @ApiOperation("获取排班任务列表") @SysLog(actionType = "4",value = "获取排班任务列表") public ResultObj selectTaskList(){ return new ResultObj<>(ResultCode.OK, meetTaskService.selectTaskList()); } @PostMapping("/userlist") @ApiOperation("获取排班人员列表") @SysLog(actionType = "4",value = "获取排班人员列表") public ResultObj userlist(){ EntityWrapper<People> wrapper = new EntityWrapper<>(); wrapper.in("duty_type","4"); return new ResultObj<>(ResultCode.OK, peopleSerivce.selectList(wrapper)); } }