package org.gyk.modules.sz.zcpz.controller;

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

import org.gyk.common.annotation.AutoLog;
import org.gyk.common.api.Result;
import org.gyk.modules.sz.zcpz.entity.*;
import org.gyk.modules.sz.zcpz.service.*;
import org.gyk.common.base.controller.gykController;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

 /**
 * @Description: 自动计量站场列表
 * @Author: jeecg-boot
 * @Date:   2021-01-07
 * @Version: V1.0
 */
@Api(tags="自动计量站场列表")
@RestController
@RequestMapping("/zcpz/cxcSssjZdjlzc")
@Slf4j
public class CxcSssjZdjlzcController extends gykController<CxcSssjZdjlzc, ICxcSssjZdjlzcService> {
	@Autowired
	private ICxcSssjZdjlzcService cxcSssjZdjlzcService;

	/**
	 * 通过id查询
	 *
	 * @param id
	 * @return
	 */
	@AutoLog(value = "自动计量站场列表-通过id查询")
	@ApiOperation(value="自动计量站场列表-通过id查询", notes="自动计量站场列表-通过id查询")
	@GetMapping(value = "/queryById")
	public List<CxcSssjZdjlzc> queryById(@RequestParam(name="id",required=true) String id) {
		List<CxcSssjZdjlzc> list = cxcSssjZdjlzcService.getZcxxById(id);
		return list;
	}


}
