|
@@ -1,13 +1,5 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
-import java.util.Date;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
-
|
|
|
import com.diagbot.client.UserServiceClient;
|
|
|
import com.diagbot.dto.EnShowOptionDTO;
|
|
|
import com.diagbot.dto.GetConsoleOnTrialDTO;
|
|
@@ -36,6 +28,13 @@ import com.diagbot.vo.ModifyOpeningTimeVO;
|
|
|
import com.diagbot.vo.OpenUpOnTrialVO;
|
|
|
import com.diagbot.vo.ProductServiceSaveVO;
|
|
|
import com.diagbot.vo.StartAndendByUserIdVO;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @Description:已开通产品业务层
|
|
@@ -241,7 +240,7 @@ public class OpenedProductsFacade extends OpenedProductsServiceImpl {
|
|
|
List<OpenedProducts> opendList = openedProductsFacade.selectOpenedProducts(map);
|
|
|
List<Long> renewalsList = userRenewalsFacade.selectProductIdByUserId(map);
|
|
|
if(!renewalsList.contains(modifyOpeningTimeVO.getProductId())){
|
|
|
- throw new CommonException(CommonErrorCode.NOT_EXISTS, "续费单单不存在,请刷新重试");
|
|
|
+ throw new CommonException(CommonErrorCode.NOT_EXISTS, "续费单不存在,请刷新重试");
|
|
|
}
|
|
|
for (OpenedProducts openedProducts1 :opendList) {
|
|
|
if(beforeTime(openedProducts1.getEndTime(),modifyOpeningTimeVO.getEndTime())){
|
|
@@ -249,8 +248,8 @@ public class OpenedProductsFacade extends OpenedProductsServiceImpl {
|
|
|
}
|
|
|
}
|
|
|
openedProducts.setEndTime(DateUtil.parseDate(modifyOpeningTimeVO.getEndTime()));
|
|
|
- openedProducts.setCreator(UserUtils.getCurrentPrincipleID());
|
|
|
- openedProducts.setGmtCreate(DateUtil.now());
|
|
|
+ openedProducts.setModifier(UserUtils.getCurrentPrincipleID());
|
|
|
+ openedProducts.setGmtModified(DateUtil.now());
|
|
|
UserRenewals userRenewals = new UserRenewals();
|
|
|
userRenewals.setRenewalsStatus(RenewalsEnum.RENEWALS.getKey());
|
|
|
userRenewals.setGmtModified(DateUtil.now());
|