Commit 5b8e7e5010a9c03cdf7f04604b101635a4b94a0f
1 parent
b8a7dbe5
修改容器导入
Showing
2 changed files
with
22 additions
and
29 deletions
.idea/workspace.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <project version="4"> | 2 | <project version="4"> |
3 | <component name="ChangeListManager"> | 3 | <component name="ChangeListManager"> |
4 | - <list default="true" id="9ff7b25e-dc1a-4859-8a0c-00039489e359" name="Default Changelist" comment=""> | 4 | + <list default="true" id="9ff7b25e-dc1a-4859-8a0c-00039489e359" name="Default Changelist" comment="添加容器导入和导出导入模板"> |
5 | + <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> | ||
5 | <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/container/controller/ContainerController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/container/controller/ContainerController.java" afterDir="false" /> | 6 | <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/container/controller/ContainerController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/container/controller/ContainerController.java" afterDir="false" /> |
6 | - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/container/domain/Container.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/container/domain/Container.java" afterDir="false" /> | ||
7 | - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/container/service/ContainerService.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/container/service/ContainerService.java" afterDir="false" /> | ||
8 | - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/container/service/ContainerServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/container/service/ContainerServiceImpl.java" afterDir="false" /> | ||
9 | - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/material/service/MaterialService.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/material/service/MaterialService.java" afterDir="false" /> | 7 | + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/controller/InventoryDetailController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/controller/InventoryDetailController.java" afterDir="false" /> |
8 | + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/shipment/shipmentContainerHeader/service/ShipmentContainerHeaderServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/shipment/shipmentContainerHeader/service/ShipmentContainerHeaderServiceImpl.java" afterDir="false" /> | ||
10 | </list> | 9 | </list> |
11 | <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> | 10 | <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> |
12 | <option name="SHOW_DIALOG" value="false" /> | 11 | <option name="SHOW_DIALOG" value="false" /> |
@@ -41,13 +40,6 @@ | @@ -41,13 +40,6 @@ | ||
41 | <item name="schemas" type="d4e8921:DatabaseStructure$FamilyGroup" /> | 40 | <item name="schemas" type="d4e8921:DatabaseStructure$FamilyGroup" /> |
42 | <item name="wms_v2: schema" type="76f4a085:MysqlImplModel$Schema" /> | 41 | <item name="wms_v2: schema" type="76f4a085:MysqlImplModel$Schema" /> |
43 | </path> | 42 | </path> |
44 | - <path> | ||
45 | - <item name="Database" type="3277223f:DatabaseStructure$DbRootGroup" /> | ||
46 | - <item name="@172.16.29.45" type="feb32156:DbDataSourceImpl" /> | ||
47 | - <item name="schemas" type="d4e8921:DatabaseStructure$FamilyGroup" /> | ||
48 | - <item name="wms_v2: schema" type="76f4a085:MysqlImplModel$Schema" /> | ||
49 | - <item name="container: table" type="285a2a93:MysqlImplModel$Table" /> | ||
50 | - </path> | ||
51 | </expand> | 43 | </expand> |
52 | <select /> | 44 | <select /> |
53 | </component> | 45 | </component> |
@@ -161,16 +153,7 @@ | @@ -161,16 +153,7 @@ | ||
161 | <serviceView> | 153 | <serviceView> |
162 | <option name="contentProportion" value="0.18875067" /> | 154 | <option name="contentProportion" value="0.18875067" /> |
163 | <treeState> | 155 | <treeState> |
164 | - <expand> | ||
165 | - <path> | ||
166 | - <item name="services root" type="e789fda9:ObjectUtils$Sentinel" /> | ||
167 | - <item name="com.intellij.execution.services.ServiceModel$ServiceGroupNode@5ef312b7" type="7427dc5b:ServiceModel$ServiceGroupNode" /> | ||
168 | - </path> | ||
169 | - <path> | ||
170 | - <item name="services root" type="e789fda9:ObjectUtils$Sentinel" /> | ||
171 | - <item name="com.intellij.execution.services.ServiceModel$ServiceGroupNode@30a7fa5f" type="7427dc5b:ServiceModel$ServiceGroupNode" /> | ||
172 | - </path> | ||
173 | - </expand> | 156 | + <expand /> |
174 | <select /> | 157 | <select /> |
175 | </treeState> | 158 | </treeState> |
176 | </serviceView> | 159 | </serviceView> |
@@ -208,7 +191,9 @@ | @@ -208,7 +191,9 @@ | ||
208 | <workItem from="1565829438280" duration="3502000" /> | 191 | <workItem from="1565829438280" duration="3502000" /> |
209 | <workItem from="1565832950552" duration="86000" /> | 192 | <workItem from="1565832950552" duration="86000" /> |
210 | <workItem from="1565833039573" duration="288000" /> | 193 | <workItem from="1565833039573" duration="288000" /> |
211 | - <workItem from="1565833342181" duration="20192000" /> | 194 | + <workItem from="1565833342181" duration="20223000" /> |
195 | + <workItem from="1565916336398" duration="4223000" /> | ||
196 | + <workItem from="1565923508645" duration="4968000" /> | ||
212 | </task> | 197 | </task> |
213 | <task id="LOCAL-00001" summary="添加库位、库位类型增删改查接口"> | 198 | <task id="LOCAL-00001" summary="添加库位、库位类型增删改查接口"> |
214 | <created>1565226427512</created> | 199 | <created>1565226427512</created> |
@@ -315,7 +300,14 @@ | @@ -315,7 +300,14 @@ | ||
315 | <option name="project" value="LOCAL" /> | 300 | <option name="project" value="LOCAL" /> |
316 | <updated>1565861068194</updated> | 301 | <updated>1565861068194</updated> |
317 | </task> | 302 | </task> |
318 | - <option name="localTasksCounter" value="16" /> | 303 | + <task id="LOCAL-00016" summary="添加容器导入和导出导入模板"> |
304 | + <created>1565863093904</created> | ||
305 | + <option name="number" value="00016" /> | ||
306 | + <option name="presentableId" value="LOCAL-00016" /> | ||
307 | + <option name="project" value="LOCAL" /> | ||
308 | + <updated>1565863093904</updated> | ||
309 | + </task> | ||
310 | + <option name="localTasksCounter" value="17" /> | ||
319 | <servers /> | 311 | <servers /> |
320 | </component> | 312 | </component> |
321 | <component name="TypeScriptGeneratedFilesManager"> | 313 | <component name="TypeScriptGeneratedFilesManager"> |
@@ -364,7 +356,8 @@ | @@ -364,7 +356,8 @@ | ||
364 | <MESSAGE value="添加物料导入、导出模板,添加Excel导入导出配置文件" /> | 356 | <MESSAGE value="添加物料导入、导出模板,添加Excel导入导出配置文件" /> |
365 | <MESSAGE value="添加承运商页面,入库单类型" /> | 357 | <MESSAGE value="添加承运商页面,入库单类型" /> |
366 | <MESSAGE value="添加导入模板列表" /> | 358 | <MESSAGE value="添加导入模板列表" /> |
367 | - <option name="LAST_COMMIT_MESSAGE" value="添加导入模板列表" /> | 359 | + <MESSAGE value="添加容器导入和导出导入模板" /> |
360 | + <option name="LAST_COMMIT_MESSAGE" value="添加容器导入和导出导入模板" /> | ||
368 | </component> | 361 | </component> |
369 | <component name="XDebuggerManager"> | 362 | <component name="XDebuggerManager"> |
370 | <breakpoint-manager> | 363 | <breakpoint-manager> |
src/main/java/com/huaheng/pc/general/container/controller/ContainerController.java
@@ -162,18 +162,18 @@ public class ContainerController extends BaseController { | @@ -162,18 +162,18 @@ public class ContainerController extends BaseController { | ||
162 | @PostMapping("/importData") | 162 | @PostMapping("/importData") |
163 | @ResponseBody | 163 | @ResponseBody |
164 | public AjaxResult importData(MultipartFile file) throws Exception { | 164 | public AjaxResult importData(MultipartFile file) throws Exception { |
165 | - ExcelUtil<Material> util = new ExcelUtil<>(Material.class); | ||
166 | - List<Material> materialList = util.importExcel(file.getInputStream()); | 165 | + ExcelUtil<Container> util = new ExcelUtil<>(Container.class); |
166 | + List<Container> containerList = util.importExcel(file.getInputStream()); | ||
167 | String operName = ShiroUtils.getLoginName(); | 167 | String operName = ShiroUtils.getLoginName(); |
168 | Boolean updateSupport = false; | 168 | Boolean updateSupport = false; |
169 | - String message = containerService.importMaterial(materialList, updateSupport, operName); | 169 | + String message = containerService.importMaterial(containerList, updateSupport, operName); |
170 | return AjaxResult.success(message); | 170 | return AjaxResult.success(message); |
171 | } | 171 | } |
172 | 172 | ||
173 | @GetMapping("/importTemplate") | 173 | @GetMapping("/importTemplate") |
174 | @ResponseBody | 174 | @ResponseBody |
175 | public AjaxResult importTemplate() { | 175 | public AjaxResult importTemplate() { |
176 | - ExcelUtil<Material> util = new ExcelUtil<>(Material.class); | 176 | + ExcelUtil<Container> util = new ExcelUtil<>(Container.class); |
177 | return util.importTemplateExcel("容器"); | 177 | return util.importTemplateExcel("容器"); |
178 | } | 178 | } |
179 | } | 179 | } |