MrShi
2025-03-12 69a1b3bf45738f048361ee4ccb6bdc64fce35720
server/visits/dmvisit_service/src/main/java/com/doumee/service/business/PlatformWaterGasService.java
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,115 @@
package com.doumee.service.business;
import com.doumee.service.business.third.model.LoginUserInfo;
import com.doumee.service.business.third.model.PageData;
import com.doumee.service.business.third.model.PageWrap;
import com.doumee.dao.business.model.PlatformWaterGas;
import com.doumee.dao.openapi.request.GasByMonthRequest;
import com.doumee.dao.openapi.request.WaterByMonthRequest;
import com.doumee.dao.openapi.response.GasByMonthResponse;
import com.doumee.dao.openapi.response.PlatformLastMonthListResponse;
import com.doumee.dao.openapi.response.WaterByMonthResponse;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
/**
 * æœˆå°_用水用气信息记录表Service定义
 * @author æ±Ÿè¹„蹄
 * @date 2024/08/26 16:22
 */
public interface PlatformWaterGasService {
    /**
     * åˆ›å»º
     *
     * @param platformWaterGas å®žä½“对象
     * @return Integer
     */
    Integer create(PlatformWaterGas platformWaterGas);
    /**
     * ä¸»é”®åˆ é™¤
     *
     * @param id ä¸»é”®
     */
    void deleteById(Integer id);
    /**
     * åˆ é™¤
     *
     * @param platformWaterGas å®žä½“对象
     */
    void delete(PlatformWaterGas platformWaterGas);
    void deleteById(Integer id, LoginUserInfo user);
    /**
     * æ‰¹é‡ä¸»é”®åˆ é™¤
     *
     * @param ids ä¸»é”®é›†
     */
    void deleteByIdInBatch(List<Integer> ids);
    void deleteByIdInBatch(List<Integer> ids, LoginUserInfo user);
    /**
     * ä¸»é”®æ›´æ–°
     *
     * @param platformWaterGas å®žä½“对象
     */
    void updateById(PlatformWaterGas platformWaterGas);
    /**
     * æ‰¹é‡ä¸»é”®æ›´æ–°
     *
     * @param platformWaterGass å®žä½“集
     */
    void updateByIdInBatch(List<PlatformWaterGas> platformWaterGass);
    /**
     * ä¸»é”®æŸ¥è¯¢
     *
     * @param id ä¸»é”®
     * @return PlatformWaterGas
     */
    PlatformWaterGas findById(Integer id);
    /**
     * æ¡ä»¶æŸ¥è¯¢å•条记录
     *
     * @param platformWaterGas å®žä½“对象
     * @return PlatformWaterGas
     */
    PlatformWaterGas findOne(PlatformWaterGas platformWaterGas);
    /**
     * æ¡ä»¶æŸ¥è¯¢
     *
     * @param platformWaterGas å®žä½“对象
     * @return List<PlatformWaterGas>
     */
    List<PlatformWaterGas> findList(PlatformWaterGas platformWaterGas);
    /**
     * åˆ†é¡µæŸ¥è¯¢
     *
     * @param pageWrap åˆ†é¡µå¯¹è±¡
     * @return PageData<PlatformWaterGas>
     */
    PageData<PlatformWaterGas> findPage(PageWrap<PlatformWaterGas> pageWrap);
    /**
     * æ¡ä»¶ç»Ÿè®¡
     *
     * @param platformWaterGas å®žä½“对象
     * @return long
     */
    long count(PlatformWaterGas platformWaterGas);
    WaterByMonthResponse waterDataByMonth(WaterByMonthRequest param);
    GasByMonthResponse gasDataByMonth(GasByMonthRequest param);
    List<PlatformLastMonthListResponse> getPlatformLastMonthListResponse(Integer type);
    String importBatch(MultipartFile file, LoginUserInfo loginUserInfo);
}