Commit c4b6b361 authored by 韩桐桐's avatar 韩桐桐

feat(jg):按照单位办理的设备过滤,过滤掉已经做过使用登记的设备

parent 2d32ca1d
...@@ -373,8 +373,8 @@ ...@@ -373,8 +373,8 @@
WHERE WHERE
ri."EQU_CATEGORY" = '8300' ri."EQU_CATEGORY" = '8300'
and ui."DATA_SOURCE" = 'jg' and ui."DATA_SOURCE" = 'jg'
and (ui."EQU_STATE" = '' || ui."EQU_STATE" is null ) and NOT(ui."EQU_STATE" is not null )
and (ri."USE_ORG_CODE" = '' || ri."USE_ORG_CODE" is null ) and NOT(ri."USE_ORG_CODE" is not null )
<if test="jsonObject.useUnitCreditCode != null and jsonObject.useUnitCreditCode != ''" > <if test="jsonObject.useUnitCreditCode != null and jsonObject.useUnitCreditCode != ''" >
and ui."USE_UNIT_CREDIT_CODE" = #{jsonObject.useUnitCreditCode} and ui."USE_UNIT_CREDIT_CODE" = #{jsonObject.useUnitCreditCode}
</if> </if>
...@@ -429,8 +429,8 @@ ...@@ -429,8 +429,8 @@
WHERE WHERE
ri."EQU_CATEGORY" = '2300' ri."EQU_CATEGORY" = '2300'
and ui."DATA_SOURCE" = 'jg' and ui."DATA_SOURCE" = 'jg'
and (ui."EQU_STATE" = '' || ui."EQU_STATE" is null ) and NOT(ui."EQU_STATE" is not null )
and (ri."USE_ORG_CODE" = '' || ri."USE_ORG_CODE" is null ) and NOT(ri."USE_ORG_CODE" is not null )
and (ri.whether_vehicle_cylinder is null or ri.whether_vehicle_cylinder != 1) and (ri.whether_vehicle_cylinder is null or ri.whether_vehicle_cylinder != 1)
<if test="jsonObject.useUnitCreditCode != null and jsonObject.useUnitCreditCode != ''"> <if test="jsonObject.useUnitCreditCode != null and jsonObject.useUnitCreditCode != ''">
and ui."USE_UNIT_CREDIT_CODE" = #{jsonObject.useUnitCreditCode} and ui."USE_UNIT_CREDIT_CODE" = #{jsonObject.useUnitCreditCode}
......
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