Kaynağa Gözat

解决查询查询保险公司及子保司的id的sql报错的问题

        with recursive temp as (select id
                                from esm_ins_company
                                where id = #{companyId}
                                union all
                                select t.id
                                from esm_ins_company t
                                         inner join temp t2 on t2.id = t.parent_id)
        select id
        from temp

这个sql会被拼接system_code 字段的过滤报错
lipf 4 ay önce
ebeveyn
işleme
861b33101a

+ 1 - 0
platform/src/main/resources/application.yml

@@ -69,6 +69,7 @@ tenant:
   ignoreFunction:
     - /userInfo/getUser
     - /menu/getSystemMenu
+    - /esmInsCompany/getChildCompanyId
 
 data-scope:
   tables:

+ 1 - 1
tenant/organization/src/main/resources/mapper/SysUserJzgInfoBankCardMapper.xml

@@ -63,7 +63,7 @@
         <if test="sysUserJzgInfoBankCardVo.applyTimeStart != null and sysUserJzgInfoBankCardVo.applyTimeEnd != null">
             and DATE_FORMAT(sujibc.apply_time, '%Y-%m-%d') between #{sysUserJzgInfoBankCardVo.applyTimeStart} AND #{sysUserJzgInfoBankCardVo.applyTimeEnd}
         </if>
-        <if test="sysUserJzgInfoBankCardVo.auditTimeStart != null and sysUserJzgInfoBankCardVo.auditTimeEnd == null">
+        <if test="sysUserJzgInfoBankCardVo.auditTimeStart != null and sysUserJzgInfoBankCardVo.auditTimeEnd != null">
             and DATE_FORMAT(sujibc.audit_time, '%Y-%m-%d') between #{sysUserJzgInfoBankCardVo.auditTimeStart} AND #{sysUserJzgInfoBankCardVo.auditTimeEnd}
         </if>
         <if test="sysUserJzgInfoBankCardVo.auditBy != null and sysUserJzgInfoBankCardVo.auditBy != ''">