package com.dy.pipIrrGlobal.pojoSt; /** * @Author: liurunyu * @Date: 2024/7/24 16:38 * @Description */ import com.alibaba.fastjson2.annotation.JSONField; import com.alibaba.fastjson2.writer.ObjectWriterImplToString; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.dy.common.po.BaseEntity; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; @TableName(value="st_intake_amount_month", autoResultMap = true) @Data @Builder @ToString @NoArgsConstructor @AllArgsConstructor @Schema(name = "取水口取水量月统计") public class StIntakeAmountMonth implements BaseEntity { public static final long serialVersionUID = 202407241644001L; /** * 主键 */ @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED) @JSONField(serializeUsing= ObjectWriterImplToString.class) @TableId(type = IdType.INPUT) public Long id; /** * 取水口ID */ @Schema(description = "取水口外键", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JSONField(serializeUsing= ObjectWriterImplToString.class) public Long intakeId; /** * 统计年度 */ @Schema(description = "统计年度", requiredMode = Schema.RequiredMode.NOT_REQUIRED) public Integer year; /** * 统计月份 */ @Schema(description = "统计月份", requiredMode = Schema.RequiredMode.NOT_REQUIRED) public Integer month; /** * 月取水量 */ @Schema(description = "月取水量(m3)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) public Double amount; }