Package net.risesoft.controller
Class PrintRestController
- java.lang.Object
-
- net.risesoft.controller.PrintRestController
-
@RestController @RequestMapping(value="/vue/printTemplate", produces="application/json") public class PrintRestController extends Object- Author:
- qinman, zhangchongjie
- Date:
- 2022/12/20
-
-
Constructor Summary
Constructors Constructor Description PrintRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.risesoft.pojo.Y9Result<String>deleteBindPrintTemplate(String id)删除绑定打印模板net.risesoft.pojo.Y9Result<String>deletePrintTemplate(String id)删除打印模板voiddownload(String id, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)下载模板net.risesoft.pojo.Y9Result<List<Map<String,Object>>>getPrintTemplateList(String fileName)获取打印模板列表net.risesoft.pojo.Y9Result<List<ItemPrintTemplateBind>>getTemplateList(String itemId)获取绑定打印模板列表数据net.risesoft.pojo.Y9Result<String>saveBindTemplate(String itemId, String templateId, String templateName, String templateUrl, String templateType)保存绑定模板net.risesoft.pojo.Y9Result<String>upload(org.springframework.web.multipart.MultipartFile files)上传打印模板
-
-
-
Method Detail
-
deleteBindPrintTemplate
@PostMapping("/deleteBindPrintTemplate") public net.risesoft.pojo.Y9Result<String> deleteBindPrintTemplate(@RequestParam String id)删除绑定打印模板- Parameters:
id- 绑定id- Returns:
-
deletePrintTemplate
@PostMapping("/deletePrintTemplate") public net.risesoft.pojo.Y9Result<String> deletePrintTemplate(@RequestParam String id)删除打印模板- Parameters:
id- 模板id- Returns:
-
download
@RequestMapping("/download") public void download(@RequestParam String id, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)下载模板- Parameters:
id- 模板idresponse- 响应request- 请求
-
getPrintTemplateList
@GetMapping("/getPrintTemplateList") public net.risesoft.pojo.Y9Result<List<Map<String,Object>>> getPrintTemplateList(@RequestParam(required=false) String fileName)获取打印模板列表- Parameters:
fileName- 文件名称- Returns:
-
getTemplateList
@GetMapping("/getBindTemplateList") public net.risesoft.pojo.Y9Result<List<ItemPrintTemplateBind>> getTemplateList(@RequestParam String itemId)获取绑定打印模板列表数据- Parameters:
itemId- 事项id- Returns:
-
saveBindTemplate
@PostMapping("/saveBindTemplate") public net.risesoft.pojo.Y9Result<String> saveBindTemplate(@RequestParam String itemId, @RequestParam String templateId, @RequestParam String templateName, @RequestParam(required=false) String templateUrl, @RequestParam String templateType)保存绑定模板- Parameters:
itemId- 事项idtemplateId- 模板idtemplateName- 模板名称templateUrl- 模板urltemplateType- 模板类型- Returns:
-
upload
@PostMapping("/uploadTemplate") public net.risesoft.pojo.Y9Result<String> upload(@RequestParam org.springframework.web.multipart.MultipartFile files)上传打印模板- Parameters:
files- 文件- Returns:
-
-