Commit 7e45e7e49667d373f43342273a9cb472a1ce21f7
1 parent
8e76f9cd
修改代码,提供模糊查询项目号或者内部编号接口
Showing
3 changed files
with
0 additions
and
75 deletions
src/main/java/com/order/erp/controller/DictionaryController.java
@@ -3,8 +3,6 @@ package com.order.erp.controller; | @@ -3,8 +3,6 @@ package com.order.erp.controller; | ||
3 | import com.alibaba.excel.EasyExcel; | 3 | import com.alibaba.excel.EasyExcel; |
4 | import com.order.erp.common.annotation.AnonymousAccess; | 4 | import com.order.erp.common.annotation.AnonymousAccess; |
5 | import com.order.erp.common.constant.ServerResult; | 5 | import com.order.erp.common.constant.ServerResult; |
6 | -import com.order.erp.domain.dto.model.InnerNoModel; | ||
7 | -import com.order.erp.domain.dto.model.ProjectNoModel; | ||
8 | import com.order.erp.domain.vo.admin.DictionaryQueryVO; | 6 | import com.order.erp.domain.vo.admin.DictionaryQueryVO; |
9 | import com.order.erp.domain.vo.admin.DictionaryVO; | 7 | import com.order.erp.domain.vo.admin.DictionaryVO; |
10 | import com.order.erp.log.Log; | 8 | import com.order.erp.log.Log; |
@@ -77,33 +75,4 @@ public class DictionaryController { | @@ -77,33 +75,4 @@ public class DictionaryController { | ||
77 | return dictionaryService.deleteById(queryVO); | 75 | return dictionaryService.deleteById(queryVO); |
78 | } | 76 | } |
79 | 77 | ||
80 | - /** | ||
81 | - * @param response | ||
82 | - * @return ServerResult | ||
83 | - * @Description: 导出项目编号模板 | ||
84 | - * @Author wmr | ||
85 | - * @CreateTime 2023/12/20 11:53 | ||
86 | - */ | ||
87 | - @ApiOperation("导出项目编号模板") | ||
88 | - @PostMapping("/exportProjectNoModel") | ||
89 | - public ServerResult exportProjectNoModel(HttpServletResponse response) throws IOException, EncoderException { | ||
90 | - response.setHeader("Content-Disposition", "attachment;fileName=" + new URLCodec("UTF-8").encode("项目号导入模板.xlsx")); | ||
91 | - EasyExcel.write(response.getOutputStream(), ProjectNoModel.class).sheet("项目号导入表").doWrite(new ArrayList<>()); | ||
92 | - return ServerResult.success(); | ||
93 | - } | ||
94 | - | ||
95 | - /** | ||
96 | - * @Description: 导出内部编号模板 | ||
97 | - * @param response | ||
98 | - * @return ServerResult | ||
99 | - * @Author wmr | ||
100 | - * @CreateTime 2023/12/20 11:59 | ||
101 | - */ | ||
102 | - @ApiOperation("导出内部编号模板") | ||
103 | - @PostMapping("/exportInnerNoModel") | ||
104 | - public ServerResult exportInnerNoModel(HttpServletResponse response) throws IOException, EncoderException { | ||
105 | - response.setHeader("Content-Disposition", "attachment;fileName=" + new URLCodec("UTF-8").encode("内部编号导入模板.xlsx")); | ||
106 | - EasyExcel.write(response.getOutputStream(), InnerNoModel.class).sheet("内部编号导入表").doWrite(new ArrayList<>()); | ||
107 | - return ServerResult.success(); | ||
108 | - } | ||
109 | } | 78 | } |
110 | \ No newline at end of file | 79 | \ No newline at end of file |
src/main/java/com/order/erp/domain/dto/model/InnerNoModel.java deleted
100644 → 0
1 | -package com.order.erp.domain.dto.model; | ||
2 | - | ||
3 | -import com.alibaba.excel.annotation.ExcelProperty; | ||
4 | -import com.alibaba.excel.annotation.write.style.ColumnWidth; | ||
5 | -import lombok.AllArgsConstructor; | ||
6 | -import lombok.Data; | ||
7 | -import lombok.NoArgsConstructor; | ||
8 | - | ||
9 | -/** | ||
10 | - * Date:2023/12/20 | ||
11 | - * Author:wmr | ||
12 | - * Description:内部编号模板类 | ||
13 | - */ | ||
14 | -@Data | ||
15 | -@AllArgsConstructor | ||
16 | -@NoArgsConstructor | ||
17 | -public class InnerNoModel { | ||
18 | - @ColumnWidth(20) | ||
19 | - @ExcelProperty(value = "内部编号",index = 0) | ||
20 | - private String innerNo; | ||
21 | -} |
src/main/java/com/order/erp/domain/dto/model/ProjectNoModel.java deleted
100644 → 0
1 | -package com.order.erp.domain.dto.model; | ||
2 | - | ||
3 | -import com.alibaba.excel.annotation.ExcelProperty; | ||
4 | -import com.alibaba.excel.annotation.write.style.ColumnWidth; | ||
5 | -import lombok.AllArgsConstructor; | ||
6 | -import lombok.Data; | ||
7 | -import lombok.NoArgsConstructor; | ||
8 | - | ||
9 | -import java.io.Serializable; | ||
10 | - | ||
11 | -/** | ||
12 | - * Date:2023/12/20 | ||
13 | - * Author:wmr | ||
14 | - * Description:项目号模板 | ||
15 | - */ | ||
16 | -@Data | ||
17 | -@NoArgsConstructor | ||
18 | -@AllArgsConstructor | ||
19 | -public class ProjectNoModel implements Serializable { | ||
20 | - @ColumnWidth(20) | ||
21 | - @ExcelProperty(value = "项目号",index = 0) | ||
22 | - private String projectNo; | ||
23 | -} |