|
@@ -13,11 +13,13 @@ import com.gree.mall.miniapp.enums.ExamineWorkerStatusEnum;
|
|
|
import com.gree.mall.miniapp.enums.IsEnum;
|
|
|
import com.gree.mall.miniapp.enums.IsYesNoEnum;
|
|
|
import com.gree.mall.miniapp.enums.PolicyOrderStutasEnum;
|
|
|
+import com.gree.mall.miniapp.exception.RemoteServiceException;
|
|
|
import com.gree.mall.miniapp.logic.common.CommonLogic;
|
|
|
import com.gree.mall.miniapp.logic.common.outside.WechatLogic;
|
|
|
import com.gree.mall.miniapp.plus.entity.*;
|
|
|
import com.gree.mall.miniapp.plus.service.*;
|
|
|
import com.gree.mall.miniapp.utils.IpUtil;
|
|
|
+import com.gree.mall.miniapp.utils.StringUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
@@ -305,6 +307,8 @@ public class WorkerLogic {
|
|
|
int month2 = DateUtil.month(policy.getEndTime());
|
|
|
|
|
|
Integer integer = month2-month+1;
|
|
|
+ if (integer > 12)
|
|
|
+ throw new RemoteServiceException("");
|
|
|
|
|
|
BigDecimal price = this.getPayPrice(integer,policy);
|
|
|
|
|
@@ -373,7 +377,7 @@ public class WorkerLogic {
|
|
|
|
|
|
CurrentCompanyWechat currentCompanyWechat = commonLogic.getCurrentCompanyWechat();
|
|
|
|
|
|
- String source = commonLogic.getSource();
|
|
|
+ String source = StringUtil.isEmpty(commonLogic.getSource())?"B":commonLogic.getSource();
|
|
|
|
|
|
PayDetail payDetail = new PayDetail();
|
|
|
|