|
|
@@ -8,6 +8,7 @@ import com.poteviohealth.cgp.common.filter.MiniJwtVO;
|
|
|
import com.poteviohealth.cgp.common.filter.TokenContext;
|
|
|
import com.poteviohealth.cgp.common.integrated.customer.model.CustomerIntegration;
|
|
|
import com.poteviohealth.cgp.common.model.CommonPage;
|
|
|
+import com.poteviohealth.cgp.common.model.PageQuery;
|
|
|
import com.poteviohealth.cgp.common.model.VaultsResponse;
|
|
|
import com.poteviohealth.cgp.common.service.impl.BaseServiceImpl;
|
|
|
import com.poteviohealth.cgp.common.utils.CgpTool;
|
|
|
@@ -15,6 +16,7 @@ import com.poteviohealth.cgp.integration.mapper.IntegralDetailMapper;
|
|
|
import com.poteviohealth.cgp.integration.mapstruct.IntegralConverter;
|
|
|
import com.poteviohealth.cgp.integration.model.IntegralDetail;
|
|
|
import com.poteviohealth.cgp.integration.model.invo.web.IntegralDetailWebInDTO;
|
|
|
+import com.poteviohealth.cgp.integration.model.outvo.app.IntegrationDetailOutDTO;
|
|
|
import com.poteviohealth.cgp.integration.model.outvo.web.IntegralDetailWebOutDTO;
|
|
|
import com.poteviohealth.cgp.integration.service.IIntegralDetailService;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
@@ -107,6 +109,16 @@ public class IntegralDetailServiceImpl extends BaseServiceImpl<IntegralDetailMap
|
|
|
return VaultsResponse.success(IntegralConverter.INSTANCE.model2WebDTO(pageOrder));
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public VaultsResponse<CommonPage<IntegrationDetailOutDTO>> selectPage(PageQuery pageQuery) {
|
|
|
+ IntegralDetailWebInDTO integralDetailWebInDTO = new IntegralDetailWebInDTO();
|
|
|
+ integralDetailWebInDTO.setCustomerId(TokenContext.cureMiniUser().getCustomerId());
|
|
|
+ integralDetailWebInDTO.setPageSize(pageQuery.getPageSize());
|
|
|
+ integralDetailWebInDTO.setPageNum(pageQuery.getPageNum());
|
|
|
+ CommonPage<IntegralDetail> pageOrder = selectOrderIPage(integralDetailWebInDTO);
|
|
|
+ return VaultsResponse.success(IntegralConverter.INSTANCE.model2AppDTO(pageOrder));
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public VaultsResponse saveDetail(List<CustomerIntegration> customerIntegration) {
|