package com.sercurityControl.proteam.dutyTask.mapper; import com.sercurityControl.proteam.dutyTask.domain.ExportProData; import com.sercurityControl.proteam.dutyTask.domain.ProEditHistoryVo; import com.sercurityControl.proteam.dutyTask.domain.ProInfoEntity; import com.sercurityControl.proteam.dutyTask.domain.ProNumEntity; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; /** * 工程管理-数据库访问层 */ @Repository(value = "ProInfoMgeMapper") public interface ProInfoMgeMapper { /** * @return java.util.List> * @author cw chen * @description 获取工程状态数量 * @Param type * @date 2023-05-24 10:47 */ List> getProStatusListNum(ProInfoEntity entity); /** * @return java.util.List> * @author cw chen * @description 根据选中的工程状态,年份获取地市工程数量 * @Param entity * @date 2023-05-24 14:34 */ List getOrgProNum(ProInfoEntity entity); /** * @return java.util.List> * @author cw chen * @description 工程总览-详情数据 * @Param entity * @date 2023-05-24 15:31 */ List> getProOverViewData(ProInfoEntity entity); /** * @return void * @author cw chen * @description 判断工程是否存在 * @Param proName * @date 2023-05-25 14:03 */ int getisExist(String proName); /** * @return void * @author cw chen * @description 新增工程信息 * @Param item * @date 2023-05-25 14:06 */ void addProInfoData(ProInfoEntity item); /** * @return java.util.List> * @author cw chen * @description 计算工程的线路长度和变电容量 * @Param * @date 2023-05-25 14:46 */ List> getTotalCount(ProInfoEntity entity); /** * @return java.util.List * @author cw chen * @description 工程管理-工程信息列表数据 * @Param entity * @date 2023-05-25 15:25 */ List getProInfoList(ProInfoEntity entity); /** * @return void * @author cw chen * @description 更新工程数据 * @Param entity * @date 2023-05-25 17:55 */ void editProInfoData(ProInfoEntity entity); /** * @return java.util.List * @author cw chen * @description 获取该工程的父项目和其他单项工程 * @Param entity * @date 2023-05-26 9:09 */ List getOtherProList(ProInfoEntity entity); /** * @return void * @author cw chen * @description 更新项目状态 * @Param s * @Param id * @date 2023-05-26 9:31 */ void updateProStatus(@Param("proStatus") String s, @Param("id") String id); /** * @return java.util.List> * @author cw chen * @description 监理单位、施工单位承包工程数 * @Param i * @date 2023-05-26 11:52 */ List> getProByUnit(ProInfoEntity entity); /** * @return java.util.List * @author cw chen * @description 获取单项工程下今日站班会和施工人数 * @Param i * @Param proName * @date 2023-05-26 15:39 */ List getClassAndPersonNum(@Param("type") int type, @Param("proName") String proName); /** * @return java.util.List * @author cw chen * @description 获取监理和施工单位 * @Param proName * @date 2023-05-26 17:25 */ List getUnit(String proName); /** * @return java.util.List * @author cw chen * @description 设置业主、监理、施工 * @Param proName * @Param i * @date 2023-05-29 11:19 */ List getUserNameByType(@Param("proName") String proName, @Param("type") int type); /** * @return java.util.List> * @author cw chen * @description 根据选中的地市,获取输变电工程 * @Param entity * @date 2023-07-04 16:25 */ List getProNumByOrg(ProInfoEntity entity); /** * @return int * @author cw chen * @description 验证某字段是否存在 * @Param param * @date 2023-07-05 14:51 */ int isRepeat(@Param("id") String id, @Param("param") String param, @Param("value") String value, @Param("type") String type); /** * @return void * @author cw chen * @description 新增单项工程 * @Param entity * @date 2023-07-05 19:57 */ void addOrUpdateProData(ProInfoEntity entity); /** * @return void * @author cw chen * @description 修改输变电工程 * @Param entity * @date 2023-07-10 15:51 */ Integer updateProInfoData(ProInfoEntity entity); /** * @return com.sercurityControl.proteam.dutyTask.domain.ProInfoEntity * @author cw chen * @description 根据id获取输变电工程详情 * @Param entity * @date 2023-07-10 16:08 */ ProInfoEntity getPowerProInfoDataById(ProInfoEntity entity); List getProNumByOrgList(@Param("type") String type, @Param("yearDate") String yearDate, @Param("org") String org); /** * @return java.util.List * @author cw chen * @description 获取输变电工程 * @Param entity * @date 2023-07-20 15:53 */ List getPowerProData(ProInfoEntity entity); /** * @return java.util.List * @author cw chen * @description 输变电工程列表 * @Param entity * @date 2023-07-20 17:23 */ List getPowerProList(ProInfoEntity entity); /** * @return java.util.List * @author cw chen * @description 根据输变电工程列表获取单项工程 * @Param entity * @date 2023-07-20 17:23 */ List getProListById(ProInfoEntity entity); /** * 修改工程编码 * * @param newProNo */ void updateChilderProNo(@Param("proNo") String proNo, @Param("newProNo") String newProNo); /** * 查询子节点数量 * * @param entity * @return */ Integer getChiderNum(ProInfoEntity entity); /** * @param entity * @return */ Integer delPower(ProInfoEntity entity); /** * @param entity * @return List * @description 工程维护-工程修改历史记录 * @author cwchen * @date 2023/12/4 9:51 */ List getProEditHistoryList(ProInfoEntity entity); /** * @param entity * @description 工程维护-新增工程修改历史记录 * @author cwchen * @date 2023/12/4 10:04 */ void addProEditHistory(ProInfoEntity entity); }