用水户和取水口信息
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
package com.fastbee.rechargecard.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import com.github.yulichang.annotation.Table;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 用水户信息对象 information_water_user
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-12-19
|
||||
*/
|
||||
@ApiModel(value = "InformationWaterUser",description = "用水户信息 information_water_user")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table("ng_information_water_user")
|
||||
public class InformationWaterUser extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long waterUserId;
|
||||
|
||||
/** 用水户名称 */
|
||||
@Excel(name = "用水户名称")
|
||||
@ApiModelProperty("用水户名称")
|
||||
private String name;
|
||||
|
||||
/** 用水户账号 */
|
||||
@Excel(name = "用水户账号")
|
||||
@ApiModelProperty("用水户账号")
|
||||
private Long account;
|
||||
|
||||
/** 年用水量 */
|
||||
@Excel(name = "年用水量")
|
||||
@ApiModelProperty("年用水量")
|
||||
private BigDecimal waterConsumption;
|
||||
|
||||
/** 年度用水指标 */
|
||||
@Excel(name = "年度用水指标")
|
||||
@ApiModelProperty("年度用水指标")
|
||||
private BigDecimal waterConsumptionindex;
|
||||
|
||||
/** 流量预警状态 */
|
||||
@Excel(name = "流量预警状态")
|
||||
@ApiModelProperty("流量预警状态")
|
||||
private Long warningStatus;
|
||||
|
||||
/** 灌溉面积 */
|
||||
@Excel(name = "灌溉面积")
|
||||
@ApiModelProperty("灌溉面积")
|
||||
private BigDecimal irrigatedArea;
|
||||
|
||||
/** 所属区域 */
|
||||
@Excel(name = "所属区域")
|
||||
@ApiModelProperty("所属区域")
|
||||
private String belongingGegion;
|
||||
|
||||
/** 联系方式 */
|
||||
@Excel(name = "联系方式")
|
||||
@ApiModelProperty("联系方式")
|
||||
private String contactInformation;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.fastbee.rechargecard.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 取水口信息对象 ng_information_water_intake
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-12-19
|
||||
*/
|
||||
@ApiModel(value = "NgInformationWaterIntake",description = "取水口信息 ng_information_water_intake")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class NgInformationWaterIntake extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long intakeId;
|
||||
|
||||
/** 取水口编号 */
|
||||
@Excel(name = "取水口编号")
|
||||
@ApiModelProperty("取水口编号")
|
||||
private String wellId;
|
||||
|
||||
/** 设备编号 */
|
||||
@Excel(name = "设备编号")
|
||||
@ApiModelProperty("设备编号")
|
||||
private String deviceCode;
|
||||
|
||||
/** 位置 */
|
||||
@Excel(name = "位置")
|
||||
@ApiModelProperty("位置")
|
||||
private String location;
|
||||
|
||||
/** 建造日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "建造日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("建造日期")
|
||||
private Date constructionDate;
|
||||
|
||||
/** 维护状态 */
|
||||
@Excel(name = "维护状态")
|
||||
@ApiModelProperty("维护状态")
|
||||
private Long maintenanceStatus;
|
||||
|
||||
/** 上次维护日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "上次维护日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
@ApiModelProperty("上次维护日期")
|
||||
private Date lastMaintenanceDate;
|
||||
|
||||
/** 水质 */
|
||||
@Excel(name = "水质")
|
||||
@ApiModelProperty("水质")
|
||||
private String waterQuality;
|
||||
|
||||
/** 取水量 */
|
||||
@Excel(name = "取水量")
|
||||
@ApiModelProperty("取水量")
|
||||
private BigDecimal waterExtractionVolume;
|
||||
|
||||
/** 类型 */
|
||||
@Excel(name = "类型")
|
||||
@ApiModelProperty("类型")
|
||||
private Long type;
|
||||
|
||||
/** 负责人 */
|
||||
@Excel(name = "负责人")
|
||||
@ApiModelProperty("负责人")
|
||||
private String responsiblePerson;
|
||||
|
||||
/** 联系电话 */
|
||||
@Excel(name = "联系电话")
|
||||
@ApiModelProperty("联系电话")
|
||||
private String contactInformation;
|
||||
|
||||
/** 取水口参数 */
|
||||
@Excel(name = "取水口参数")
|
||||
@ApiModelProperty("取水口参数")
|
||||
private String parameter;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package com.fastbee.rechargecard.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.fastbee.common.annotation.Excel;
|
||||
import com.fastbee.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 用水户信息对象 ng_information_water_user
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-12-19
|
||||
*/
|
||||
@ApiModel(value = "NgInformationWaterUser",description = "用水户信息 ng_information_water_user")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class NgInformationWaterUser extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private Long waterUserId;
|
||||
|
||||
/** 用水户名称 */
|
||||
@Excel(name = "用水户名称")
|
||||
@ApiModelProperty("用水户名称")
|
||||
private String name;
|
||||
|
||||
/** 用水户账号 */
|
||||
@Excel(name = "用水户账号")
|
||||
@ApiModelProperty("用水户账号")
|
||||
private String account;
|
||||
|
||||
/** 年用水量 */
|
||||
@Excel(name = "年用水量")
|
||||
@ApiModelProperty("年用水量")
|
||||
private BigDecimal waterConsumption;
|
||||
|
||||
/** 年度用水指标 */
|
||||
@Excel(name = "年度用水指标")
|
||||
@ApiModelProperty("年度用水指标")
|
||||
private BigDecimal waterConsumptionindex;
|
||||
|
||||
/** 流量预警状态 */
|
||||
@Excel(name = "流量预警状态")
|
||||
@ApiModelProperty("流量预警状态")
|
||||
private Long warningStatus;
|
||||
|
||||
/** 灌溉面积 */
|
||||
@Excel(name = "灌溉面积")
|
||||
@ApiModelProperty("灌溉面积")
|
||||
private BigDecimal irrigatedArea;
|
||||
|
||||
/** 所属区域 */
|
||||
@Excel(name = "所属区域")
|
||||
@ApiModelProperty("所属区域")
|
||||
private String belongingGegion;
|
||||
|
||||
/** 联系方式 */
|
||||
@Excel(name = "联系方式")
|
||||
@ApiModelProperty("联系方式")
|
||||
private String contactInformation;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.fastbee.rechargecard.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.fastbee.rechargecard.domain.NgInformationWaterIntake;
|
||||
|
||||
/**
|
||||
* 取水口信息Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-12-19
|
||||
*/
|
||||
public interface NgInformationWaterIntakeMapper
|
||||
{
|
||||
/**
|
||||
* 查询取水口信息
|
||||
*
|
||||
* @param intakeId 取水口信息主键
|
||||
* @return 取水口信息
|
||||
*/
|
||||
public NgInformationWaterIntake selectNgInformationWaterIntakeByIntakeId(Long intakeId);
|
||||
|
||||
/**
|
||||
* 查询取水口信息列表
|
||||
*
|
||||
* @param ngInformationWaterIntake 取水口信息
|
||||
* @return 取水口信息集合
|
||||
*/
|
||||
public List<NgInformationWaterIntake> selectNgInformationWaterIntakeList(NgInformationWaterIntake ngInformationWaterIntake);
|
||||
|
||||
/**
|
||||
* 新增取水口信息
|
||||
*
|
||||
* @param ngInformationWaterIntake 取水口信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNgInformationWaterIntake(NgInformationWaterIntake ngInformationWaterIntake);
|
||||
|
||||
/**
|
||||
* 修改取水口信息
|
||||
*
|
||||
* @param ngInformationWaterIntake 取水口信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNgInformationWaterIntake(NgInformationWaterIntake ngInformationWaterIntake);
|
||||
|
||||
/**
|
||||
* 删除取水口信息
|
||||
*
|
||||
* @param intakeId 取水口信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNgInformationWaterIntakeByIntakeId(Long intakeId);
|
||||
|
||||
/**
|
||||
* 批量删除取水口信息
|
||||
*
|
||||
* @param intakeIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNgInformationWaterIntakeByIntakeIds(Long[] intakeIds);
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.fastbee.rechargecard.mapper;
|
||||
|
||||
|
||||
import com.fastbee.rechargecard.domain.NgInformationWaterUser;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用水户信息Mapper接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-12-19
|
||||
*/
|
||||
@Mapper
|
||||
public interface NgInformationWaterUserMapper
|
||||
{
|
||||
/**
|
||||
* 查询用水户信息
|
||||
*
|
||||
* @param waterUserId 用水户信息主键
|
||||
* @return 用水户信息
|
||||
*/
|
||||
public NgInformationWaterUser selectNgInformationWaterUserByWaterUserId(Long waterUserId);
|
||||
|
||||
/**
|
||||
* 查询用水户信息列表
|
||||
*
|
||||
* @param ngInformationWaterUser 用水户信息
|
||||
* @return 用水户信息集合
|
||||
*/
|
||||
public List<NgInformationWaterUser> selectNgInformationWaterUserList(NgInformationWaterUser ngInformationWaterUser);
|
||||
|
||||
/**
|
||||
* 新增用水户信息
|
||||
*
|
||||
* @param ngInformationWaterUser 用水户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNgInformationWaterUser(NgInformationWaterUser ngInformationWaterUser);
|
||||
|
||||
/**
|
||||
* 修改用水户信息
|
||||
*
|
||||
* @param ngInformationWaterUser 用水户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNgInformationWaterUser(NgInformationWaterUser ngInformationWaterUser);
|
||||
|
||||
/**
|
||||
* 删除用水户信息
|
||||
*
|
||||
* @param waterUserId 用水户信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNgInformationWaterUserByWaterUserId(Long waterUserId);
|
||||
|
||||
/**
|
||||
* 批量删除用水户信息
|
||||
*
|
||||
* @param waterUserIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNgInformationWaterUserByWaterUserIds(Long[] waterUserIds);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.fastbee.rechargecard.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.fastbee.rechargecard.domain.NgInformationWaterIntake;
|
||||
|
||||
/**
|
||||
* 取水口信息Service接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-12-19
|
||||
*/
|
||||
public interface INgInformationWaterIntakeService
|
||||
{
|
||||
/**
|
||||
* 查询取水口信息
|
||||
*
|
||||
* @param intakeId 取水口信息主键
|
||||
* @return 取水口信息
|
||||
*/
|
||||
public NgInformationWaterIntake selectNgInformationWaterIntakeByIntakeId(Long intakeId);
|
||||
|
||||
/**
|
||||
* 查询取水口信息列表
|
||||
*
|
||||
* @param ngInformationWaterIntake 取水口信息
|
||||
* @return 取水口信息集合
|
||||
*/
|
||||
public List<NgInformationWaterIntake> selectNgInformationWaterIntakeList(NgInformationWaterIntake ngInformationWaterIntake);
|
||||
|
||||
/**
|
||||
* 新增取水口信息
|
||||
*
|
||||
* @param ngInformationWaterIntake 取水口信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNgInformationWaterIntake(NgInformationWaterIntake ngInformationWaterIntake);
|
||||
|
||||
/**
|
||||
* 修改取水口信息
|
||||
*
|
||||
* @param ngInformationWaterIntake 取水口信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNgInformationWaterIntake(NgInformationWaterIntake ngInformationWaterIntake);
|
||||
|
||||
/**
|
||||
* 批量删除取水口信息
|
||||
*
|
||||
* @param intakeIds 需要删除的取水口信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNgInformationWaterIntakeByIntakeIds(Long[] intakeIds);
|
||||
|
||||
/**
|
||||
* 删除取水口信息信息
|
||||
*
|
||||
* @param intakeId 取水口信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNgInformationWaterIntakeByIntakeId(Long intakeId);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.fastbee.rechargecard.service;
|
||||
|
||||
|
||||
import com.fastbee.rechargecard.domain.NgInformationWaterUser;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用水户信息Service接口
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-12-19
|
||||
*/
|
||||
public interface INgInformationWaterUserService
|
||||
{
|
||||
/**
|
||||
* 查询用水户信息
|
||||
*
|
||||
* @param waterUserId 用水户信息主键
|
||||
* @return 用水户信息
|
||||
*/
|
||||
public NgInformationWaterUser selectNgInformationWaterUserByWaterUserId(Long waterUserId);
|
||||
|
||||
/**
|
||||
* 查询用水户信息列表
|
||||
*
|
||||
* @param ngInformationWaterUser 用水户信息
|
||||
* @return 用水户信息集合
|
||||
*/
|
||||
public List<NgInformationWaterUser> selectNgInformationWaterUserList(NgInformationWaterUser ngInformationWaterUser);
|
||||
|
||||
/**
|
||||
* 新增用水户信息
|
||||
*
|
||||
* @param ngInformationWaterUser 用水户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertNgInformationWaterUser(NgInformationWaterUser ngInformationWaterUser);
|
||||
|
||||
/**
|
||||
* 修改用水户信息
|
||||
*
|
||||
* @param ngInformationWaterUser 用水户信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateNgInformationWaterUser(NgInformationWaterUser ngInformationWaterUser);
|
||||
|
||||
/**
|
||||
* 批量删除用水户信息
|
||||
*
|
||||
* @param waterUserIds 需要删除的用水户信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNgInformationWaterUserByWaterUserIds(Long[] waterUserIds);
|
||||
|
||||
/**
|
||||
* 删除用水户信息信息
|
||||
*
|
||||
* @param waterUserId 用水户信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteNgInformationWaterUserByWaterUserId(Long waterUserId);
|
||||
}
|
||||
@@ -2,6 +2,7 @@ package com.fastbee.rechargecard.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.fastbee.rechargecard.domain.UserConsumptionDetails;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 用户充值卡账单明细记录Service接口
|
||||
@@ -9,6 +10,7 @@ import com.fastbee.rechargecard.domain.UserConsumptionDetails;
|
||||
* @author kerwincui
|
||||
* @date 2024-12-18
|
||||
*/
|
||||
|
||||
public interface IUserConsumptionDetailsService
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.fastbee.rechargecard.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.fastbee.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.fastbee.rechargecard.mapper.NgInformationWaterIntakeMapper;
|
||||
import com.fastbee.rechargecard.domain.NgInformationWaterIntake;
|
||||
import com.fastbee.rechargecard.service.INgInformationWaterIntakeService;
|
||||
|
||||
/**
|
||||
* 取水口信息Service业务层处理
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2024-12-19
|
||||
*/
|
||||
@Service
|
||||
public class NgInformationWaterIntakeServiceImpl implements INgInformationWaterIntakeService
|
||||
{
|
||||
@Autowired
|
||||
private NgInformationWaterIntakeMapper ngInformationWaterIntakeMapper;
|
||||
|
||||
/**
|
||||
* 查询取水口信息
|
||||
*
|
||||
* @param intakeId 取水口信息主键
|
||||
* @return 取水口信息
|
||||
*/
|
||||
@Override
|
||||
public NgInformationWaterIntake selectNgInformationWaterIntakeByIntakeId(Long intakeId)
|
||||
{
|
||||
return ngInformationWaterIntakeMapper.selectNgInformationWaterIntakeByIntakeId(intakeId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询取水口信息列表
|
||||
*
|
||||
* @param ngInformationWaterIntake 取水口信息
|
||||
* @return 取水口信息
|
||||
*/
|
||||
@Override
|
||||
public List<NgInformationWaterIntake> selectNgInformationWaterIntakeList(NgInformationWaterIntake ngInformationWaterIntake)
|
||||
{
|
||||
return ngInformationWaterIntakeMapper.selectNgInformationWaterIntakeList(ngInformationWaterIntake);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增取水口信息
|
||||
*
|
||||
* @param ngInformationWaterIntake 取水口信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertNgInformationWaterIntake(NgInformationWaterIntake ngInformationWaterIntake)
|
||||
{
|
||||
ngInformationWaterIntake.setCreateTime(DateUtils.getNowDate());
|
||||
return ngInformationWaterIntakeMapper.insertNgInformationWaterIntake(ngInformationWaterIntake);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改取水口信息
|
||||
*
|
||||
* @param ngInformationWaterIntake 取水口信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateNgInformationWaterIntake(NgInformationWaterIntake ngInformationWaterIntake)
|
||||
{
|
||||
ngInformationWaterIntake.setUpdateTime(DateUtils.getNowDate());
|
||||
return ngInformationWaterIntakeMapper.updateNgInformationWaterIntake(ngInformationWaterIntake);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除取水口信息
|
||||
*
|
||||
* @param intakeIds 需要删除的取水口信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteNgInformationWaterIntakeByIntakeIds(Long[] intakeIds)
|
||||
{
|
||||
return ngInformationWaterIntakeMapper.deleteNgInformationWaterIntakeByIntakeIds(intakeIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除取水口信息信息
|
||||
*
|
||||
* @param intakeId 取水口信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteNgInformationWaterIntakeByIntakeId(Long intakeId)
|
||||
{
|
||||
return ngInformationWaterIntakeMapper.deleteNgInformationWaterIntakeByIntakeId(intakeId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user