From 8ff089bfadb6f261d14a4e2f406872289100164c Mon Sep 17 00:00:00 2001 From: chengjunwang <952621270@qq.com> Date: Wed, 7 May 2025 13:37:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[FIX]=E4=BF=AE=E6=94=B9=E6=9C=BA=E7=BB=84?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/FangpaishuiUnitController.java | 16 ++++--------- .../mapper/FangpaishuiUnitMapper.java | 3 +-- .../mapper/xml/FangpaishuiUnitMapper.xml | 23 ++++++++++--------- .../service/FangpaishuiUnitService.java | 3 +-- .../impl/FangpaishuiUnitServiceImpl.java | 8 ++----- 5 files changed, 21 insertions(+), 32 deletions(-) diff --git a/src/main/java/com/jdc/jdcproject/controller/FangpaishuiUnitController.java b/src/main/java/com/jdc/jdcproject/controller/FangpaishuiUnitController.java index c40fc93..75e3e0f 100644 --- a/src/main/java/com/jdc/jdcproject/controller/FangpaishuiUnitController.java +++ b/src/main/java/com/jdc/jdcproject/controller/FangpaishuiUnitController.java @@ -18,17 +18,11 @@ public class FangpaishuiUnitController { @Autowired private FangpaishuiUnitService fangpaishuiUnitService; - @Operation(summary = "查询所有机组") - @GetMapping("findAllUnit") - public Result findAllUnit() { - List vos = fangpaishuiUnitService.findAllUnit(); - return Result.successResult().data("unitVos", vos); - } - @Operation(summary = "根据id查询机组信息") - @GetMapping("findUnitById/{id}") - public Result findEquipmentById(@PathVariable int id) { - FangpaishuiUnitVo vo = fangpaishuiUnitService.findUnitById(id); - return Result.successResult().data("vo", vo); + @Operation(summary = "根据条件查询机组信息") + @PostMapping("findUnitByDetail") + public Result findUnitByDetail(@RequestBody FangpaishuiUnitVo fangpaishuiUnitVo) { + List vos = fangpaishuiUnitService.findUnitByDetail(fangpaishuiUnitVo); + return Result.successResult().data("vos", vos); } @Operation(summary = "修改机组信息") @PostMapping("updateUnit") diff --git a/src/main/java/com/jdc/jdcproject/mapper/FangpaishuiUnitMapper.java b/src/main/java/com/jdc/jdcproject/mapper/FangpaishuiUnitMapper.java index 86774ee..019881e 100644 --- a/src/main/java/com/jdc/jdcproject/mapper/FangpaishuiUnitMapper.java +++ b/src/main/java/com/jdc/jdcproject/mapper/FangpaishuiUnitMapper.java @@ -15,9 +15,8 @@ import java.util.List; */ public interface FangpaishuiUnitMapper extends BaseMapper { - List findAllUnit(); - FangpaishuiUnitVo findUnitById(int id); + List findUnitByDetail(FangpaishuiUnitVo vo); } diff --git a/src/main/java/com/jdc/jdcproject/mapper/xml/FangpaishuiUnitMapper.xml b/src/main/java/com/jdc/jdcproject/mapper/xml/FangpaishuiUnitMapper.xml index 1b3af31..23f7832 100644 --- a/src/main/java/com/jdc/jdcproject/mapper/xml/FangpaishuiUnitMapper.xml +++ b/src/main/java/com/jdc/jdcproject/mapper/xml/FangpaishuiUnitMapper.xml @@ -4,20 +4,21 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - - - - select fn.*, e.equipmentName FROM fangpaishui_unit fn LEFT JOIN equipment e ON e.EquipmentId = fn.EquipmentId - where fn.UnitID = #{id} + + + and fn.UnitID = #{UnitID} + + + and e.equipmentName like concat(concat('%',#{equipmentName}),'%') + + + and fn.UnitCode like concat(concat('%',#{UnitCode}),'%') + + diff --git a/src/main/java/com/jdc/jdcproject/service/FangpaishuiUnitService.java b/src/main/java/com/jdc/jdcproject/service/FangpaishuiUnitService.java index a01667e..deac6dc 100644 --- a/src/main/java/com/jdc/jdcproject/service/FangpaishuiUnitService.java +++ b/src/main/java/com/jdc/jdcproject/service/FangpaishuiUnitService.java @@ -14,7 +14,6 @@ import java.util.List; */ public interface FangpaishuiUnitService extends IService { - List findAllUnit(); - FangpaishuiUnitVo findUnitById(int id); + List findUnitByDetail(FangpaishuiUnitVo vo); } diff --git a/src/main/java/com/jdc/jdcproject/service/impl/FangpaishuiUnitServiceImpl.java b/src/main/java/com/jdc/jdcproject/service/impl/FangpaishuiUnitServiceImpl.java index 094d430..6d8d742 100644 --- a/src/main/java/com/jdc/jdcproject/service/impl/FangpaishuiUnitServiceImpl.java +++ b/src/main/java/com/jdc/jdcproject/service/impl/FangpaishuiUnitServiceImpl.java @@ -18,14 +18,10 @@ import java.util.List; public class FangpaishuiUnitServiceImpl extends ServiceImpl implements FangpaishuiUnitService{ - @Override - public List findAllUnit() { - return baseMapper.findAllUnit(); - } @Override - public FangpaishuiUnitVo findUnitById(int id) { - return baseMapper.findUnitById(id); + public List findUnitByDetail(FangpaishuiUnitVo vo) { + return baseMapper.findUnitByDetail(vo); } } From 246d840a41a7313ec32bb554a90b1cf8d2b146a2 Mon Sep 17 00:00:00 2001 From: chengjunwang <952621270@qq.com> Date: Wed, 7 May 2025 15:26:24 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[add]=E6=B0=B4=E6=B3=B5=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...gpaishuiPumpoperationrecordController.java | 81 +++++++++ .../FangpaishuiPumpoperationrecord.java | 135 +++++++++++++++ .../VO/FangpaishuiPumpoperationrecordVo.java | 160 ++++++++++++++++++ .../FangpaishuiPumpoperationrecordMapper.java | 23 +++ .../FangpaishuiPumpoperationrecordMapper.xml | 30 ++++ ...FangpaishuiPumpoperationrecordService.java | 17 ++ ...paishuiPumpoperationrecordServiceImpl.java | 29 ++++ 7 files changed, 475 insertions(+) create mode 100644 src/main/java/com/jdc/jdcproject/controller/FangpaishuiPumpoperationrecordController.java create mode 100644 src/main/java/com/jdc/jdcproject/entity/FangpaishuiPumpoperationrecord.java create mode 100644 src/main/java/com/jdc/jdcproject/entity/VO/FangpaishuiPumpoperationrecordVo.java create mode 100644 src/main/java/com/jdc/jdcproject/mapper/FangpaishuiPumpoperationrecordMapper.java create mode 100644 src/main/java/com/jdc/jdcproject/mapper/xml/FangpaishuiPumpoperationrecordMapper.xml create mode 100644 src/main/java/com/jdc/jdcproject/service/FangpaishuiPumpoperationrecordService.java create mode 100644 src/main/java/com/jdc/jdcproject/service/impl/FangpaishuiPumpoperationrecordServiceImpl.java diff --git a/src/main/java/com/jdc/jdcproject/controller/FangpaishuiPumpoperationrecordController.java b/src/main/java/com/jdc/jdcproject/controller/FangpaishuiPumpoperationrecordController.java new file mode 100644 index 0000000..0a93f66 --- /dev/null +++ b/src/main/java/com/jdc/jdcproject/controller/FangpaishuiPumpoperationrecordController.java @@ -0,0 +1,81 @@ +package com.jdc.jdcproject.controller; + +import com.jdc.jdcproject.entity.FangpaishuiPumpoperationrecord; +import com.jdc.jdcproject.entity.FangpaishuiUnit; +import com.jdc.jdcproject.entity.VO.FangpaishuiPumpoperationrecordVo; +import com.jdc.jdcproject.entity.VO.FangpaishuiUnitVo; +import com.jdc.jdcproject.service.EquipmentService; +import com.jdc.jdcproject.service.FangpaishuiPumpoperationrecordService; +import com.jdc.jdcproject.utils.Result; +import io.swagger.v3.oas.annotations.Operation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.time.Instant; +import java.time.LocalDate; +import java.time.ZoneId; +import java.util.Date; +import java.util.List; + +@RestController +@RequestMapping("/FangpaishuiPumpoperationrecordController") +public class FangpaishuiPumpoperationrecordController { + @Autowired + private FangpaishuiPumpoperationrecordService fangpaishuiPumpoperationrecordService; + + @Operation(summary = "根据条件查询水泵运行日志") + @PostMapping("findPumpoperationrecordByDetail") + public Result findPumpoperationrecordByDetail(@RequestBody FangpaishuiPumpoperationrecordVo fangpaishuiPumpoperationrecordVo) { + List vos = fangpaishuiPumpoperationrecordService.findDetail(fangpaishuiPumpoperationrecordVo); + return Result.successResult().data("vos", vos); + } + @Operation(summary = "新增水泵运行日志") + @PostMapping("addFangpaishuiPumpoperationrecord") + public Result addFangpaishuiPumpoperationrecord(@RequestBody FangpaishuiPumpoperationrecord fangpaishuiPumpoperationrecord) { + Date date = new Date(); + Instant instant = date.toInstant(); + ZoneId zoneId = ZoneId.systemDefault(); + LocalDate localDate = instant.atZone(zoneId).toLocalDate(); + fangpaishuiPumpoperationrecord.setMonth(localDate); + //计算小时差并写入操作时间 + Long start = fangpaishuiPumpoperationrecord.getStartupTime().getTime(); + Long end = fangpaishuiPumpoperationrecord.getEndTime().getTime(); + int minutes = (int) ((end - start) / (1000 * 60)); + fangpaishuiPumpoperationrecord.setOperationTime((double) (minutes/60)); + System.out.println(fangpaishuiPumpoperationrecord); + + boolean updateflag = fangpaishuiPumpoperationrecordService.save(fangpaishuiPumpoperationrecord); + if (updateflag) { + return Result.successResult(); + } else { + return Result.errorResult(); + } + } + + @Operation(summary = "删除水泵运行日志") + @DeleteMapping("deleteFangpaishuiPumpoperationrecord/{id}") + public Result deleteFangpaishuiPumpoperationrecord(@PathVariable int id) { + boolean updateflag = fangpaishuiPumpoperationrecordService.removeById(id); + if (updateflag) { + return Result.successResult(); + } else { + return Result.errorResult(); + } + } + + @Operation(summary = "修改水泵运行日志") + @PostMapping("updateFangpaishuiPumpoperationrecord") + public Result updateFangpaishuiPumpoperationrecord(@RequestBody FangpaishuiPumpoperationrecord fangpaishuiPumpoperationrecord) { + //计算小时差并写入操作时间 + Long start = fangpaishuiPumpoperationrecord.getStartupTime().getTime(); + Long end = fangpaishuiPumpoperationrecord.getEndTime().getTime(); + int minutes = (int) ((end - start) / (1000 * 60)); + fangpaishuiPumpoperationrecord.setOperationTime((double) (minutes/60)); + boolean updateflag = fangpaishuiPumpoperationrecordService.updateById(fangpaishuiPumpoperationrecord); + if (updateflag) { + return Result.successResult(); + } else { + return Result.errorResult(); + } + } +} diff --git a/src/main/java/com/jdc/jdcproject/entity/FangpaishuiPumpoperationrecord.java b/src/main/java/com/jdc/jdcproject/entity/FangpaishuiPumpoperationrecord.java new file mode 100644 index 0000000..5deb8ee --- /dev/null +++ b/src/main/java/com/jdc/jdcproject/entity/FangpaishuiPumpoperationrecord.java @@ -0,0 +1,135 @@ +package com.jdc.jdcproject.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import java.time.LocalDate; +import java.util.Date; + +import lombok.Data; + +/** + * 泵站操作记录表; + * @TableName fangpaishui_pumpoperationrecord + */ +@TableName(value ="fangpaishui_pumpoperationrecord") +@Data +public class FangpaishuiPumpoperationrecord implements Serializable { + /** + * 主键,唯一标识操作记录 + */ + @TableId(value = "RecordID") + private Integer recordID; + + /** + * 外键,关联操作的机组 + */ + @TableField(value = "UnitID") + private Integer unitID; + + /** + * 操作类型(“排水”或“倒水”) + */ + @TableField(value = "OperationType") + private String operationType; + + /** + * 操作时间(小时) + */ + @TableField(value = "OperationTime") + private Double operationTime; + + /** + * 排水量/倒水量(单位:立方米) + */ + @TableField(value = "Volume") + private Integer volume; + + /** + * 月份(格式:YYYY-MM-dd) + */ + @TableField(value = "Month") + private LocalDate month; + + /** + * 班次(白班、零点班、四点班) + */ + @TableField(value = "Sailings") + private String sailings; + + /** + * 启动时间(格式:YYYY-MM-dd HH:mm:ss) + */ + @TableField(value = "StartupTime") + private Date startupTime; + + /** + * 停止时间(格式:YYYY-MM-dd HH:mm:ss) + */ + @TableField(value = "EndTime") + private Date endTime; + + @TableField(exist = false) + private static final long serialVersionUID = 1L; + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + FangpaishuiPumpoperationrecord other = (FangpaishuiPumpoperationrecord) that; + return (this.getRecordID() == null ? other.getRecordID() == null : this.getRecordID().equals(other.getRecordID())) + && (this.getUnitID() == null ? other.getUnitID() == null : this.getUnitID().equals(other.getUnitID())) + && (this.getOperationType() == null ? other.getOperationType() == null : this.getOperationType().equals(other.getOperationType())) + && (this.getOperationTime() == null ? other.getOperationTime() == null : this.getOperationTime().equals(other.getOperationTime())) + && (this.getVolume() == null ? other.getVolume() == null : this.getVolume().equals(other.getVolume())) + && (this.getMonth() == null ? other.getMonth() == null : this.getMonth().equals(other.getMonth())) + && (this.getSailings() == null ? other.getSailings() == null : this.getSailings().equals(other.getSailings())) + && (this.getStartupTime() == null ? other.getStartupTime() == null : this.getStartupTime().equals(other.getStartupTime())) + && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getRecordID() == null) ? 0 : getRecordID().hashCode()); + result = prime * result + ((getUnitID() == null) ? 0 : getUnitID().hashCode()); + result = prime * result + ((getOperationType() == null) ? 0 : getOperationType().hashCode()); + result = prime * result + ((getOperationTime() == null) ? 0 : getOperationTime().hashCode()); + result = prime * result + ((getVolume() == null) ? 0 : getVolume().hashCode()); + result = prime * result + ((getMonth() == null) ? 0 : getMonth().hashCode()); + result = prime * result + ((getSailings() == null) ? 0 : getSailings().hashCode()); + result = prime * result + ((getStartupTime() == null) ? 0 : getStartupTime().hashCode()); + result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", recordID=").append(recordID); + sb.append(", unitID=").append(unitID); + sb.append(", operationType=").append(operationType); + sb.append(", operationTime=").append(operationTime); + sb.append(", volume=").append(volume); + sb.append(", month=").append(month); + sb.append(", sailings=").append(sailings); + sb.append(", startupTime=").append(startupTime); + sb.append(", endTime=").append(endTime); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/jdc/jdcproject/entity/VO/FangpaishuiPumpoperationrecordVo.java b/src/main/java/com/jdc/jdcproject/entity/VO/FangpaishuiPumpoperationrecordVo.java new file mode 100644 index 0000000..981e321 --- /dev/null +++ b/src/main/java/com/jdc/jdcproject/entity/VO/FangpaishuiPumpoperationrecordVo.java @@ -0,0 +1,160 @@ +package com.jdc.jdcproject.entity.VO; + +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDate; +import java.util.Date; + +/** + * 泵站操作VO + */ +@Data +public class FangpaishuiPumpoperationrecordVo implements Serializable { + /** + * 主键,唯一标识操作记录 + */ + @TableId(value = "RecordID") + @Schema(description = "主键") + private Integer recordID; + + /** + * 外键,关联操作的设备 + */ + @Schema(description = "设备ID") + private Integer EquipmentId; + + /** + * 外键,关联操作的机组 + */ + @Schema(description = "机组编码") + private String unitCode; + + /** + * 外键,关联操作的设备 + */ + @Schema(description = "设备名称") + private String EquipmentName; + + /** + * 外键,关联操作的机组 + */ + @Schema(description = "机组ID") + private Integer unitID; + + /** + * 额定排水量(固定属性) + */ + @Schema(description = "额定排水量") + private Integer ratedCapacity; + + /** + * 班次(白班、零点班、四点班) + */ + @Schema(description = "班次") + private String sailings; + + /** + * 操作类型(“排水”或“倒水”) + */ + @Schema(description = "操作类型") + private String operationType; + + /** + * 操作时间(小时) + */ + @Schema(description = "操作时间(小时)") + private Double operationTime; + + /** + * 排水量/倒水量(单位:立方米) + */ + @Schema(description = "排水量/倒水量(单位:立方米)") + private Integer volume; + + /** + * 日期(格式:YYYY-MM-dd ) + */ + @Schema(description = "日期") + private LocalDate month; + + + + /** + * 启动时间(格式:YYYY-MM-dd HH:mm:ss ) + */ + @Schema(description = "启动时间") + private Date startupTime; + + /** + * 停止时间(格式:YYYY-MM-dd HH:mm:ss ) + */ + @Schema(description = "停止时间") + private Date endTime; + + @TableField(exist = false) + private static final long serialVersionUID = 1L; + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + FangpaishuiPumpoperationrecordVo other = (FangpaishuiPumpoperationrecordVo) that; + return (this.getRecordID() == null ? other.getRecordID() == null : this.getRecordID().equals(other.getRecordID())) + && (this.getUnitID() == null ? other.getUnitID() == null : this.getUnitID().equals(other.getUnitID())) + && (this.getOperationType() == null ? other.getOperationType() == null : this.getOperationType().equals(other.getOperationType())) + && (this.getOperationTime() == null ? other.getOperationTime() == null : this.getOperationTime().equals(other.getOperationTime())) + && (this.getVolume() == null ? other.getVolume() == null : this.getVolume().equals(other.getVolume())) + && (this.getMonth() == null ? other.getMonth() == null : this.getMonth().equals(other.getMonth())) + && (this.getSailings() == null ? other.getSailings() == null : this.getSailings().equals(other.getSailings())) + && (this.getStartupTime() == null ? other.getStartupTime() == null : this.getStartupTime().equals(other.getStartupTime())) + && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getRecordID() == null) ? 0 : getRecordID().hashCode()); + result = prime * result + ((getUnitID() == null) ? 0 : getUnitID().hashCode()); + result = prime * result + ((getOperationType() == null) ? 0 : getOperationType().hashCode()); + result = prime * result + ((getOperationTime() == null) ? 0 : getOperationTime().hashCode()); + result = prime * result + ((getVolume() == null) ? 0 : getVolume().hashCode()); + result = prime * result + ((getMonth() == null) ? 0 : getMonth().hashCode()); + result = prime * result + ((getSailings() == null) ? 0 : getSailings().hashCode()); + result = prime * result + ((getStartupTime() == null) ? 0 : getStartupTime().hashCode()); + result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); + return result; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", recordID=").append(recordID); + sb.append(", unitID=").append(unitID); + sb.append(", operationType=").append(operationType); + sb.append(", operationTime=").append(operationTime); + sb.append(", volume=").append(volume); + sb.append(", month=").append(month); + sb.append(", sailings=").append(sailings); + sb.append(", startupTime=").append(startupTime); + sb.append(", endTime=").append(endTime); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/jdc/jdcproject/mapper/FangpaishuiPumpoperationrecordMapper.java b/src/main/java/com/jdc/jdcproject/mapper/FangpaishuiPumpoperationrecordMapper.java new file mode 100644 index 0000000..ebab766 --- /dev/null +++ b/src/main/java/com/jdc/jdcproject/mapper/FangpaishuiPumpoperationrecordMapper.java @@ -0,0 +1,23 @@ +package com.jdc.jdcproject.mapper; + +import com.jdc.jdcproject.entity.FangpaishuiPumpoperationrecord; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.jdc.jdcproject.entity.VO.FangpaishuiPumpoperationrecordVo; +import com.jdc.jdcproject.entity.VO.FangpaishuiUnitVo; + +import java.util.List; + +/** +* @author 95262 +* @description 针对表【fangpaishui_pumpoperationrecord(泵站操作记录表;)】的数据库操作Mapper +* @createDate 2025-05-07 13:37:49 +* @Entity com.jdc.jdcproject.entity.FangpaishuiPumpoperationrecord +*/ +public interface FangpaishuiPumpoperationrecordMapper extends BaseMapper { + + List findDetail(FangpaishuiPumpoperationrecordVo vo); +} + + + + diff --git a/src/main/java/com/jdc/jdcproject/mapper/xml/FangpaishuiPumpoperationrecordMapper.xml b/src/main/java/com/jdc/jdcproject/mapper/xml/FangpaishuiPumpoperationrecordMapper.xml new file mode 100644 index 0000000..a012bc2 --- /dev/null +++ b/src/main/java/com/jdc/jdcproject/mapper/xml/FangpaishuiPumpoperationrecordMapper.xml @@ -0,0 +1,30 @@ + + + + + + + diff --git a/src/main/java/com/jdc/jdcproject/service/FangpaishuiPumpoperationrecordService.java b/src/main/java/com/jdc/jdcproject/service/FangpaishuiPumpoperationrecordService.java new file mode 100644 index 0000000..d5e3392 --- /dev/null +++ b/src/main/java/com/jdc/jdcproject/service/FangpaishuiPumpoperationrecordService.java @@ -0,0 +1,17 @@ +package com.jdc.jdcproject.service; + +import com.jdc.jdcproject.entity.FangpaishuiPumpoperationrecord; +import com.baomidou.mybatisplus.extension.service.IService; +import com.jdc.jdcproject.entity.VO.FangpaishuiPumpoperationrecordVo; +import com.jdc.jdcproject.entity.VO.FangpaishuiUnitVo; + +import java.util.List; + +/** +* @author 95262 +* @description 针对表【fangpaishui_pumpoperationrecord(泵站操作记录表;)】的数据库操作Service +* @createDate 2025-05-07 13:37:49 +*/ +public interface FangpaishuiPumpoperationrecordService extends IService { + List findDetail(FangpaishuiPumpoperationrecordVo vo); +} diff --git a/src/main/java/com/jdc/jdcproject/service/impl/FangpaishuiPumpoperationrecordServiceImpl.java b/src/main/java/com/jdc/jdcproject/service/impl/FangpaishuiPumpoperationrecordServiceImpl.java new file mode 100644 index 0000000..1ad48d0 --- /dev/null +++ b/src/main/java/com/jdc/jdcproject/service/impl/FangpaishuiPumpoperationrecordServiceImpl.java @@ -0,0 +1,29 @@ +package com.jdc.jdcproject.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.jdc.jdcproject.entity.FangpaishuiPumpoperationrecord; +import com.jdc.jdcproject.entity.VO.FangpaishuiPumpoperationrecordVo; +import com.jdc.jdcproject.service.FangpaishuiPumpoperationrecordService; +import com.jdc.jdcproject.mapper.FangpaishuiPumpoperationrecordMapper; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** +* @author 95262 +* @description 针对表【fangpaishui_pumpoperationrecord(泵站操作记录表;)】的数据库操作Service实现 +* @createDate 2025-05-07 13:37:49 +*/ +@Service +public class FangpaishuiPumpoperationrecordServiceImpl extends ServiceImpl + implements FangpaishuiPumpoperationrecordService{ + + @Override + public List findDetail(FangpaishuiPumpoperationrecordVo vo) { + return baseMapper.findDetail(vo); + } +} + + + +