|
@@ -7,6 +7,7 @@ import java.util.Map;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import com.diagbot.dto.EnShowOptionDTO;
|
|
|
import com.diagbot.dto.GetConsoleOnTrialDTO;
|
|
|
import com.diagbot.dto.GetConsoleOpenedDTO;
|
|
|
import com.diagbot.dto.OpenUpOnTrialDTO;
|
|
@@ -77,5 +78,17 @@ public class OpenedProductsFacade extends OpenedProductsServiceImpl {
|
|
|
|
|
|
return openUpOnTrialDTO;
|
|
|
}
|
|
|
+
|
|
|
+ public EnShowOptionDTO enShowOption(){
|
|
|
+ Long userId = Long.parseLong(UserUtils.getCurrentPrincipleID());
|
|
|
+ int openedCount = baseMapper.getConsoleOpenedCount(userId);
|
|
|
+ int onTrialCount = baseMapper.getConsoleOnTrialCount(userId);
|
|
|
+
|
|
|
+ EnShowOptionDTO enShowOptionDTO = new EnShowOptionDTO();
|
|
|
+ enShowOptionDTO.setOpenedCount(openedCount);
|
|
|
+ enShowOptionDTO.setOnTrialCount(onTrialCount);
|
|
|
+
|
|
|
+ return enShowOptionDTO;
|
|
|
+ }
|
|
|
|
|
|
}
|