|
@ -62,7 +62,9 @@ |
|
|
so.remark |
|
|
so.remark |
|
|
FROM ic_community_self_organization so |
|
|
FROM ic_community_self_organization so |
|
|
WHERE so.DEL_FLAG = 0 |
|
|
WHERE so.DEL_FLAG = 0 |
|
|
|
|
|
<if test="null != agencyId and agencyId != '' "> |
|
|
AND so.ORG_ID = #{agencyId} |
|
|
AND so.ORG_ID = #{agencyId} |
|
|
|
|
|
</if> |
|
|
AND so.CUSTOMER_ID = #{customerId} |
|
|
AND so.CUSTOMER_ID = #{customerId} |
|
|
<if test="null != organizationName and organizationName != '' "> |
|
|
<if test="null != organizationName and organizationName != '' "> |
|
|
AND so.ORGANIZATION_NAME LIKE CONCAT('%',#{organizationName},'%') |
|
|
AND so.ORGANIZATION_NAME LIKE CONCAT('%',#{organizationName},'%') |
|
@ -76,6 +78,9 @@ |
|
|
<if test="null != endTime and endTime != '' "> |
|
|
<if test="null != endTime and endTime != '' "> |
|
|
AND so.ORGANIZATION_CREATED_TIME <![CDATA[ <= ]]> #{endTime} |
|
|
AND so.ORGANIZATION_CREATED_TIME <![CDATA[ <= ]]> #{endTime} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="null != orgId and orgId != '' "> |
|
|
|
|
|
AND so.ID = #{orgId} |
|
|
|
|
|
</if> |
|
|
ORDER BY so.ORGANIZATION_CREATED_TIME DESC |
|
|
ORDER BY so.ORGANIZATION_CREATED_TIME DESC |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|