Explorar el Código

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

hxl13994548489 hace 2 años
padre
commit
65c85b6b93

+ 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>