linhw 2024-08-06 18:09:27 +08:00
parent 26cb95f60a
commit 36d6c3104e
3 changed files with 3 additions and 3 deletions

View File

@ -508,7 +508,7 @@ public class PayController extends BaseController
String orderNo = KeyUtil.generateUniqueKey();
AlipayTradeAppPayResponse result = null;
try {
AppVip appVip = appVipMapper.selectAppVipByLevel(appOrderArg.getLevel());
AppVip appVip = appVipMapper.selectAppVipByLevel(Long.valueOf(appOrderArg.getLevel()));
String price = appVip.getPrice() + ".00";
//result = alipayService.startPay(orderNo,appOrderArg.getPrice(),appOrderArg.getLevel() == 2 ? 30 : (appOrderArg.getLevel() == 3 ? 365 : 0));
result = alipayService.startPay(orderNo,price,0);

View File

@ -61,6 +61,6 @@ public interface AppVipMapper
public int deleteAppVipByIds(Long[] ids);
public AppVip selectAppVipByLevel(@Param("level") int level);
public AppVip selectAppVipByLevel(@Param("level") Long level);
}

View File

@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="selectAppVipById" resultMap="AppVipResult">
<select id="selectAppVipById" parameterType="Long" resultMap="AppVipResult">
<include refid="selectAppVipVo"/>
where id = #{id}
</select>