Browse Source

接口修改

master
Jackwang 4 years ago
parent
commit
1d8d56aed2
  1. 20
      epdc-cloud-news/src/main/resources/mapper/ModuleTypeDao.xml

20
epdc-cloud-news/src/main/resources/mapper/ModuleTypeDao.xml

@ -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>

Loading…
Cancel
Save