|
@@ -173,15 +173,26 @@ public class IncrementOrderServiceImpl extends ServiceImpl<IIncrementOrderMapper
|
|
|
|
|
|
IncrementOrder incrementOrderEntity = new IncrementOrder();
|
|
|
PayAutoPayVo autoPayVo = null;
|
|
|
+ String autoStartTime = null;
|
|
|
+ String autoPayTime = null;
|
|
|
+ UserIncrement userIncrement = null;
|
|
|
+ if(param.getAutoPay() != null && param.getAutoPay() == 1){
|
|
|
+ if(param.getIncrementId() != null){
|
|
|
+ userIncrement = userIncrementService.getById(param.getIncrementId());
|
|
|
+ if(userIncrement != null){
|
|
|
+ autoStartTime = userIncrement.getIncrementEndTime();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
if(incrementType.getValidTimeType() == 0){
|
|
|
incrementOrderEntity.setMemberLevels("PR");
|
|
|
- autoPayVo =new PayAutoPayVo(param.getAutoPay(),"YEAR");
|
|
|
+ autoPayTime = "MONTH";
|
|
|
}
|
|
|
if(incrementType.getValidTimeType() == 1){
|
|
|
incrementOrderEntity.setMemberLevels("SE");
|
|
|
- autoPayVo = new PayAutoPayVo(param.getAutoPay(), "MONTH");
|
|
|
+ autoPayTime = "YEAR";
|
|
|
}
|
|
|
-
|
|
|
+ autoPayVo =new PayAutoPayVo(param.getAutoPay(),autoPayTime,autoStartTime);
|
|
|
PayGoods payGoods = new PayGoods(incrementType.getName(),param.getCount(),incrementType.getValidTimeType(),param.getMonthQy());
|
|
|
PayOrderVo payOrderVo = payService.downOrder(total, "incrementOrder",user.getUserName(),user.getNickName(), Arrays.asList(payGoods),autoPayVo);
|
|
|
if(payOrderVo == null){
|