Browse Source

[品牌][修改][查询名称是否存在]

release_toaliyun_real
gongbiao 7 years ago
parent
commit
2594c19c61
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mallinkService/src/main/resources/mapper/WxBrandMapper.xml

+ 2
- 2
mallinkService/src/main/resources/mapper/WxBrandMapper.xml View File

@@ -43,9 +43,9 @@
</select>
<select id="hasBrand" parameterType="com.iformall.domain.po.WxBrand" resultType="Integer">
select count(*) from wx_brand where tenant_id=#{tenantId} and name=#{name}
select count(*) from wx_brand where tenant_id=#{tenantId} and `name`=#{name}
<if test=" null != id">
and id = #{id}
and id != #{id}
</if>
</select>


Loading…
Cancel
Save