guoyujia пре 1 година
родитељ
комит
6d4b6af1fb
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/resources/mybatis/business/Sfc10500Mapper.xml

+ 1 - 1
src/main/resources/mybatis/business/Sfc10500Mapper.xml

@@ -10,6 +10,6 @@
 
 
     <select id="getLotMount" parameterType="Sfc10500" resultMap="Sfc10500Result">
-        select top 1 peqty from sfc10500 where lotno like concat ('%', #{lotno}, '%') and lotseq =#{lotseq} order by peqty desc
+        select top 1 peqty from sfc10500 where lotno LIKE '%' + CAST(@lotno AS NVARCHAR(100)) + '%' and lotseq =#{lotseq} order by peqty desc
     </select>
 </mapper>