Browse Source

分页查询,显示需求分类名称

dev_shibei_match
yinzuomei 4 years ago
parent
commit
daeb291700
  1. 7
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcResiDemandDictDao.xml

7
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcResiDemandDictDao.xml

@ -205,13 +205,16 @@
SELECT
d.CATEGORY_CODE,
d.PARENT_CODE,
concat( p.CATEGORY_NAME, '-', d.CATEGORY_NAME ) AS CATEGORY_NAME
(
case when d.level='1' then d.category_name
when d.level='2' then concat( p.CATEGORY_NAME, '-', d.CATEGORY_NAME )
end
)AS CATEGORY_NAME
FROM
ic_resi_demand_dict d
LEFT JOIN ic_resi_demand_dict p ON ( d.PARENT_CODE = p.CATEGORY_CODE AND p.CUSTOMER_ID = #{customerId} )
WHERE
d.DEL_FLAG = '0'
AND d.`LEVEL` = '2'
AND d.CUSTOMER_ID = #{customerId}
<if test="null!=cateogryCodes and cateogryCodes.size()>0">
and d.category_code in

Loading…
Cancel
Save