|
|
@ -48,19 +48,23 @@ |
|
|
|
and pid=#{id} |
|
|
|
</select> |
|
|
|
<select id="getModuleList" resultType="com.elink.esua.epdc.dto.AppModuleListDTO"> |
|
|
|
select id,type_name as name,IMG_URL |
|
|
|
from epdc_module_type |
|
|
|
where del_flag='0' |
|
|
|
SELECT |
|
|
|
ch.id, |
|
|
|
ch.type_name AS NAME, |
|
|
|
ch.IMG_URL |
|
|
|
FROM |
|
|
|
epdc_module_type ch |
|
|
|
left join epdc_module_type pa on pa.id=ch.pid and pa.del_flag='0' |
|
|
|
WHERE |
|
|
|
ch.del_flag = '0' |
|
|
|
<if test="pid != null and pid != ''"> |
|
|
|
and pid=#{pid} |
|
|
|
</if> |
|
|
|
<!-- <if test="pid == null or pid == ''">--> |
|
|
|
<!-- and pid=0--> |
|
|
|
<!-- </if>--> |
|
|
|
<if test="typeCode != null and typeCode != ''"> |
|
|
|
and type_code=#{typeCode} |
|
|
|
and pa.type_code=#{typeCode} |
|
|
|
</if> |
|
|
|
order by create_date desc |
|
|
|
ORDER BY |
|
|
|
ch.create_date DESC |
|
|
|
LIMIT #{pageIndex},#{pageSize} |
|
|
|
</select> |
|
|
|
|
|
|
|