|
@@ -92,7 +92,7 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 标准物料
|
|
* 标准物料
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param params
|
|
* @param params
|
|
|
* @param keyword
|
|
* @param keyword
|
|
|
* @return
|
|
* @return
|
|
@@ -127,7 +127,7 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 非标准物料
|
|
* 非标准物料
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param params
|
|
* @param params
|
|
|
* @param keyword
|
|
* @param keyword
|
|
|
* @return
|
|
* @return
|
|
@@ -207,10 +207,9 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 通过id删除
|
|
* 通过id删除
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param id
|
|
* @param id
|
|
|
* @return
|
|
* @return
|
|
|
- * @return
|
|
|
|
|
* @throws Exception
|
|
* @throws Exception
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/edit/delete", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/edit/delete", method = RequestMethod.POST)
|
|
@@ -228,7 +227,7 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获取附件信息
|
|
* 获取附件信息
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param id
|
|
* @param id
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
@@ -240,7 +239,7 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 更新物料信息
|
|
* 更新物料信息
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param prodInfo
|
|
* @param prodInfo
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
@@ -255,7 +254,7 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 新增物料
|
|
* 新增物料
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param prodInfo
|
|
* @param prodInfo
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
@@ -268,7 +267,7 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获取批量上传产品的模板
|
|
* 获取批量上传产品的模板
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/upload/template", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/upload/template", method = RequestMethod.GET)
|
|
@@ -349,7 +348,7 @@ public class BaseInfoController {
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
PageParams params = new PageParams(pageInfo);
|
|
PageParams params = new PageParams(pageInfo);
|
|
|
modelAndView.addObject("data", null == keyword || "".equals(keyword) ? productService.findAllByPageInfo(pageInfo, keyword).getContent()
|
|
modelAndView.addObject("data", null == keyword || "".equals(keyword) ? productService.findAllByPageInfo(pageInfo, keyword).getContent()
|
|
|
- :getNonStandardProductInfo(params, keyword).getContent());
|
|
|
|
|
|
|
+ : getNonStandardProductInfo(params, keyword).getContent());
|
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/baseInfo/baseInfo", "非标准物料资料表"));
|
|
modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/baseInfo/baseInfo", "非标准物料资料表"));
|
|
|
logger.log("物料资料", "导出Excel列表", "导出非标准可卖产品Excel列表");
|
|
logger.log("物料资料", "导出Excel列表", "导出非标准可卖产品Excel列表");
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
@@ -357,12 +356,12 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 通过excel批量导入物料
|
|
* 通过excel批量导入物料
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param uploadItem
|
|
* @param uploadItem
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/edit/release/excel", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/edit/release/excel", method = RequestMethod.POST)
|
|
|
- public ModelMap releaseByExcel(FileUpload uploadItem) throws IOException,IllegalOperatorException {
|
|
|
|
|
|
|
+ public ModelMap releaseByExcel(FileUpload uploadItem) throws IOException, IllegalOperatorException {
|
|
|
ModelMap map = new ModelMap();
|
|
ModelMap map = new ModelMap();
|
|
|
String fileName = uploadItem.getFile().getOriginalFilename();
|
|
String fileName = uploadItem.getFile().getOriginalFilename();
|
|
|
String suffix = fileName.substring(fileName.lastIndexOf(".") + 1);
|
|
String suffix = fileName.substring(fileName.lastIndexOf(".") + 1);
|
|
@@ -380,24 +379,24 @@ public class BaseInfoController {
|
|
|
logger.log("商品批次", "[" + SystemSession.getUser().getUserName() + "]通过excel导入了物料,数量为" + map.get("success"));
|
|
logger.log("商品批次", "[" + SystemSession.getUser().getUserName() + "]通过excel导入了物料,数量为" + map.get("success"));
|
|
|
return map;
|
|
return map;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 企业列表
|
|
* 企业列表
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param params
|
|
* @param params
|
|
|
* @param keyword
|
|
* @param keyword
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
- @RequestMapping(value="/enterprise",method = RequestMethod.GET)
|
|
|
|
|
|
|
+ @RequestMapping(value = "/enterprise", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public SPage<Enterprise> getAllEnterprises(PageParams params, String keyword) {
|
|
public SPage<Enterprise> getAllEnterprises(PageParams params, String keyword) {
|
|
|
com.uas.search.b2b.model.PageParams pageParams = searchService.convertPageParams(params, null);
|
|
com.uas.search.b2b.model.PageParams pageParams = searchService.convertPageParams(params, null);
|
|
|
return searchService.searchEnterpriseCheckIds(keyword, pageParams);
|
|
return searchService.searchEnterpriseCheckIds(keyword, pageParams);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 存储平台下的采购单
|
|
* 存储平台下的采购单
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param json
|
|
* @param json
|
|
|
* @return
|
|
* @return
|
|
|
* @modify-author hejq
|
|
* @modify-author hejq
|
|
@@ -415,17 +414,17 @@ public class BaseInfoController {
|
|
|
if (neworder.getStatus().equals(Status.NOT_REPLY.value())) {
|
|
if (neworder.getStatus().equals(Status.NOT_REPLY.value())) {
|
|
|
logger.log("采购订单", "新增提交采购订单", neworder.getCode());
|
|
logger.log("采购订单", "新增提交采购订单", neworder.getCode());
|
|
|
} else if (neworder.getStatus().equals(Status.UNAUDIT.value())) {
|
|
} else if (neworder.getStatus().equals(Status.UNAUDIT.value())) {
|
|
|
- logger.log("采购订单", "新增保存采购订单", neworder.getCode());
|
|
|
|
|
|
|
+ logger.log("采购订单", "新增保存采购订单", neworder.getCode());
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
throw new IllegalOperatorException("页面数据加载异常,请刷新页面重试");
|
|
throw new IllegalOperatorException("页面数据加载异常,请刷新页面重试");
|
|
|
}
|
|
}
|
|
|
return new ResponseEntity<ModelMap>(map, HttpStatus.OK);
|
|
return new ResponseEntity<ModelMap>(map, HttpStatus.OK);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 添加为客户
|
|
* 添加为客户
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param json
|
|
* @param json
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
@@ -437,7 +436,7 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 添加为供应商
|
|
* 添加为供应商
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param json
|
|
* @param json
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
@@ -449,7 +448,7 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 跳转到企业圈
|
|
* 跳转到企业圈
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @return
|
|
* @return
|
|
|
* @throws Exception
|
|
* @throws Exception
|
|
|
*/
|
|
*/
|
|
@@ -462,7 +461,7 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 顶部通过关键词查询账户中心的相关的企业信息
|
|
* 顶部通过关键词查询账户中心的相关的企业信息
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param keyword
|
|
* @param keyword
|
|
|
* @param params
|
|
* @param params
|
|
|
* @return
|
|
* @return
|
|
@@ -504,10 +503,10 @@ public class BaseInfoController {
|
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
pageParams.getFilters().put(SearchConstants.SORT_KEY, sortList);
|
|
|
return baseInfoService.getUserSpaceDetails(pageParams, keyword);
|
|
return baseInfoService.getUserSpaceDetails(pageParams, keyword);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 顶部查询物料库所有物料
|
|
* 顶部查询物料库所有物料
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param params
|
|
* @param params
|
|
|
* @param keyword
|
|
* @param keyword
|
|
|
* @return
|
|
* @return
|
|
@@ -521,7 +520,7 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 开启关闭销售
|
|
* 开启关闭销售
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param status
|
|
* @param status
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/edit/toggle/{status}", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/edit/toggle/{status}", method = RequestMethod.POST)
|
|
@@ -543,6 +542,7 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 设置单据已读
|
|
* 设置单据已读
|
|
|
|
|
+ *
|
|
|
* @author wangmh
|
|
* @author wangmh
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/setRead", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/setRead", method = RequestMethod.POST)
|
|
@@ -553,6 +553,7 @@ public class BaseInfoController {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获得未阅读单据id
|
|
* 获得未阅读单据id
|
|
|
|
|
+ *
|
|
|
* @author wangmh
|
|
* @author wangmh
|
|
|
*/
|
|
*/
|
|
|
@RequestMapping(value = "/getUnreadIds", method = RequestMethod.GET)
|
|
@RequestMapping(value = "/getUnreadIds", method = RequestMethod.GET)
|
|
@@ -562,25 +563,4 @@ public class BaseInfoController {
|
|
|
return new ModelMap("content", list);
|
|
return new ModelMap("content", list);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// /**
|
|
|
|
|
-// * 统计未阅读单据各个状态数量
|
|
|
|
|
-// *
|
|
|
|
|
-// * @return
|
|
|
|
|
-// * @author wangmh
|
|
|
|
|
-// */
|
|
|
|
|
-// @RequestMapping(value = "/unread", method = RequestMethod.GET, headers = "Accept=application/json")
|
|
|
|
|
-// @ResponseBody
|
|
|
|
|
-// @ResponseStatus(value = HttpStatus.OK)
|
|
|
|
|
-// public ModelMap getOrderUnreadCount() {
|
|
|
|
|
-// final ModelMap modelMap = new ModelMap();
|
|
|
|
|
-// List<Object[]> list = productService.getProductCount("sale");
|
|
|
|
|
-// int all = 0;
|
|
|
|
|
-// int value;
|
|
|
|
|
-// for(Object[] objects : list){
|
|
|
|
|
-// value = Integer.valueOf(objects[0].toString());
|
|
|
|
|
-// all = all + value;
|
|
|
|
|
-// }
|
|
|
|
|
-// modelMap.put("all", all);
|
|
|
|
|
-// return modelMap;
|
|
|
|
|
-// }
|
|
|
|
|
-}
|
|
|
|
|
|
|
+}
|