瀏覽代碼

查询协议删除导致查询报错的bug

hxl13994548489 2 年之前
父節點
當前提交
65c85b6b93
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/main/resources/mapper/modules/admin/SysUserLinkPtlAgreementMapper.xml

+ 2 - 0
src/main/resources/mapper/modules/admin/SysUserLinkPtlAgreementMapper.xml

@@ -47,6 +47,7 @@
         LEFT JOIN ptl_agreement agree ON link.ptl_agreement_id = agree.id
         left join esm_ins_company com on com.id = agree.partner_companies_id
         <where>
+            agree.id is not null
             <if test="vo.userId != null and vo.userId != ''">
                 and  link.user_id =  #{vo.userId}
             </if>
@@ -79,6 +80,7 @@
         LEFT JOIN ptl_agreement agree ON link.ptl_agreement_id = agree.id
         left join esm_ins_company com on link.id = agree.partner_companies_id
         <where>
+            agree.id is not null
             <if test="userId != null and userId != ''">
                 and  link.user_id =  #{userId}
             </if>