|
|
@@ -68,7 +68,6 @@ import org.springframework.jdbc.core.StatementCallback;
|
|
|
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
-import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
|
|
|
@@ -829,10 +828,10 @@ public class ProductServiceImpl implements ProductService {
|
|
|
if (result == null) {
|
|
|
return new ResultMap(CodeType.NO_INFO, "匹配结果信息丢失");
|
|
|
}
|
|
|
- List<Product> standardList = productDao.findProductByPcmpcodeAndPbrandenAndEnUUAndStandard(result.getCmpcode(), result.getBranden(), enUU, IntegerConstant.YES_SHORT);
|
|
|
+ List<V_ProductPrivate> standardList = v_productPrivateDao.findProductByPcmpcodeAndPbrandenAndEnUUAndStandard(result.getCmpcode(), result.getBranden(), enUU, IntegerConstant.YES_SHORT, IntegerConstant.YES_SHORT);
|
|
|
Product standardProduct = null;
|
|
|
if (!CollectionUtils.isEmpty(standardList)) {
|
|
|
- standardProduct = standardList.get(0);
|
|
|
+ standardProduct = productDao.findOne(standardList.get(0).getId());
|
|
|
}
|
|
|
List<List<Goods>> repeatList = new ArrayList<>();
|
|
|
// 已有对应标准信息,需要判断在售商品是否重复
|
|
|
@@ -874,7 +873,8 @@ public class ProductServiceImpl implements ProductService {
|
|
|
productPrivate.setBatchCount(0);
|
|
|
productPrivateDao.save(productPrivate);
|
|
|
}
|
|
|
- restTemplate.postForEntity(productServiceIp + "/product/update", afterProduct, String.class);
|
|
|
+// restTemplate.postForEntity(productServiceIp + "/product/update", afterProduct, String.class);
|
|
|
+ productDao.save(afterProduct);
|
|
|
updateInfoAfterTurnStandard(matchId, standardProduct);
|
|
|
return ResultMap.success(null);
|
|
|
}
|