package com.ruoyi.app.controller.doubleDefense;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.doubledefense.dto.ContractorProfessionDTO;
import com.ruoyi.doubledefense.service.IContractorProfessionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 承包商工种Controller
 *
 * @author ruoyi
 * @date 2023-08-04
 */
@Api(tags = "APP承包商工种")
@RestController
@RequestMapping("/app/doubledefense/profession")
public class ContractorProfessionForAppController extends BaseController
{
    @Autowired
    private IContractorProfessionService contractorProfessionService;

    /**
     * 查询承包商工种列表
     */
    @ApiOperation("APP查询承包商工种列表")
    @GetMapping("/list")
    public TableDataInfo list(ContractorProfessionDTO contractorProfession)
    {
        startPage();
        List<ContractorProfessionDTO> list = contractorProfessionService.selectContractorProfessionList(contractorProfession);
        return getDataTable(list);
    }
}
