package com.newfiber.api.pc.controller.zhz; import com.newfiber.api.core.annotation.SysLog; import com.newfiber.api.core.commons.ResultCode; import com.newfiber.api.core.commons.ResultObj; import com.newfiber.api.pc.dto.OperationPumpDTO; import com.newfiber.api.pc.model.zhz.PumpStationInfo; import com.newfiber.api.pc.service.PumpStationInfoService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import java.io.Serializable; import java.util.List; /** * @description: 泵机运行参数控制层 * @author: 张鸿志 * @date: 2020/12/14 14:34 * @version: v1.0 */ @RestController @RequestMapping("/pumpInfo") @Api(value = "PumpStationInfoController",tags = "泵机运行参数管理") public class PumpStationInfoController implements Serializable { @Autowired private PumpStationInfoService pumpStationInfoService; @PostMapping("/queryAll") @ApiOperation("查询所有泵机的运行参数") @SysLog(actionType = "4",value = "查询所有泵机的运行参数") public ResultObj<List<PumpStationInfo>> queryAll(){ return new ResultObj<>(ResultCode.OK,pumpStationInfoService.selectList(null)); } }