소스 검색

解决产品名称重复问题

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 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>
 
 </mapper>