Browse Source

修改查询条件

master
HAHA 3 years ago
parent
commit
f5e4779f1d
  1. 6
      epmet-user/epmet-user-server/src/main/resources/mapper/IcVolunteerPolyDao.xml

6
epmet-user/epmet-user-server/src/main/resources/mapper/IcVolunteerPolyDao.xml

@ -45,8 +45,9 @@
AND c.VOLUNTEER_CATEGORY = #{code} AND c.VOLUNTEER_CATEGORY = #{code}
</if> </if>
<if test="agencyId != null and agencyId != ''"> <if test="agencyId != null and agencyId != ''">
AND p.AGENCY_ID = #{agencyId} AND (p.AGENCY_PIDS like '%${agencyId}%' OR p.AGENCY_ID = #{agencyId})
</if> </if>
group by u.id
</where> </where>
</select> </select>
<select id="getList" resultType="com.epmet.dto.result.VolunteerPolyListResultDTO"> <select id="getList" resultType="com.epmet.dto.result.VolunteerPolyListResultDTO">
@ -70,8 +71,9 @@
AND c.CUSTOMER_ID = #{customerId} AND c.CUSTOMER_ID = #{customerId}
</if> </if>
<if test="agencyId != null and agencyId != ''"> <if test="agencyId != null and agencyId != ''">
AND p.AGENCY_ID = #{agencyId} AND p.AGENCY_PIDS like '%${agencyId}%' OR p.AGENCY_ID = #{agencyId}
</if> </if>
group by p.id
</where> </where>
</select> </select>
<select id="getStatistics" resultType="com.epmet.dto.result.VolunteerPolyPieResultDTO"> <select id="getStatistics" resultType="com.epmet.dto.result.VolunteerPolyPieResultDTO">

Loading…
Cancel
Save