|
|
@@ -403,12 +403,12 @@ public class ProductUtils {
|
|
|
* @param code 物料code
|
|
|
* @return
|
|
|
*/
|
|
|
- public static List<Product> findByEnUUAndCode(Long enUU, String code) throws Exception {
|
|
|
- HashMap<String, Object> map = new HashMap<>(2);
|
|
|
- map.put("enUU", enUU);
|
|
|
- map.put("code", URLEncoder.encode(code, HTTP.UTF_8));
|
|
|
+ public static List<Product> findByEnUUAndCode(Long enUU, String code) {
|
|
|
Response res = null;
|
|
|
try {
|
|
|
+ HashMap<String, Object> map = new HashMap<>(2);
|
|
|
+ map.put("enUU", enUU);
|
|
|
+ map.put("code", URLEncoder.encode(code, HTTP.UTF_8));
|
|
|
res = HttpUtil.sendGetRequest(PRODUCT_PUBLIC_SERVICE_URL + "/product/get/findByEnUUAndCode", map);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|