浏览代码

解决产品名称重复问题

wangyu 6 年之前
父节点
当前提交
fed6112688
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      diagbotman-service/src/main/resources/mapper/LantoneProductMapper.xml

+ 1 - 1
diagbotman-service/src/main/resources/mapper/LantoneProductMapper.xml

@@ -102,7 +102,7 @@
     </select>
     </select>
     
     
     <select id="selectProductByName" resultMap="BaseResultMap">
     <select id="selectProductByName" resultMap="BaseResultMap">
-        SELECT * FROM `diag_lantone_product` WHERE `name`=#{name}
+        SELECT * FROM `diag_lantone_product` WHERE is_deleted='N' and `name`=#{name}
     </select>
     </select>
 
 
 </mapper>
 </mapper>