...
|
...
|
@@ -23,9 +23,9 @@ public class SellerExcelTemplateController { |
|
|
@Resource(name = "TemplateCreators")
|
|
|
private Map<String, IExcelTemplatService> templatServiceMap;
|
|
|
|
|
|
@RequestMapping("/download")
|
|
|
@RequestMapping("/sellerDownload")
|
|
|
@ResponseBody
|
|
|
public String download(HttpServletResponse response, @RequestParam(value = "name") String name) {
|
|
|
public String sellerDownload(HttpServletResponse response, @RequestParam(value = "name") String name) {
|
|
|
if (!templatServiceMap.containsKey(name)) {
|
|
|
logger.error("can't find template name: {}", name);
|
|
|
return HttpUtil.writeErrorInfo(response, "对不起,找不到模板:" + name);
|
...
|
...
|
@@ -62,9 +62,9 @@ public class SellerExcelTemplateController { |
|
|
return msg;
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/flush")
|
|
|
@RequestMapping("/sellerFlush")
|
|
|
@ResponseBody
|
|
|
public String flush(HttpServletResponse response, @RequestParam(value = "name") String name) {
|
|
|
public String sellerFlush(HttpServletResponse response, @RequestParam(value = "name") String name) {
|
|
|
if (!templatServiceMap.containsKey(name)) {
|
|
|
logger.error("can't find template name: {}", name);
|
|
|
//return HttpUtil.writeErrorInfo(response, "刷新缓存失败,找不到模板:" + name);
|
...
|
...
|
|