Browse Source

"mydemand"接口查询的是PC录入的需求+居民端小程序用户自己上报的需求

dev_shibei_match
yinzuomei 4 years ago
parent
commit
e542453c10
  1. 17
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcUserDemandRecDao.xml

17
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcUserDemandRecDao.xml

@ -134,15 +134,14 @@
ic_user_demand_rec r ic_user_demand_rec r
WHERE WHERE
r.DEL_FLAG = '0' r.DEL_FLAG = '0'
<choose> <choose>
<when test="null!=epmetUserId and epmetUserId!='' "> <when test="null!=epmetUserId and epmetUserId!='' ">
AND (r.DEMAND_USER_ID = #{userId} or r.DEMAND_USER_ID=#{epmetUserId}) AND (r.DEMAND_USER_ID = #{userId} or r.DEMAND_USER_ID=#{epmetUserId})
</when> </when>
<otherwise> <otherwise>
AND r.DEMAND_USER_ID = #{userId} AND r.DEMAND_USER_ID = #{userId}
</otherwise> </otherwise>
</choose> </choose>
<if test="null !=firstCategoryCode and firstCategoryCode!=''"> <if test="null !=firstCategoryCode and firstCategoryCode!=''">
and r.CATEGORY_CODE like concat(#{firstCategoryCode},'%') and r.CATEGORY_CODE like concat(#{firstCategoryCode},'%')
</if> </if>

Loading…
Cancel
Save