Browse Source

Merge remote-tracking branch 'origin/yantai_zhengwu_master' into dev

master
yinzuomei 2 years ago
parent
commit
62ed49f324
  1. 10
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcEnterpriseDao.xml

10
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcEnterpriseDao.xml

@ -67,19 +67,29 @@
WHERE WHERE
ie.DEL_FLAG = '0' ie.DEL_FLAG = '0'
<if test='"grid" == orgType'> <if test='"grid" == orgType'>
<if test='null != orgId and "" != orgId'>
AND ie.GRID_ID = #{orgId} AND ie.GRID_ID = #{orgId}
</if> </if>
</if>
<if test='"agency" == orgType'> <if test='"agency" == orgType'>
<if test='null != orgId and "" != orgId'> <if test='null != orgId and "" != orgId'>
AND (ie.AGENCY_ID = #{orgId} or ie.AGENCY_PIDS like concat('%',#{orgId},'%')) AND (ie.AGENCY_ID = #{orgId} or ie.AGENCY_PIDS like concat('%',#{orgId},'%'))
</if> </if>
<if test='null == orgId or "" == orgId'>
AND (
ie.AGENCY_ID = #{staffAgencyId}
OR ie.AGENCY_PIDS LIKE concat( '%', #{staffAgencyId}, '%' )
)
</if>
</if> </if>
<if test='null==orgType or "" == orgType'> <if test='null==orgType or "" == orgType'>
<if test='null != staffAgencyId and "" != staffAgencyId'>
AND ( AND (
ie.AGENCY_ID = #{staffAgencyId} ie.AGENCY_ID = #{staffAgencyId}
OR ie.AGENCY_PIDS LIKE concat( '%', #{staffAgencyId}, '%' ) OR ie.AGENCY_PIDS LIKE concat( '%', #{staffAgencyId}, '%' )
) )
</if> </if>
</if>
<if test='null != gridId and "" != gridId'> <if test='null != gridId and "" != gridId'>
AND ie.GRID_ID = #{gridId} AND ie.GRID_ID = #{gridId}
</if> </if>

Loading…
Cancel
Save