|
|
@@ -267,7 +267,7 @@ public class PurchaseProductServiceImpl implements PurchaseProductService {
|
|
|
private Integer assignBatch(List<ReleaseProductByBatch> uniqueBatchList) {
|
|
|
List<Product> productList = covert(uniqueBatchList);
|
|
|
try {
|
|
|
- String res = HttpUtil.doPost(productServiceIp + "/product/update/addToProductUser", FlexJsonUtils.toJsonDeep(productList));
|
|
|
+ String res = HttpUtil.doPost("http://10.1.51.24:8080" + "/product/update/addToProductUser", FlexJsonUtils.toJsonDeep(productList));
|
|
|
JSONObject response = JSON.parseObject(res);
|
|
|
if (TRUE_SIGN.equals(response.get(SUCCESS_CODE))) {
|
|
|
return Integer.valueOf(response.get("result").toString());
|
|
|
@@ -332,7 +332,7 @@ public class PurchaseProductServiceImpl implements PurchaseProductService {
|
|
|
product.setSpec(batch.getSpec());
|
|
|
product.setBrand(batch.getBrandNameEn() != null ? batch.getBrandNameEn() : batch.getBrandNameCn());
|
|
|
product.setUserUU(SystemSession.getUser().getUserUU());
|
|
|
- product.setCode(batch.getCode());
|
|
|
+ product.setCmpCode(batch.getCode());
|
|
|
// 没有编号设置编号
|
|
|
if (null == product.getCode()) {
|
|
|
String code = "B2CPR" + StringUtilB2C.getRandomNumber(6);
|