|
|
@@ -376,17 +376,18 @@
|
|
376
|
376
|
store.agent_depot_id depot_id,
|
|
377
|
377
|
org.org_id,
|
|
378
|
378
|
org.org_name,
|
|
379
|
|
- NVL2(store.id,'true','false') state_value,
|
|
|
379
|
+ NVL2(store.id,'1','0') state_value,
|
|
380
|
380
|
NVL2(store.id,org.org_code,null) org_code,
|
|
381
|
381
|
NVL2(store.id,org.area_name,null) area_name
|
|
382
|
382
|
FROM
|
|
383
|
383
|
org_info org
|
|
384
|
384
|
LEFT JOIN business_agent_storehouse store ON store.org_id = org.org_id
|
|
385
|
385
|
AND store.del_flag = 1 AND store.storehouse_id = #{storehouseId,jdbcType=VARCHAR}
|
|
386
|
|
- WHERE org.org_class_id = 5318
|
|
|
386
|
+ WHERE org.org_class_id = 5318 AND org.org_id != #{orgId,jdbcType=VARCHAR}
|
|
387
|
387
|
<if test="orgName != null">
|
|
388
|
388
|
AND org.org_name LIKE #{orgName,jdbcType=VARCHAR}
|
|
389
|
389
|
</if>
|
|
|
390
|
+ order by store.id desc
|
|
390
|
391
|
</select>
|
|
391
|
392
|
<select id="getByExample" resultMap="BaseResultMap" parameterType="java.util.Map">
|
|
392
|
393
|
SELECT
|