|
|
|
@ -1,8 +1,6 @@
|
|
|
|
|
package com.glxp.api.admin.controller.basic;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.alibaba.fastjson.TypeReference;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
|
|
|
|
|
import com.glxp.api.admin.entity.basic.*;
|
|
|
|
@ -15,15 +13,16 @@ import com.glxp.api.admin.req.receipt.ProductInfoFilterRequest;
|
|
|
|
|
import com.glxp.api.admin.req.thrsys.FilterThrProductsRequest;
|
|
|
|
|
import com.glxp.api.admin.res.PageSimpleResponse;
|
|
|
|
|
import com.glxp.api.admin.res.basic.ErpProductsResponse;
|
|
|
|
|
import com.glxp.api.admin.service.basic.*;
|
|
|
|
|
import com.glxp.api.admin.service.basic.BasicThirdSysDetailService;
|
|
|
|
|
import com.glxp.api.admin.service.basic.SyncUdiService;
|
|
|
|
|
import com.glxp.api.admin.service.basic.UdiInfoService;
|
|
|
|
|
import com.glxp.api.admin.service.basic.UdiRelevanceService;
|
|
|
|
|
import com.glxp.api.admin.service.thrsys.ThrProductsService;
|
|
|
|
|
import com.glxp.api.admin.util.FilterUdiUtils;
|
|
|
|
|
import com.glxp.api.admin.util.HttpClient;
|
|
|
|
|
import com.glxp.api.common.enums.ResultEnum;
|
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
@ -245,7 +244,7 @@ public class UdiInfoController {
|
|
|
|
|
public BaseResponse saveProduct(@RequestBody ThrProductsEntity thrProductsEntity) {
|
|
|
|
|
if (null == thrProductsEntity)
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL);
|
|
|
|
|
thrProductsEntity.setThirdSysFk("thirdId");
|
|
|
|
|
thrProductsEntity.setThirdSysFk(thrProductsEntity.getThirdSys());
|
|
|
|
|
thrProductsService.insertThrProducts(thrProductsEntity);
|
|
|
|
|
return ResultVOUtils.success();
|
|
|
|
|
}
|
|
|
|
|