|
@@ -8,6 +8,7 @@ import com.poteviohealth.cgp.common.integrated.customer.model.CustomerIntegratio
|
|
|
import com.poteviohealth.cgp.common.model.CommonPage;
|
|
import com.poteviohealth.cgp.common.model.CommonPage;
|
|
|
import com.poteviohealth.cgp.common.model.VaultsResponse;
|
|
import com.poteviohealth.cgp.common.model.VaultsResponse;
|
|
|
import com.poteviohealth.cgp.common.service.impl.BaseServiceImpl;
|
|
import com.poteviohealth.cgp.common.service.impl.BaseServiceImpl;
|
|
|
|
|
+import com.poteviohealth.cgp.common.utils.CgpTool;
|
|
|
import com.poteviohealth.cgp.integration.mapper.IntegralDetailMapper;
|
|
import com.poteviohealth.cgp.integration.mapper.IntegralDetailMapper;
|
|
|
import com.poteviohealth.cgp.integration.mapstruct.IntegralConverter;
|
|
import com.poteviohealth.cgp.integration.mapstruct.IntegralConverter;
|
|
|
import com.poteviohealth.cgp.integration.model.IntegralDetail;
|
|
import com.poteviohealth.cgp.integration.model.IntegralDetail;
|
|
@@ -105,7 +106,11 @@ public class IntegralDetailServiceImpl extends BaseServiceImpl<IntegralDetailMap
|
|
|
@Override
|
|
@Override
|
|
|
public VaultsResponse saveDetail(List<CustomerIntegration> customerIntegration) {
|
|
public VaultsResponse saveDetail(List<CustomerIntegration> customerIntegration) {
|
|
|
|
|
|
|
|
- return VaultsResponse.success(super.saveBatch(IntegralConverter.INSTANCE.model2FeginDTO(customerIntegration)));
|
|
|
|
|
|
|
+ List<IntegralDetail> list = IntegralConverter.INSTANCE.model2FeginDTO(customerIntegration);
|
|
|
|
|
+ for (IntegralDetail detail : list) {
|
|
|
|
|
+ detail.setIntegralDetailId(CgpTool.generateKey());
|
|
|
|
|
+ }
|
|
|
|
|
+ return VaultsResponse.success(super.saveBatch(list));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private CommonPage<IntegralDetail> selectOrderIPage(IntegralDetailWebInDTO integralDetailWebInDTO) {
|
|
private CommonPage<IntegralDetail> selectOrderIPage(IntegralDetailWebInDTO integralDetailWebInDTO) {
|