guoyujia 1 жил өмнө
parent
commit
df0456e4cd

+ 1 - 1
src/main/java/cn/ezhizao/project/business/mapper/Sfc10500Mapper.java

@@ -9,5 +9,5 @@ import java.util.List;
 
 
 public interface Sfc10500Mapper extends BaseMapper<Sfc10500>
 public interface Sfc10500Mapper extends BaseMapper<Sfc10500>
 {
 {
-   BigDecimal getLotMount(Sfc10500 sfc10500);
+   Sfc10500 getLotMount(Sfc10500 sfc10500);
 }
 }

+ 1 - 1
src/main/java/cn/ezhizao/project/business/service/ISfc10500Service.java

@@ -10,6 +10,6 @@ import java.util.List;
 
 
 public interface ISfc10500Service extends IService<Sfc10500>
 public interface ISfc10500Service extends IService<Sfc10500>
 {
 {
-    BigDecimal getLotMount(Sfc10500 sfc10500);
+    Sfc10500 getLotMount(Sfc10500 sfc10500);
 
 
 }
 }

+ 1 - 1
src/main/java/cn/ezhizao/project/business/service/impl/Sfc10500ServiceImpl.java

@@ -21,7 +21,7 @@ public class Sfc10500ServiceImpl extends ServiceImpl<Sfc10500Mapper, Sfc10500> i
 
 
     @Override
     @Override
     @DataSource(value = DataSourceType.SLAVE)
     @DataSource(value = DataSourceType.SLAVE)
-    public BigDecimal getLotMount(Sfc10500 sfc10500) {
+    public Sfc10500 getLotMount(Sfc10500 sfc10500) {
         return sfc10500Mapper.getLotMount(sfc10500);
         return sfc10500Mapper.getLotMount(sfc10500);
     }
     }
 }
 }

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

@@ -9,7 +9,7 @@
     </resultMap>
     </resultMap>
 
 
 
 
-    <select id="getLotMount" parameterType="Sfc10500" resultType="decimal">
-        select top 1 peqty from sfc10500 where lotno LIKE '%#{lotno}%' and lotseq =#{lotseq} order by peqty desc
+    <select id="getLotMount" parameterType="Sfc10500" resultMap="Sfc10500Result">
+        select * from sfc10500 where lotno LIKE '%#{lotno}%' and lotseq =#{lotseq} order by peqty desc
     </select>
     </select>
 </mapper>
 </mapper>