|
@@ -23,25 +23,35 @@
|
|
|
<foreach collection="roleCodes" index="index" item="item" separator="or" close=")" open="(">
|
|
<foreach collection="roleCodes" index="index" item="item" separator="or" close=")" open="(">
|
|
|
<choose>
|
|
<choose>
|
|
|
<when test="item == 'chengYunShang'">
|
|
<when test="item == 'chengYunShang'">
|
|
|
|
|
+ (
|
|
|
"carrierId"
|
|
"carrierId"
|
|
|
in
|
|
in
|
|
|
- <foreach collection="dilCompanyList" open="(" close=")" separator="," item="item" index="index">
|
|
|
|
|
- #{item.companyId}
|
|
|
|
|
|
|
+ <foreach collection="dilCompanyList" open="(" close=")" separator=" UNION " item="item" index="index">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ COMPANY_ID
|
|
|
|
|
+ FROM
|
|
|
|
|
+ RMS_COMPANY WHERE COMPANY_NAME IN ( SELECT COMPANY_NAME FROM RMS_COMPANY WHERE COMPANY_ID =
|
|
|
|
|
+ #{item.companyId})
|
|
|
</foreach>
|
|
</foreach>
|
|
|
- </when>
|
|
|
|
|
- <when test="item == 'shippingCompany'">
|
|
|
|
|
|
|
+ OR
|
|
|
"shippingCompanyId"
|
|
"shippingCompanyId"
|
|
|
in
|
|
in
|
|
|
- <foreach collection="dilCompanyList" open="(" close=")" separator="," item="item" index="index">
|
|
|
|
|
- #{item.companyId}
|
|
|
|
|
|
|
+ <foreach collection="dilCompanyList" open="(" close=")" separator=" UNION " item="item" index="index">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ COMPANY_ID
|
|
|
|
|
+ FROM
|
|
|
|
|
+ RMS_COMPANY WHERE COMPANY_NAME IN ( SELECT COMPANY_NAME FROM RMS_COMPANY WHERE COMPANY_ID = #{item.companyId})
|
|
|
</foreach>
|
|
</foreach>
|
|
|
- </when>
|
|
|
|
|
- <when test="item == 'receivingCompany'">
|
|
|
|
|
|
|
+ OR
|
|
|
"receivingCompanyId"
|
|
"receivingCompanyId"
|
|
|
in
|
|
in
|
|
|
- <foreach collection="dilCompanyList" open="(" close=")" separator="," item="item" index="index">
|
|
|
|
|
- #{item.companyId}
|
|
|
|
|
|
|
+ <foreach collection="dilCompanyList" open="(" close=")" separator=" UNION " item="item" index="index">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ COMPANY_ID
|
|
|
|
|
+ FROM
|
|
|
|
|
+ RMS_COMPANY WHERE COMPANY_NAME IN ( SELECT COMPANY_NAME FROM RMS_COMPANY WHERE COMPANY_ID = #{item.companyId})
|
|
|
</foreach>
|
|
</foreach>
|
|
|
|
|
+ )
|
|
|
</when>
|
|
</when>
|
|
|
<when test="item == 'businessCompany'">
|
|
<when test="item == 'businessCompany'">
|
|
|
"businessCompanyId"
|
|
"businessCompanyId"
|