xhxu 4 лет назад
Родитель
Сommit
4e2788ede3
1 измененных файлов: 5 добавлений и 1 удалений
  1. +5
    -1
      mallinkService/src/main/resources/mapper/WxCUserCarMapper.xml

+ 5
- 1
mallinkService/src/main/resources/mapper/WxCUserCarMapper.xml Просмотреть файл

@@ -23,11 +23,15 @@


<sql id="dynamicWhereConditions"> <sql id="dynamicWhereConditions">


where wcuc.`tenant_id` = #{tenantId}
where 1=1
<if test=" null != id "> <if test=" null != id ">
and wcuc.`id` = #{id} and wcuc.`id` = #{id}
</if> </if>


<if test=" null != tenantId and '' != tenantId">
and wcuc.`tenant_id` = #{tenantId}
</if>

<if test=" null != parentTenantId and '' != parentTenantId"> <if test=" null != parentTenantId and '' != parentTenantId">
and wcuc.`parent_tenant_id` = #{parentTenantId} and wcuc.`parent_tenant_id` = #{parentTenantId}
</if> </if>


Загрузка…
Отмена
Сохранить