main
parent
26cb95f60a
commit
36d6c3104e
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue