package com.ygtx.gxt.controller;

import java.util.List;

import com.ygtx.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ygtx.common.core.page.TableDataInfo;
import com.ygtx.common.core.controller.BaseController;
import com.ygtx.gxt.domain.GxtOrderPerson;
import com.ygtx.gxt.service.IGxtOrderPersonService;

/**
 * 人员工单工分Controller
 * 
 * @author ruoyi
 */
@RestController
@RequestMapping("/gxt/orderperson")
public class GxtOrderPersonController extends BaseController
{
    @Autowired
    private IGxtOrderPersonService gxtOrderPersonService;

    /**
     * 查询人员工单工分列表
     */
    @GetMapping("/list")
    public TableDataInfo list(GxtOrderPerson gxtOrderPerson)
    {
        startPage();
        gxtOrderPerson.setUserId(SecurityUtils.getUserId());
        List<GxtOrderPerson> list = gxtOrderPersonService.selectGxtOrderPersonList(gxtOrderPerson);
        return getDataTable(list);
    }
}