package com.xinelu.manage.controller.scheduleplandetail;

import com.xinelu.common.core.controller.BaseController;
import com.xinelu.common.core.domain.R;
import com.xinelu.manage.domain.scheduleplandetail.SchedulePlanDetail;
import com.xinelu.manage.service.scheduleplandetail.ISchedulePlanDetailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 排班计划明细控制器
 * @author: haown
 * @create: 2023-09-25 15:14
 **/
@Api(tags = "排班计划明细控制器")
@RestController
@RequestMapping("/system/schedule/plandetail")
public class SchedulePlanDetailController extends BaseController {

	@Resource
	private ISchedulePlanDetailService planDetailService;

	@ApiOperation("通过排班计划查询明细")
	@GetMapping("/getList")
	public R<List<SchedulePlanDetail>> getList(SchedulePlanDetail planDetail) {
		List<SchedulePlanDetail> list = planDetailService.getList(planDetail);
		return R.ok(list);
	}
}
