package com.nantian.cloud.jljc.controller;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.nantian.cloud.jljc.entity.TLawEnforcement;
import com.nantian.cloud.jljc.service.TLawEnforcementService;
import com.nantian.sc.cloud.common.core.util.R;
import com.nantian.sc.cloud.common.log.annotation.SysLog;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@AllArgsConstructor
@RequestMapping("/tLawEnforcement")
@Api(value = "tLawEnforcement",tags = "节能人员管理执法证字典表")
public class TLawEnforcementController {

    @Autowired
    TLawEnforcementService tLawEnforcementService;

    /**
     * 节能人员管理执法证字典表
     */
    @GetMapping("/list")
    @SysLog("节能人员管理执法证字典表")
    public R getList() {
        TLawEnforcement q = new TLawEnforcement();
        q.setDelFlag("1");  //筛选未删除项
        return R.ok(tLawEnforcementService.list(Wrappers.query(q)));
    }
}
