|
|
|
@ -10,6 +10,7 @@ import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import com.glxp.api.entity.auth.AuthAdmin;
|
|
|
|
|
import com.glxp.api.entity.basic.BasicCorpEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiProductEntity;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiRlSupEntity;
|
|
|
|
|
import com.glxp.api.entity.system.CompanyEntity;
|
|
|
|
|
import com.glxp.api.exception.JsonException;
|
|
|
|
@ -28,6 +29,7 @@ import com.glxp.api.service.basic.*;
|
|
|
|
|
import com.glxp.api.service.system.CompanyService;
|
|
|
|
|
import com.glxp.api.util.SupplementVailUtil;
|
|
|
|
|
import com.glxp.api.util.udi.FilterUdiUtils;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
@ -64,6 +66,8 @@ public class UdiRlSupController {
|
|
|
|
|
private CompanyProductRelevanceService companyProductRelevanceService;
|
|
|
|
|
@Resource
|
|
|
|
|
private SupplementVailUtil supplementVailUtil;
|
|
|
|
|
@Resource
|
|
|
|
|
private UdiProductService udiProductService;
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("")
|
|
|
|
|
@GetMapping("/sale/info/company/product/relevance/filter")
|
|
|
|
@ -223,6 +227,9 @@ public class UdiRlSupController {
|
|
|
|
|
if (vailResult != null)
|
|
|
|
|
return ResultVOUtils.error(500, vailResult);
|
|
|
|
|
companyProductsRelService.insertCompanyProducts(udiInfoExportRequest);
|
|
|
|
|
UdiProductEntity udiProductEntity = new UdiProductEntity();
|
|
|
|
|
BeanUtils.copyProperties(udiProductEntity,udiInfoExportRequest.getSupplementRequest());
|
|
|
|
|
udiProductService.insertUdiInfo(udiProductEntity);
|
|
|
|
|
return ResultVOUtils.success("后台正在导入,请稍后刷新查看!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|