委托方增加组织代码,与查询修改
This commit is contained in:
@@ -171,7 +171,8 @@
|
||||
b.LIMIT_TIME,
|
||||
b.CREDIT_AMOUNT,
|
||||
b.IS_CHECK_CREDIT,
|
||||
b.AGREEMENT_COUNT
|
||||
b.AGREEMENT_COUNT,
|
||||
b.org_code
|
||||
FROM "USER" a
|
||||
LEFT JOIN user_shipper b ON a.user_id = b.user_id
|
||||
left join (select user_id, LISTAGG(DISTINCT r.role_name, '&') WITHIN GROUP(ORDER BY r.role_name) AS roleName
|
||||
@@ -375,7 +376,13 @@
|
||||
</if>
|
||||
/*用户组织ID*/
|
||||
<if test="organizationId !=null">
|
||||
and a.organization_id = #{organizationId}
|
||||
AND (
|
||||
a.organization_id = #{organizationId}
|
||||
OR b.org_code LIKE concat('%"code":"', #{organizationId}, '"%')
|
||||
OR b.org_code LIKE concat('%code:', #{organizationId}, '%')
|
||||
OR b.org_code LIKE concat('%code: ', #{organizationId}, '%')
|
||||
OR b.org_code LIKE concat('%"code":', #{organizationId}, '%')
|
||||
)
|
||||
</if>
|
||||
/*组织名称*/
|
||||
<if test="organizationName != null and organizationName != ''">
|
||||
@@ -511,6 +518,7 @@
|
||||
</foreach>
|
||||
OR a.create_by = #{createBy})
|
||||
</if>
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="getShipperCountByMatter" parameterType="com.mhd.common.core.domain.todo.StatisticalMattersDo"
|
||||
|
||||
Reference in New Issue
Block a user