Browse Source

/gov/org/enterprise/list

master
yinzuomei 3 years ago
parent
commit
40820a8b88
  1. 8
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcEnterpriseDao.xml

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

@ -73,13 +73,21 @@
<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