Commit d44d4329d20326dd36a97cda92592a7fbb7b6600
Merge branch 'develop' of http://172.16.29.40:8010/wms/wms2 into develop
Showing
3 changed files
with
13 additions
and
11 deletions
src/main/java/com/huaheng/pc/config/locationType/controller/LocationTypeController.java
1 | package com.huaheng.pc.config.locationType.controller; | 1 | package com.huaheng.pc.config.locationType.controller; |
2 | 2 | ||
3 | + | ||
3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 4 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | import com.baomidou.mybatisplus.core.metadata.IPage; | 5 | import com.baomidou.mybatisplus.core.metadata.IPage; |
5 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; | 6 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
@@ -14,16 +15,16 @@ import com.huaheng.framework.web.domain.AjaxResult; | @@ -14,16 +15,16 @@ import com.huaheng.framework.web.domain.AjaxResult; | ||
14 | import com.huaheng.framework.web.page.PageDomain; | 15 | import com.huaheng.framework.web.page.PageDomain; |
15 | import com.huaheng.framework.web.page.TableDataInfo; | 16 | import com.huaheng.framework.web.page.TableDataInfo; |
16 | import com.huaheng.framework.web.page.TableSupport; | 17 | import com.huaheng.framework.web.page.TableSupport; |
17 | -import com.huaheng.pc.general.location.domain.Location; | ||
18 | import com.huaheng.pc.config.locationType.domain.LocationType; | 18 | import com.huaheng.pc.config.locationType.domain.LocationType; |
19 | -import com.huaheng.pc.general.location.service.LocationService; | ||
20 | import com.huaheng.pc.config.locationType.service.LocationTypeService; | 19 | import com.huaheng.pc.config.locationType.service.LocationTypeService; |
20 | +import com.huaheng.pc.general.location.domain.Location; | ||
21 | +import com.huaheng.pc.general.location.service.LocationService; | ||
21 | import org.apache.shiro.authz.annotation.RequiresPermissions; | 22 | import org.apache.shiro.authz.annotation.RequiresPermissions; |
23 | +import org.springframework.beans.factory.annotation.Autowired; | ||
22 | import org.springframework.stereotype.Controller; | 24 | import org.springframework.stereotype.Controller; |
23 | import org.springframework.ui.ModelMap; | 25 | import org.springframework.ui.ModelMap; |
24 | import org.springframework.web.bind.annotation.*; | 26 | import org.springframework.web.bind.annotation.*; |
25 | 27 | ||
26 | -import javax.annotation.Resource; | ||
27 | import java.util.Arrays; | 28 | import java.util.Arrays; |
28 | import java.util.List; | 29 | import java.util.List; |
29 | 30 | ||
@@ -33,15 +34,16 @@ public class LocationTypeController extends BaseController { | @@ -33,15 +34,16 @@ public class LocationTypeController extends BaseController { | ||
33 | 34 | ||
34 | private String prefix = "config/locationType"; | 35 | private String prefix = "config/locationType"; |
35 | 36 | ||
36 | - @Resource | 37 | + @Autowired |
37 | private LocationTypeService locationTypeService; | 38 | private LocationTypeService locationTypeService; |
38 | - @Resource | 39 | + @Autowired |
39 | private LocationService locationService; | 40 | private LocationService locationService; |
40 | 41 | ||
41 | @RequestMapping("config:locationType:view") | 42 | @RequestMapping("config:locationType:view") |
42 | - @GetMapping | ||
43 | - public String locationType() { | ||
44 | - return prefix + "/location"; | 43 | + @GetMapping() |
44 | + public String locationType() | ||
45 | + { | ||
46 | + return prefix + "/locationType"; | ||
45 | } | 47 | } |
46 | 48 | ||
47 | /** | 49 | /** |
@@ -57,7 +59,7 @@ public class LocationTypeController extends BaseController { | @@ -57,7 +59,7 @@ public class LocationTypeController extends BaseController { | ||
57 | Integer pageNum = pageDomain.getPageNum(); | 59 | Integer pageNum = pageDomain.getPageNum(); |
58 | Integer pageSize = pageDomain.getPageSize(); | 60 | Integer pageSize = pageDomain.getPageSize(); |
59 | 61 | ||
60 | - lambdaQueryWrapper.eq(LocationType::getWarehouseCode,ShiroUtils.getWarehouseCode()); | 62 | + lambdaQueryWrapper.eq(LocationType::getWarehouseCode, ShiroUtils.getWarehouseCode()); |
61 | 63 | ||
62 | if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){ | 64 | if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){ |
63 | /** | 65 | /** |
src/main/java/com/huaheng/pc/config/zone/controller/ZoneController.java
@@ -66,7 +66,7 @@ public class ZoneController extends BaseController { | @@ -66,7 +66,7 @@ public class ZoneController extends BaseController { | ||
66 | */ | 66 | */ |
67 | Page<Zone> page = new Page<>(pageNum, pageSize); | 67 | Page<Zone> page = new Page<>(pageNum, pageSize); |
68 | IPage<Zone> iPage = zoneService.page(page, lambdaQueryWrapper); | 68 | IPage<Zone> iPage = zoneService.page(page, lambdaQueryWrapper); |
69 | - return getDataTable(iPage.getRecords()); | 69 | + return getMpDataTable(iPage.getRecords(),iPage.getTotal()); |
70 | } else { | 70 | } else { |
71 | List<Zone> list = zoneService.list(lambdaQueryWrapper); | 71 | List<Zone> list = zoneService.list(lambdaQueryWrapper); |
72 | return getDataTable(list); | 72 | return getDataTable(list); |
src/main/java/com/huaheng/pc/config/zoneCapacity/controller/ZoneCapacityController.java
@@ -73,7 +73,7 @@ public class ZoneCapacityController extends BaseController | @@ -73,7 +73,7 @@ public class ZoneCapacityController extends BaseController | ||
73 | */ | 73 | */ |
74 | Page<ZoneCapacity> page = new Page<>(pageNum, pageSize); | 74 | Page<ZoneCapacity> page = new Page<>(pageNum, pageSize); |
75 | IPage<ZoneCapacity> iPage = zoneCapacityService.page(page, lambdaQueryWrapper); | 75 | IPage<ZoneCapacity> iPage = zoneCapacityService.page(page, lambdaQueryWrapper); |
76 | - return getDataTable(iPage.getRecords()); | 76 | + return getMpDataTable(iPage.getRecords(),iPage.getTotal()); |
77 | } else { | 77 | } else { |
78 | List<ZoneCapacity> list = zoneCapacityService.list(lambdaQueryWrapper); | 78 | List<ZoneCapacity> list = zoneCapacityService.list(lambdaQueryWrapper); |
79 | return getDataTable(list); | 79 | return getDataTable(list); |