diff --git a/fastbee-service/fastbee-rechargecard-service/src/main/java/com/fastbee/rechargecard/service/impl/NgInformationWaterUserServiceImpl.java b/fastbee-service/fastbee-rechargecard-service/src/main/java/com/fastbee/rechargecard/service/impl/NgInformationWaterUserServiceImpl.java new file mode 100644 index 0000000..5f82c4e --- /dev/null +++ b/fastbee-service/fastbee-rechargecard-service/src/main/java/com/fastbee/rechargecard/service/impl/NgInformationWaterUserServiceImpl.java @@ -0,0 +1,98 @@ +package com.fastbee.rechargecard.service.impl; + + +import com.fastbee.common.utils.DateUtils; +import com.fastbee.rechargecard.domain.NgInformationWaterUser; +import com.fastbee.rechargecard.mapper.NgInformationWaterUserMapper; +import com.fastbee.rechargecard.service.INgInformationWaterUserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 用水户信息Service业务层处理 + * + * @author kerwincui + * @date 2024-12-19 + */ +@Service +public class NgInformationWaterUserServiceImpl implements INgInformationWaterUserService +{ + @Autowired + private NgInformationWaterUserMapper ngInformationWaterUserMapper; + + /** + * 查询用水户信息 + * + * @param waterUserId 用水户信息主键 + * @return 用水户信息 + */ + @Override + public NgInformationWaterUser selectNgInformationWaterUserByWaterUserId(Long waterUserId) + { + return ngInformationWaterUserMapper.selectNgInformationWaterUserByWaterUserId(waterUserId); + } + + /** + * 查询用水户信息列表 + * + * @param ngInformationWaterUser 用水户信息 + * @return 用水户信息 + */ + @Override + public List selectNgInformationWaterUserList(NgInformationWaterUser ngInformationWaterUser) + { + return ngInformationWaterUserMapper.selectNgInformationWaterUserList(ngInformationWaterUser); + } + + /** + * 新增用水户信息 + * + * @param ngInformationWaterUser 用水户信息 + * @return 结果 + */ + @Override + public int insertNgInformationWaterUser(NgInformationWaterUser ngInformationWaterUser) + { + ngInformationWaterUser.setCreateTime(DateUtils.getNowDate()); + return ngInformationWaterUserMapper.insertNgInformationWaterUser(ngInformationWaterUser); + } + + /** + * 修改用水户信息 + * + * @param ngInformationWaterUser 用水户信息 + * @return 结果 + */ + @Override + public int updateNgInformationWaterUser(NgInformationWaterUser ngInformationWaterUser) + { + ngInformationWaterUser.setUpdateTime(DateUtils.getNowDate()); + return ngInformationWaterUserMapper.updateNgInformationWaterUser(ngInformationWaterUser); + } + + /** + * 批量删除用水户信息 + * + * @param waterUserIds 需要删除的用水户信息主键 + * @return 结果 + */ + @Override + public int deleteNgInformationWaterUserByWaterUserIds(Long[] waterUserIds) + { + return ngInformationWaterUserMapper.deleteNgInformationWaterUserByWaterUserIds(waterUserIds); + } + + /** + * 删除用水户信息信息 + * + * @param waterUserId 用水户信息主键 + * @return 结果 + */ + @Override + public int deleteNgInformationWaterUserByWaterUserId(Long waterUserId) + { + return ngInformationWaterUserMapper.deleteNgInformationWaterUserByWaterUserId(waterUserId); + } +}