@@ -9,5 +9,5 @@ import java.util.List;
public interface Sfc10500Mapper extends BaseMapper<Sfc10500>
{
- BigDecimal getLotMount(Sfc10500 sfc10500);
+ Sfc10500 getLotMount(Sfc10500 sfc10500);
}
@@ -10,6 +10,6 @@ import java.util.List;
public interface ISfc10500Service extends IService<Sfc10500>
@@ -21,7 +21,7 @@ public class Sfc10500ServiceImpl extends ServiceImpl<Sfc10500Mapper, Sfc10500> i
@Override
@DataSource(value = DataSourceType.SLAVE)
- public BigDecimal getLotMount(Sfc10500 sfc10500) {
+ public Sfc10500 getLotMount(Sfc10500 sfc10500) {
return sfc10500Mapper.getLotMount(sfc10500);
@@ -9,7 +9,7 @@
</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>
</mapper>