¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.apache.ibatis.annotations.Update; |
| | | import org.jeecg.common.system.vo.DictModel; |
| | | import org.jeecg.common.system.vo.DictModelMany; |
| | | import org.jeecg.common.system.vo.DictQuery; |
| | | import org.jeecg.modules.system.entity.SysDict; |
| | | import org.jeecg.modules.system.model.DuplicateCheckVo; |
| | | import org.jeecg.modules.system.model.TreeSelectModel; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * <p> |
| | | * åå
¸è¡¨ Mapper æ¥å£ |
| | | * </p> |
| | | * |
| | | * @Author zhangweijian |
| | | * @since 2018-12-28 |
| | | */ |
| | | public interface SysDictMapper extends BaseMapper<SysDict> { |
| | | |
| | | /** |
| | | * é夿£æ¥SQL |
| | | * @param duplicateCheckVo |
| | | * @return |
| | | */ |
| | | @Deprecated |
| | | public Long duplicateCheckCountSql(DuplicateCheckVo duplicateCheckVo); |
| | | |
| | | /** |
| | | * é夿 ¡éª sqlè¯å¥ |
| | | * @param duplicateCheckVo |
| | | * @return |
| | | */ |
| | | @Deprecated |
| | | public Long duplicateCheckCountSqlNoDataId(DuplicateCheckVo duplicateCheckVo); |
| | | |
| | | /** |
| | | * éè¿åå
¸codeè·ååå
¸æ°æ® |
| | | * @param code åå
¸code |
| | | * @return List<DictModel> |
| | | */ |
| | | public List<DictModel> queryDictItemsByCode(@Param("code") String code); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææçæ°æ®åå
¸é¡¹ |
| | | * @param code |
| | | * @return |
| | | */ |
| | | List<DictModel> queryEnableDictItemsByCode(@Param("code") String code); |
| | | |
| | | |
| | | /** |
| | | * éè¿å¤ä¸ªåå
¸codeè·ååå
¸æ°æ® |
| | | * |
| | | * @param dictCodeList |
| | | * @return |
| | | */ |
| | | public List<DictModelMany> queryDictItemsByCodeList(@Param("dictCodeList") List<String> dictCodeList); |
| | | |
| | | /** |
| | | * éè¿æ¥è¯¢æå®tableç text code è·ååå
¸ |
| | | * @param table |
| | | * @param text |
| | | * @param code |
| | | * @return List<DictModel> |
| | | */ |
| | | @Deprecated |
| | | public List<DictModel> queryTableDictItemsByCode(@Param("table") String table,@Param("text") String text,@Param("code") String code); |
| | | |
| | | /** |
| | | * éè¿æ¥è¯¢æå®tableç text code è·ååå
¸ï¼æå®æ¥è¯¢æ¡ä»¶ï¼ |
| | | * @param table |
| | | * @param text |
| | | * @param code |
| | | * @param filterSql |
| | | * @return List<DictModel> |
| | | */ |
| | | @Deprecated |
| | | public List<DictModel> queryTableDictItemsByCodeAndFilter(@Param("table") String table,@Param("text") String text,@Param("code") String code,@Param("filterSql") String filterSql); |
| | | |
| | | /** |
| | | * éè¿æ¥è¯¢æå®tableç text code è·ååå
¸ |
| | | * @param table |
| | | * @param key |
| | | * @param value |
| | | * @return List<Map<String,String>> |
| | | */ |
| | | @Deprecated |
| | | @Select("select ${key} as \"label\",${value} as \"value\" from ${table}") |
| | | public List<Map<String,String>> getDictByTableNgAlain(@Param("table") String table, @Param("key") String key, @Param("value") String value); |
| | | |
| | | /** |
| | | * éè¿åå
¸codeè·ååå
¸æ°æ® |
| | | * @param code |
| | | * @param key |
| | | * @return |
| | | */ |
| | | public String queryDictTextByKey(@Param("code") String code,@Param("key") String key); |
| | | |
| | | /** |
| | | * å¯éè¿å¤ä¸ªåå
¸codeæ¥è¯¢ç¿»è¯ææ¬ |
| | | * @param dictCodeList å¤ä¸ªåå
¸code |
| | | * @param keys æ°æ®å表 |
| | | * @return |
| | | */ |
| | | List<DictModelMany> queryManyDictByKeys(@Param("dictCodeList") List<String> dictCodeList, @Param("keys") List<String> keys); |
| | | |
| | | /** |
| | | * éè¿æ¥è¯¢æå®tableç text code key è·ååå
¸å¼ |
| | | * @param table |
| | | * @param text |
| | | * @param code |
| | | * @param key |
| | | * @return String |
| | | */ |
| | | @Deprecated |
| | | public String queryTableDictTextByKey(@Param("table") String table,@Param("text") String text,@Param("code") String code,@Param("key") String key); |
| | | |
| | | // /** |
| | | // * éè¿æ¥è¯¢æå®tableç text code key è·ååå
¸å¼ï¼å¯æ¹éæ¥è¯¢ |
| | | // * |
| | | // * @param table |
| | | // * @param text |
| | | // * @param code |
| | | // * @param keys |
| | | // * @return |
| | | // */ |
| | | // @Deprecated |
| | | // List<DictModel> queryTableDictTextByKeys(@Param("table") String table, @Param("text") String text, @Param("code") String code, @Param("keys") List<String> keys); |
| | | |
| | | // D /** |
| | | //// * éè¿æ¥è¯¢æå®tableç text code key è·ååå
¸å¼ï¼å
å«value |
| | | //// * @param table |
| | | //// * @param text |
| | | //// * @param code |
| | | //// * @param keyArray |
| | | //// * @return List<DictModel> |
| | | //// */ |
| | | //// @Deprecated |
| | | //// public List<DictModel> queryTableictByKeys(@Param("table") String table, @Param("text") String text, @Param("code") String code, @Param("keyArray") String[] keyArray); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææé¨é¨ ä½ä¸ºåå
¸ä¿¡æ¯ id -->value,departName -->text |
| | | * @return |
| | | */ |
| | | public List<DictModel> queryAllDepartBackDictModel(); |
| | | |
| | | /** |
| | | * æ¥è¯¢ææç¨æ· ä½ä¸ºåå
¸ä¿¡æ¯ username -->value,realname -->text |
| | | * @return |
| | | */ |
| | | public List<DictModel> queryAllUserBackDictModel(); |
| | | |
| | | // /** |
| | | // * éè¿å
³é®åæ¥è¯¢åºåå
¸è¡¨ |
| | | // * @param table |
| | | // * @param text |
| | | // * @param code |
| | | // * @param keyword |
| | | // * @return |
| | | // */ |
| | | // @Deprecated |
| | | // public List<DictModel> queryTableDictItems(@Param("table") String table,@Param("text") String text,@Param("code") String code,@Param("keyword") String keyword); |
| | | |
| | | |
| | | // /** |
| | | // * éè¿å
³é®åæ¥è¯¢åºåå
¸è¡¨ |
| | | // * @param page |
| | | // * @param table |
| | | // * @param text |
| | | // * @param code |
| | | // * @param keyword |
| | | // * @return |
| | | // */ |
| | | // //IPage<DictModel> queryTableDictItems(Page<DictModel> page, @Param("table") String table, @Param("text") String text, @Param("code") String code, @Param("keyword") String keyword); |
| | | |
| | | /** |
| | | * æ ¹æ®è¡¨åãæ¾ç¤ºåæ®µåãåå¨åæ®µå æ¥è¯¢æ |
| | | * @param table |
| | | * @param text |
| | | * @param code |
| | | * @param pid |
| | | * @param hasChildField |
| | | * @param query |
| | | * @param pidField |
| | | * @return |
| | | */ |
| | | @Deprecated |
| | | List<TreeSelectModel> queryTreeList(@Param("query") Map<String, String> query,@Param("table") String table,@Param("text") String text,@Param("code") String code,@Param("pidField") String pidField,@Param("pid") String pid,@Param("hasChildField") String hasChildField,@Param("converIsLeafVal") int converIsLeafVal); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * @param id |
| | | */ |
| | | @Select("delete from sys_dict where id = #{id}") |
| | | public void deleteOneById(@Param("id") String id); |
| | | |
| | | /** |
| | | * æ¥è¯¢è¢«é»è¾å é¤çæ°æ® |
| | | * @return |
| | | */ |
| | | @Select("select * from sys_dict where del_flag = 1") |
| | | public List<SysDict> queryDeleteList(); |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¶æå¼ |
| | | * @param delFlag |
| | | * @param id |
| | | */ |
| | | @Update("update sys_dict set del_flag = #{flag,jdbcType=INTEGER} where id = #{id,jdbcType=VARCHAR}") |
| | | public void updateDictDelFlag(@Param("flag") int delFlag, @Param("id") String id); |
| | | |
| | | |
| | | /** |
| | | * å页æ¥è¯¢åå
¸è¡¨æ°æ® |
| | | * @param page |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Deprecated |
| | | public Page<DictModel> queryDictTablePageList(Page page, @Param("query") DictQuery query); |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢ åå
¸è¡¨æ°æ® æ¯ææ¥è¯¢æ¡ä»¶ å页 |
| | | * @param page |
| | | * @param table |
| | | * @param text |
| | | * @param code |
| | | * @param filterSql |
| | | * @return |
| | | */ |
| | | @Deprecated |
| | | IPage<DictModel> queryTableDictWithFilter(Page<DictModel> page, @Param("table") String table, @Param("text") String text, @Param("code") String code, @Param("filterSql") String filterSql); |
| | | |
| | | /** |
| | | * æ¥è¯¢ åå
¸è¡¨æ°æ® æ¯ææ¥è¯¢æ¡ä»¶ æ¥è¯¢ææ |
| | | * @param table |
| | | * @param text |
| | | * @param code |
| | | * @param filterSql |
| | | * @return |
| | | */ |
| | | @Deprecated |
| | | List<DictModel> queryAllTableDictItems(@Param("table") String table, @Param("text") String text, @Param("code") String code, @Param("filterSql") String filterSql); |
| | | |
| | | /** |
| | | * æ¥è¯¢åå
¸è¡¨çæ°æ® |
| | | * @param table 表å |
| | | * @param text æ¾ç¤ºå段å |
| | | * @param code åå¨å段å |
| | | * @param filterSql æ¡ä»¶sql |
| | | * @param codeValues åå¨åæ®µå¼ ä½ä¸ºæ¥è¯¢æ¡ä»¶in |
| | | * @return |
| | | */ |
| | | @Deprecated |
| | | List<DictModel> queryTableDictByKeysAndFilterSql(@Param("table") String table, @Param("text") String text, @Param("code") String code, @Param("filterSql") String filterSql, @Param("codeValues") List<String> codeValues); |
| | | |
| | | /** |
| | | * 使ç¨åSqlæ¥è¯¢åå
¸æ°æ® |
| | | * @param table |
| | | * @param text |
| | | * @param subSql |
| | | * @return |
| | | */ |
| | | String queryTableDictTextBySubSql(@Param("table") String table, @Param("text") String text, @Param("subSql") String subSql); |
| | | |
| | | /** |
| | | * å表æ¹éæ¥è¯¢ |
| | | * @param queryTable |
| | | * @param columns |
| | | * @param paramName |
| | | * @param paramValues |
| | | * @return |
| | | */ |
| | | List<Map> queryTableFieldByParams(@Param("table") String queryTable, @Param("columns") String columns, @Param("paramName") String paramName, @Param("paramValues") String[] paramValues); |
| | | |
| | | List<DictModel> queryDictItemValueByCodeAndText(@Param("code")String code,@Param("itemText")String itemText); |
| | | |
| | | } |