|
@@ -12,6 +12,7 @@ import com.fdkankan.common.exception.BusinessException;
|
|
|
import com.fdkankan.ucenter.common.PageInfo;
|
|
|
import com.fdkankan.common.util.NumberUtils;
|
|
|
import com.fdkankan.ucenter.common.SkuEnum;
|
|
|
+import com.fdkankan.ucenter.common.constants.ResultCode;
|
|
|
import com.fdkankan.ucenter.constant.LoginConstant;
|
|
|
import com.fdkankan.ucenter.constant.OrderConstant;
|
|
|
import com.fdkankan.ucenter.entity.*;
|
|
@@ -174,6 +175,12 @@ public class IncrementOrderServiceImpl extends ServiceImpl<IIncrementOrderMapper
|
|
|
if(param.getMonthQy() != null){
|
|
|
total = total.multiply(new BigDecimal(param.getMonthQy())); //高级会员月份
|
|
|
}
|
|
|
+ if(param.getIncrementId() != null){
|
|
|
+ IncrementAutoOrder autoOrder2 = incrementAutoOrderService.getByIncrementId(param.getIncrementId());
|
|
|
+ if(autoOrder2 != null){
|
|
|
+ throw new BusinessException(ResultCode.FAILURE_CODE_400007,ResultCode.FAILURE_MSG_400007);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
IncrementOrder incrementOrderEntity = new IncrementOrder();
|
|
|
PayAutoPayVo autoPayVo = null;
|