|
|
@@ -12,6 +12,7 @@ import com.uas.ps.product.service.ProductService;
|
|
|
import com.uas.ps.product.search.model.SPage;
|
|
|
import com.uas.ps.product.search.service.SearchService;
|
|
|
import com.uas.ps.product.service.ProductUsersService;
|
|
|
+import org.apache.log4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.Sort;
|
|
|
@@ -50,6 +51,8 @@ public class ProductGetController {
|
|
|
*/
|
|
|
final String PRODUCT_TABLE_NAME = "v$product$private";
|
|
|
|
|
|
+ private static final Logger LOGGER = Logger.getLogger(ProductGetController.class);
|
|
|
+
|
|
|
/**
|
|
|
* 根据enUU和code查找企业物料
|
|
|
* @param enUU 企业UU
|
|
|
@@ -71,6 +74,7 @@ public class ProductGetController {
|
|
|
public List<Product> findByEnUUAndCodes(@RequestParam("enUU") Long enUU, @RequestParam("codes") String codes) throws UnsupportedEncodingException {
|
|
|
codes = URLDecoder.decode(codes, "UTF-8");
|
|
|
List<String> codeList = JSON.parseArray(codes, String.class);
|
|
|
+ LOGGER.info(codeList);
|
|
|
return productService.findByEnUUAndCodes(enUU, codeList);
|
|
|
}
|
|
|
|