Browse Source

首页组件分页查询sql修改

master
yinzuomei 5 years ago
parent
commit
071317c651
  1. 3
      epmet-module/oper-customize/oper-customize-server/src/main/resources/mapper/HomeComponentDao.xml

3
epmet-module/oper-customize/oper-customize-server/src/main/resources/mapper/HomeComponentDao.xml

@ -107,9 +107,8 @@
<select id="selectListHomeComponentDTO" parameterType="map" resultType="com.epmet.dto.HomeComponentDTO"> <select id="selectListHomeComponentDTO" parameterType="map" resultType="com.epmet.dto.HomeComponentDTO">
select hc.*,f.FUNCTION_NAME select hc.*,f.FUNCTION_NAME
from home_component hc from home_component hc
left join function f on(hc.FUNCTION_ID=f.id) left join function f on(hc.FUNCTION_ID=f.id and f.del_flag='0')
where hc.del_flag='0' where hc.del_flag='0'
and f.del_flag='0'
<if test='componentName != "" and componentName != null'> <if test='componentName != "" and componentName != null'>
AND hc.COMPONENT_NAME LIKE concat('%', trim(#{componentName}), '%') AND hc.COMPONENT_NAME LIKE concat('%', trim(#{componentName}), '%')
</if> </if>

Loading…
Cancel
Save