|
|
@ -54,7 +54,6 @@ |
|
|
|
so.LATITUDE AS latitude, |
|
|
|
so.ID as orgId |
|
|
|
FROM ic_community_self_organization so |
|
|
|
# LEFT JOIN ic_community_self_organization_personnel op ON (op.ORG_ID = so.ID AND op.DEL_FLAG = 0) |
|
|
|
WHERE so.DEL_FLAG = 0 |
|
|
|
AND so.ORG_ID = #{agencyId} |
|
|
|
AND so.CUSTOMER_ID = #{customerId} |
|
|
@ -62,10 +61,10 @@ |
|
|
|
AND so.ORGANIZATION_NAME LIKE CONCAT('%',#{organizationName},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != startTime and startTime != '' "> |
|
|
|
AND DATE_FORMAT(so.ORGANIZATION_CREATED_TIME,'%Y%m%d') <![CDATA[ >= ]]> #{startTime} |
|
|
|
AND so.ORGANIZATION_CREATED_TIME <![CDATA[ >= ]]> #{startTime} |
|
|
|
</if> |
|
|
|
<if test="null != endTime and endTime != '' "> |
|
|
|
AND DATE_FORMAT(so.ORGANIZATION_CREATED_TIME,'%Y%m%d') <![CDATA[ <= ]]> #{endTime} |
|
|
|
AND so.ORGANIZATION_CREATED_TIME <![CDATA[ <= ]]> #{endTime} |
|
|
|
</if> |
|
|
|
ORDER BY so.ORGANIZATION_CREATED_TIME DESC |
|
|
|
</select> |
|
|
|