feat 修改了一些搜索模块

This commit is contained in:
yinglong zhang
2021-06-29 09:07:06 +08:00
parent 26a5022c03
commit 4533960ef9
25 changed files with 512 additions and 46 deletions
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.adc.da.slrs.tsDictionaryType.dao.TsDicTypeDao">
<resultMap id="searchMenu" type="com.adc.da.slrs.tsDictionaryType.entity.TsSearchMenu">
<id property="dicId" column="id"/>
<result property="dictionaryCode" column="dictionary_code"/>
<result property="dictionaryName" column="dictionary_name"/>
<collection property="menuTypes" javaType="list" ofType="com.adc.da.slrs.tsDictionaryType.entity.MenuType">
<id property="id" column="type_id"/>
<result property="dicId" column="id"/>
<result property="dicTypeName" column="type_name"/>
<result property="dicTypeCode" column="type_code"/>
</collection>
</resultMap>
<select id="getSearchMenu" resultMap="searchMenu">
select t_d.ID as id,
t_d.DICTIONARY_CODE as dictionary_code,
t_d.DICTIONARY_NAME as dictionary_name,
t_d_t.ID as type_id,
t_d_t.DIC_TYPE_NAME as type_name,
t_d_t.DIC_TYPE_CODE as type_code
from ts_dictionary as t_d left join ts_dictype as t_d_t on t_d.ID=t_d_t.DIC_ID
where
t_d.ENABLE=0 and
t_d.DICTION_TYPE='SEL_OPTION' and
t_d_t.DIC_ID is not null and
t_d_t.DIC_TYPE_NAME is not null and
t_d.DICTIONARY_NAME is not null
</select>
</mapper>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.adc.da.slrs.tsDictionaryType.dao.TsDictionaryDao">
</mapper>