|
@@ -8,6 +8,7 @@ import com.diagbot.dto.LantoneProductDTO;
|
|
|
import com.diagbot.dto.LantoneProductOrgDTO;
|
|
|
import com.diagbot.dto.OpendProductDTO;
|
|
|
import com.diagbot.dto.ProductLineDTO;
|
|
|
+import com.diagbot.dto.RenewalsInfosDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.dto.UserOrgDTO;
|
|
|
import com.diagbot.entity.LantoneProduct;
|
|
@@ -21,6 +22,7 @@ import com.diagbot.entity.wrapper.ServiceInfoWrapper;
|
|
|
import com.diagbot.entity.wrapper.UserRenewalsWrapper;
|
|
|
import com.diagbot.enums.AccessTypeEnum;
|
|
|
import com.diagbot.enums.AuditStatusEnum;
|
|
|
+import com.diagbot.enums.CancelRenewalsEnum;
|
|
|
import com.diagbot.enums.ChargeTypeEnum;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
|
import com.diagbot.enums.ProductAuditEnum;
|
|
@@ -153,7 +155,8 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
UserRenewalsWrapper renewalsInfosDTO =new UserRenewalsWrapper();
|
|
|
renewalsInfosDTO.setProductId(updateProductVO.getId());
|
|
|
renewalsInfosDTO.setRenewalsStatus(RenewalsEnum.NOT_RENEWALS.getKey());
|
|
|
- if(userRenewalsFacade.selectUserRenewals(page,renewalsInfosDTO).getRecords().size() > 0){
|
|
|
+ List<RenewalsInfosDTO> list = userRenewalsFacade.selectUserRenewals(page,renewalsInfosDTO).getRecords();
|
|
|
+ if(list.contains(RenewalsEnum.NOT_RENEWALS.getKey()) && list.contains(CancelRenewalsEnum.NOT_CANCEL.getKey())){
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
"该产品无法停用,请先处理续费申请信息");
|
|
|
}
|