Commit 3e7c1883 authored by 韩桐桐's avatar 韩桐桐

fix(jg):sql写法修改

parent 2f0d62f1
......@@ -56,7 +56,7 @@
</if>
<if test="dto.dataType != null and dto.dataType == 'supervision' ">
and ur.receive_org_code = #{dto.receiveOrgCode}
AND ur.instance_id is not null
AND ur.instance_id <![CDATA[<>]]> ''
</if>
<if test="dto.dataType != null and dto.dataType == 'company' ">
and ur.use_unit_credit_code = #{dto.useUnitCreditCode}
......
......@@ -112,7 +112,7 @@
</if>
<if test="type == 'supervision'">
AND crt.receive_company_code = #{dto.unitCode}
AND crt.instance_id is not null
AND crt.instance_id <![CDATA[<>]]> ''
</if>
<if test="type == 'company'">
AND crt.use_unit_credit_code = #{dto.unitCode}
......
......@@ -49,7 +49,7 @@
</if>
<if test="type == 'supervision'">
AND isn.receive_org_code = #{orgCode}
AND isn.instance_id is not null
AND isn.instance_id <![CDATA[<>]]> ''
</if>
<if test="type == 'enterprise'">
AND isn.new_use_unit_credit_code = #{orgCode}
......
......@@ -102,7 +102,7 @@
</if>
<if test="param.installUnitCodeFilter != '' and param.installUnitCodeFilter != null">
and jet.install_unit_credit_code = #{param.installUnitCodeFilter}
AND jet.instance_id is not null
AND jet.instance_id <![CDATA[<>]]> ''
</if>
</otherwise>
</choose>
......
......@@ -57,14 +57,14 @@
</if>
<if test="type == 'supervision'">
AND isn.receive_org_credit_code = #{orgCode}
AND isn.instance_id is not null
AND isn.instance_id <![CDATA[<>]]> ''
</if>
<if test="type == 'company'">
AND isn.install_unit_credit_code = #{orgCode}
</if>
<if test="type == 'testAdmin'">
((AND isn.receive_org_credit_code = #{orgCode}
AND isn.instance_id is not null)
AND isn.instance_id <![CDATA[<>]]> '')
or
AND isn.install_unit_credit_code = #{orgCode})
</if>
......
......@@ -42,7 +42,7 @@
</if>
</if>
<if test="type != 'company'">
AND isn.instance_id is not null
AND isn.instance_id <![CDATA[<>]]> ''
AND isn.receive_company_code = #{orgCode}
</if>
<if test="type == 'company'">
......
......@@ -64,7 +64,7 @@
<if test="type == 'supervision'">
AND (isn.notice_status in ('6612', '6613', '6614', '6616') )
AND isn.receive_org_code = #{orgCode}
AND isn.instance_id is not null
AND isn.instance_id <![CDATA[<>]]> ''
</if>
<if test="type == 'company'">
AND isn.install_unit_credit_code = #{orgCode}
......
......@@ -66,7 +66,7 @@
</if>
<if test="dto.type == 'supervision'">
and ( ur.receive_org_code = #{orgCode} or ur.transfer_to_user_ids like concat('%',#{currentUserId},'%'))
AND ur.instance_id is not null
AND ur.instance_id <![CDATA[<>]]> ''
</if>
<if test="dto.type == 'company' ">
and (ur.use_unit_code = #{orgCode} or ur.transfer_to_user_ids like concat('%',#{currentUserId},'%'))
......
......@@ -78,14 +78,14 @@
</if>
<if test="type == 'supervision'">
AND tjtn.receive_company_code = #{orgCode}
AND tjtn.instance_id is not null
AND tjtn.instance_id <![CDATA[<>]]> ''
</if>
<if test="type == 'company'">
AND tjtn.install_unit_credit_code = #{orgCode}
</if>
<if test="type == 'testAdmin'">
((AND tjtn.receive_company_code = #{orgCode}
AND tjtn.instance_id is not null)
AND tjtn.instance_id <![CDATA[<>]]> '')
or
AND tjtn.install_unit_credit_code = #{orgCode})
</if>
......
......@@ -60,7 +60,7 @@
</if>
<if test="dto.dataType == 'supervision' ">
and ur.receive_company_code = #{dto.unitCode}
AND ur.instance_id is not null
AND ur.instance_id <![CDATA[<>]]> ''
</if>
<if test="dto.dataType == 'company' ">
and ur.use_unit_credit_code = #{dto.unitCode}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment