Commit 5b8e7e5010a9c03cdf7f04604b101635a4b94a0f

Authored by mahuandong
1 parent b8a7dbe5

修改容器导入

.idea/workspace.xml
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <project version="4">
3 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 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 9 </list>
11 10 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
12 11 <option name="SHOW_DIALOG" value="false" />
... ... @@ -41,13 +40,6 @@
41 40 <item name="schemas" type="d4e8921:DatabaseStructure$FamilyGroup" />
42 41 <item name="wms_v2: schema" type="76f4a085:MysqlImplModel$Schema" />
43 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 43 </expand>
52 44 <select />
53 45 </component>
... ... @@ -161,16 +153,7 @@
161 153 <serviceView>
162 154 <option name="contentProportion" value="0.18875067" />
163 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 157 <select />
175 158 </treeState>
176 159 </serviceView>
... ... @@ -208,7 +191,9 @@
208 191 <workItem from="1565829438280" duration="3502000" />
209 192 <workItem from="1565832950552" duration="86000" />
210 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 197 </task>
213 198 <task id="LOCAL-00001" summary="添加库位、库位类型增删改查接口">
214 199 <created>1565226427512</created>
... ... @@ -315,7 +300,14 @@
315 300 <option name="project" value="LOCAL" />
316 301 <updated>1565861068194</updated>
317 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 311 <servers />
320 312 </component>
321 313 <component name="TypeScriptGeneratedFilesManager">
... ... @@ -364,7 +356,8 @@
364 356 <MESSAGE value="添加物料导入、导出模板,添加Excel导入导出配置文件" />
365 357 <MESSAGE value="添加承运商页面,入库单类型" />
366 358 <MESSAGE value="添加导入模板列表" />
367   - <option name="LAST_COMMIT_MESSAGE" value="添加导入模板列表" />
  359 + <MESSAGE value="添加容器导入和导出导入模板" />
  360 + <option name="LAST_COMMIT_MESSAGE" value="添加容器导入和导出导入模板" />
368 361 </component>
369 362 <component name="XDebuggerManager">
370 363 <breakpoint-manager>
... ...
src/main/java/com/huaheng/pc/general/container/controller/ContainerController.java
... ... @@ -162,18 +162,18 @@ public class ContainerController extends BaseController {
162 162 @PostMapping("/importData")
163 163 @ResponseBody
164 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 167 String operName = ShiroUtils.getLoginName();
168 168 Boolean updateSupport = false;
169   - String message = containerService.importMaterial(materialList, updateSupport, operName);
  169 + String message = containerService.importMaterial(containerList, updateSupport, operName);
170 170 return AjaxResult.success(message);
171 171 }
172 172  
173 173 @GetMapping("/importTemplate")
174 174 @ResponseBody
175 175 public AjaxResult importTemplate() {
176   - ExcelUtil<Material> util = new ExcelUtil<>(Material.class);
  176 + ExcelUtil<Container> util = new ExcelUtil<>(Container.class);
177 177 return util.importTemplateExcel("容器");
178 178 }
179 179 }
... ...