| @@ -31,6 +31,10 @@ | |||||
| and `id` = #{id} | and `id` = #{id} | ||||
| </if> | </if> | ||||
| <if test=" null != tenantId "> | |||||
| and c.`tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != phone "> | <if test=" null != phone "> | ||||
| and `phone` like concat('%', #{phone},'%') | and `phone` like concat('%', #{phone},'%') | ||||
| </if> | </if> | ||||
| @@ -75,10 +79,6 @@ | |||||
| and c.`update_date` = #{updateDate} | and c.`update_date` = #{updateDate} | ||||
| </if> | </if> | ||||
| <if test=" null != tenantId "> | |||||
| and c.`tenant_id` like concat('%', #{tenantId},'%') | |||||
| </if> | |||||
| <if test=" null != name "> | <if test=" null != name "> | ||||
| and c.`name` like concat('%', #{name},'%') | and c.`name` like concat('%', #{name},'%') | ||||
| </if> | </if> | ||||