|
|
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.uas.ps.core.page.PageInfo;
|
|
|
import com.uas.ps.entity.Product;
|
|
|
import com.uas.ps.entity.ProductUsers;
|
|
|
+import com.uas.ps.product.entity.InviteProdInfo;
|
|
|
import com.uas.ps.product.entity.ProductPrivateView;
|
|
|
import com.uas.ps.product.search.model.PageParams;
|
|
|
import com.uas.ps.product.service.ProductService;
|
|
|
@@ -14,10 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.Sort;
|
|
|
import org.springframework.util.StringUtils;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLDecoder;
|
|
|
@@ -238,4 +236,15 @@ public class ProductGetController {
|
|
|
return productService.countByEnUU(enUU);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据传入的企业UU信息获取物料数量和最近一次上传时间
|
|
|
+ *
|
|
|
+ * @param json 企业UU信息
|
|
|
+ * @return InviteProdInfo List
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/getCountAndTime", method = RequestMethod.GET)
|
|
|
+ public List<InviteProdInfo> findByEnUUList(@RequestParam("enUUList") String json) {
|
|
|
+ List<Long> enUUList = JSON.parseArray(json, Long.class);
|
|
|
+ return productService.getCountAndTime(enUUList);
|
|
|
+ }
|
|
|
}
|