|
|
@@ -366,12 +366,12 @@ public class ProductServiceImpl implements ProductService {
|
|
|
if (null != isPerson && isPerson.intValue() == IntegerConstant.YES_SHORT.intValue()) {
|
|
|
List<ProductPerson> productPersonList = productPersonDao.findByProductIdAndUserUU(id,SystemSession.getUser().getUserUU());
|
|
|
if (!CollectionUtils.isEmpty(productPersonList)) {
|
|
|
- Map<String,Object> requestMap = new HashMap<>();
|
|
|
- requestMap.put("userUU",productPersonList.get(0).getUserUU());
|
|
|
- requestMap.put("productId",productPersonList.get(0).getProductId());
|
|
|
- String res = restTemplate.postForEntity( productServiceIp+"/product/assign/delete", null, String.class, requestMap).getBody();
|
|
|
-// Long ppid = productPersonList.get(0).getId();
|
|
|
-// productPersonDao.delete(ppid);
|
|
|
+// Map<String,Object> requestMap = new HashMap<>();
|
|
|
+// requestMap.put("userUU",productPersonList.get(0).getUserUU());
|
|
|
+// requestMap.put("productId",productPersonList.get(0).getProductId());
|
|
|
+// String res = restTemplate.postForEntity( productServiceIp+"/product/assign/delete", null, String.class, requestMap).getBody();
|
|
|
+ Long ppid = productPersonList.get(0).getId();
|
|
|
+ productPersonDao.delete(ppid);
|
|
|
}
|
|
|
continue;
|
|
|
}
|