Commit bdeac1439f2a0b81223196e1572dcc47ea26c331

Authored by mahuandong
2 parents e783cec3 67d88c1b

Merge remote-tracking branch 'origin/develop' into develop

# Conflicts:
#	.idea/compiler.xml
#	.idea/workspace.xml
.idea/compiler.xml
@@ -7,11 +7,9 @@ @@ -7,11 +7,9 @@
7 <sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> 7 <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
8 <outputRelativeToContentRoot value="true" /> 8 <outputRelativeToContentRoot value="true" />
9 <module name="huaheng" /> 9 <module name="huaheng" />
  10 + <module name="WMSV1" />
10 </profile> 11 </profile>
11 </annotationProcessing> 12 </annotationProcessing>
12 - <bytecodeTargetLevel>  
13 - <module name="WMSV1" target="1.8" />  
14 - </bytecodeTargetLevel>  
15 </component> 13 </component>
16 <component name="JavacSettings"> 14 <component name="JavacSettings">
17 <option name="ADDITIONAL_OPTIONS_OVERRIDE"> 15 <option name="ADDITIONAL_OPTIONS_OVERRIDE">
.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="">  
5 - <change afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/material/controller/MaterialController.java" afterDir="false" /> 4 + <list default="true" id="29079676-ace5-434e-89a2-76a325e744a5" name="Default Changelist" comment="">
  5 + <change afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/framework/config/MybatisPlusConfig.java" afterDir="false" />
6 <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> 6 <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
7 - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/material/domain/Material.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/material/domain/Material.java" afterDir="false" />  
8 - <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" />  
9 - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/material/service/MaterialServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/material/service/MaterialServiceImpl.java" afterDir="false" />  
10 - <change beforePath="$PROJECT_DIR$/src/main/resources/templates/general/location/add.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/general/location/add.html" afterDir="false" /> 7 + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/framework/web/controller/BaseController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/framework/web/controller/BaseController.java" afterDir="false" />
  8 + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/zoneCapacity/service/ZoneCapacityServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/zoneCapacity/service/ZoneCapacityServiceImpl.java" afterDir="false" />
  9 + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/company/controller/CompanyController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/company/controller/CompanyController.java" afterDir="false" />
  10 + <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" />
  11 + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/customer/controller/CustomerController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/customer/controller/CustomerController.java" afterDir="false" />
  12 + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/location/controller/LocationController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/location/controller/LocationController.java" afterDir="false" />
  13 + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/location/domain/Location.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/location/domain/Location.java" afterDir="false" />
  14 + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/location/service/LocationServiceImpl.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/location/service/LocationServiceImpl.java" afterDir="false" />
  15 + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/supplier/controller/SupplierController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/supplier/controller/SupplierController.java" afterDir="false" />
  16 + <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/warehouse/controller/WareHouseController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/warehouse/controller/WareHouseController.java" afterDir="false" />
  17 + <change beforePath="$PROJECT_DIR$/src/main/resources/templates/general/location/addBatch.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/general/location/addBatch.html" afterDir="false" />
11 <change beforePath="$PROJECT_DIR$/src/main/resources/templates/general/location/location.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/general/location/location.html" afterDir="false" /> 18 <change beforePath="$PROJECT_DIR$/src/main/resources/templates/general/location/location.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/general/location/location.html" afterDir="false" />
12 </list> 19 </list>
13 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 20 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -17,13 +24,13 @@ @@ -17,13 +24,13 @@
17 <option name="LAST_RESOLUTION" value="IGNORE" /> 24 <option name="LAST_RESOLUTION" value="IGNORE" />
18 </component> 25 </component>
19 <component name="DatabaseView"> 26 <component name="DatabaseView">
20 - <option name="SHOW_INTERMEDIATE" value="true" /> 27 + <option name="SHOW_INTERMEDIATE" value="false" />
21 <option name="GROUP_DATA_SOURCES" value="true" /> 28 <option name="GROUP_DATA_SOURCES" value="true" />
22 <option name="GROUP_SCHEMA" value="true" /> 29 <option name="GROUP_SCHEMA" value="true" />
23 <option name="GROUP_CONTENTS" value="false" /> 30 <option name="GROUP_CONTENTS" value="false" />
24 <option name="SORT_POSITIONED" value="false" /> 31 <option name="SORT_POSITIONED" value="false" />
25 <option name="SHOW_EMPTY_GROUPS" value="false" /> 32 <option name="SHOW_EMPTY_GROUPS" value="false" />
26 - <option name="AUTO_SCROLL_FROM_SOURCE" value="false" /> 33 + <option name="AUTO_SCROLL_FROM_SOURCE" value="true" />
27 <option name="HIDDEN_KINDS"> 34 <option name="HIDDEN_KINDS">
28 <set /> 35 <set />
29 </option> 36 </option>
@@ -48,15 +55,50 @@ @@ -48,15 +55,50 @@
48 <item name="@172.16.29.45" type="feb32156:DbDataSourceImpl" /> 55 <item name="@172.16.29.45" type="feb32156:DbDataSourceImpl" />
49 <item name="schemas" type="d4e8921:DatabaseStructure$FamilyGroup" /> 56 <item name="schemas" type="d4e8921:DatabaseStructure$FamilyGroup" />
50 <item name="wms_v2: schema" type="76f4a085:MysqlImplModel$Schema" /> 57 <item name="wms_v2: schema" type="76f4a085:MysqlImplModel$Schema" />
51 - <item name="material: table" type="285a2a93:MysqlImplModel$Table" /> 58 + <item name="location: table" type="285a2a93:MysqlImplModel$Table" />
52 </path> 59 </path>
53 </expand> 60 </expand>
54 <select /> 61 <select />
55 </component> 62 </component>
  63 + <component name="FileEditorManager">
  64 + <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
  65 + <file pinned="false" current-in-tab="false">
  66 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/system/user/controller/UserController.java">
  67 + <provider selected="true" editor-type-id="text-editor">
  68 + <state relative-caret-position="70">
  69 + <caret line="124" column="57" selection-start-line="124" selection-start-column="38" selection-end-line="124" selection-end-column="57" />
  70 + </state>
  71 + </provider>
  72 + </entry>
  73 + </file>
  74 + <file pinned="false" current-in-tab="true">
  75 + <entry file="file://$PROJECT_DIR$/src/main/resources/templates/system/user/edit.html">
  76 + <provider selected="true" editor-type-id="text-editor">
  77 + <state relative-caret-position="171">
  78 + <caret line="69" column="65" lean-forward="true" selection-start-line="69" selection-start-column="65" selection-end-line="69" selection-end-column="65" />
  79 + </state>
  80 + </provider>
  81 + </entry>
  82 + </file>
  83 + <file pinned="false" current-in-tab="false">
  84 + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/company/service/CompanyServiceImpl.java">
  85 + <provider selected="true" editor-type-id="text-editor">
  86 + <state relative-caret-position="193">
  87 + <caret line="87" column="77" selection-start-line="87" selection-start-column="61" selection-end-line="87" selection-end-column="77" />
  88 + </state>
  89 + </provider>
  90 + </entry>
  91 + </file>
  92 + <file pinned="false" current-in-tab="false">
  93 + <entry file="file://$PROJECT_DIR$/src/main/resources/templates/system/user/add.html">
  94 + <provider selected="true" editor-type-id="text-editor" />
  95 + </entry>
  96 + </file>
  97 + </leaf>
  98 + </component>
56 <component name="FileTemplateManagerImpl"> 99 <component name="FileTemplateManagerImpl">
57 <option name="RECENT_TEMPLATES"> 100 <option name="RECENT_TEMPLATES">
58 <list> 101 <list>
59 - <option value="Interface" />  
60 <option value="Class" /> 102 <option value="Class" />
61 </list> 103 </list>
62 </option> 104 </option>
@@ -65,35 +107,174 @@ @@ -65,35 +107,174 @@
65 <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" /> 107 <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
66 <option name="RECENT_BRANCH_BY_REPOSITORY"> 108 <option name="RECENT_BRANCH_BY_REPOSITORY">
67 <map> 109 <map>
68 - <entry key="$PROJECT_DIR$" value="developMain" /> 110 + <entry key="$PROJECT_DIR$" value="master" />
69 </map> 111 </map>
70 </option> 112 </option>
71 - <option name="RESET_MODE" value="HARD" />  
72 </component> 113 </component>
73 <component name="IgnoredFileRootStore"> 114 <component name="IgnoredFileRootStore">
74 <option name="generatedRoots"> 115 <option name="generatedRoots">
75 <set> 116 <set>
76 - <option value="C:\Users\Administrator\IdeaProjects\wms2\.idea" /> 117 + <option value="E:\code\wms2\.idea" />
77 </set> 118 </set>
78 </option> 119 </option>
79 </component> 120 </component>
80 - <component name="MavenImportPreferences">  
81 - <option name="importingSettings">  
82 - <MavenImportingSettings>  
83 - <option name="importAutomatically" value="true" />  
84 - </MavenImportingSettings>  
85 - </option>  
86 - </component>  
87 <component name="ProjectFrameBounds" extendedState="6"> 121 <component name="ProjectFrameBounds" extendedState="6">
88 - <option name="x" value="-9" />  
89 - <option name="y" value="-9" />  
90 - <option name="width" value="1938" />  
91 - <option name="height" value="1048" /> 122 + <option name="x" value="470" />
  123 + <option name="width" value="980" />
  124 + <option name="height" value="1030" />
92 </component> 125 </component>
93 - <component name="ProjectId" id="1P2xIFeseJehotA5kuRjbIbfKQa" /> 126 + <component name="ProjectId" id="1P5Ngjh73HToCarlEZkqMxrL7pm" />
94 <component name="ProjectLevelVcsManager"> 127 <component name="ProjectLevelVcsManager">
95 <ConfirmationsSetting value="2" id="Add" /> 128 <ConfirmationsSetting value="2" id="Add" />
96 </component> 129 </component>
  130 + <component name="ProjectView">
  131 + <navigator proportions="" version="1">
  132 + <foldersAlwaysOnTop value="true" />
  133 + </navigator>
  134 + <panes>
  135 + <pane id="PackagesPane" />
  136 + <pane id="Scope" />
  137 + <pane id="ProjectPane">
  138 + <subPane>
  139 + <expand>
  140 + <path>
  141 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  142 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  143 + </path>
  144 + <path>
  145 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  146 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  147 + <item name="src" type="462c0819:PsiDirectoryNode" />
  148 + </path>
  149 + <path>
  150 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  151 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  152 + <item name="src" type="462c0819:PsiDirectoryNode" />
  153 + <item name="main" type="462c0819:PsiDirectoryNode" />
  154 + </path>
  155 + <path>
  156 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  157 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  158 + <item name="src" type="462c0819:PsiDirectoryNode" />
  159 + <item name="main" type="462c0819:PsiDirectoryNode" />
  160 + <item name="java" type="462c0819:PsiDirectoryNode" />
  161 + </path>
  162 + <path>
  163 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  164 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  165 + <item name="src" type="462c0819:PsiDirectoryNode" />
  166 + <item name="main" type="462c0819:PsiDirectoryNode" />
  167 + <item name="java" type="462c0819:PsiDirectoryNode" />
  168 + <item name="com" type="462c0819:PsiDirectoryNode" />
  169 + </path>
  170 + <path>
  171 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  172 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  173 + <item name="src" type="462c0819:PsiDirectoryNode" />
  174 + <item name="main" type="462c0819:PsiDirectoryNode" />
  175 + <item name="java" type="462c0819:PsiDirectoryNode" />
  176 + <item name="com" type="462c0819:PsiDirectoryNode" />
  177 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  178 + </path>
  179 + <path>
  180 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  181 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  182 + <item name="src" type="462c0819:PsiDirectoryNode" />
  183 + <item name="main" type="462c0819:PsiDirectoryNode" />
  184 + <item name="java" type="462c0819:PsiDirectoryNode" />
  185 + <item name="com" type="462c0819:PsiDirectoryNode" />
  186 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  187 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  188 + </path>
  189 + <path>
  190 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  191 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  192 + <item name="src" type="462c0819:PsiDirectoryNode" />
  193 + <item name="main" type="462c0819:PsiDirectoryNode" />
  194 + <item name="java" type="462c0819:PsiDirectoryNode" />
  195 + <item name="com" type="462c0819:PsiDirectoryNode" />
  196 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  197 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  198 + <item name="system" type="462c0819:PsiDirectoryNode" />
  199 + </path>
  200 + <path>
  201 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  202 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  203 + <item name="src" type="462c0819:PsiDirectoryNode" />
  204 + <item name="main" type="462c0819:PsiDirectoryNode" />
  205 + <item name="java" type="462c0819:PsiDirectoryNode" />
  206 + <item name="com" type="462c0819:PsiDirectoryNode" />
  207 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  208 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  209 + <item name="system" type="462c0819:PsiDirectoryNode" />
  210 + <item name="user" type="462c0819:PsiDirectoryNode" />
  211 + </path>
  212 + <path>
  213 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  214 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  215 + <item name="src" type="462c0819:PsiDirectoryNode" />
  216 + <item name="main" type="462c0819:PsiDirectoryNode" />
  217 + <item name="java" type="462c0819:PsiDirectoryNode" />
  218 + <item name="com" type="462c0819:PsiDirectoryNode" />
  219 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  220 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  221 + <item name="system" type="462c0819:PsiDirectoryNode" />
  222 + <item name="user" type="462c0819:PsiDirectoryNode" />
  223 + <item name="controller" type="462c0819:PsiDirectoryNode" />
  224 + </path>
  225 + <path>
  226 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  227 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  228 + <item name="src" type="462c0819:PsiDirectoryNode" />
  229 + <item name="main" type="462c0819:PsiDirectoryNode" />
  230 + <item name="java" type="462c0819:PsiDirectoryNode" />
  231 + <item name="com" type="462c0819:PsiDirectoryNode" />
  232 + <item name="huaheng" type="462c0819:PsiDirectoryNode" />
  233 + <item name="pc" type="462c0819:PsiDirectoryNode" />
  234 + <item name="system" type="462c0819:PsiDirectoryNode" />
  235 + <item name="user" type="462c0819:PsiDirectoryNode" />
  236 + <item name="domain" type="462c0819:PsiDirectoryNode" />
  237 + </path>
  238 + <path>
  239 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  240 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  241 + <item name="src" type="462c0819:PsiDirectoryNode" />
  242 + <item name="main" type="462c0819:PsiDirectoryNode" />
  243 + <item name="resources" type="462c0819:PsiDirectoryNode" />
  244 + </path>
  245 + <path>
  246 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  247 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  248 + <item name="src" type="462c0819:PsiDirectoryNode" />
  249 + <item name="main" type="462c0819:PsiDirectoryNode" />
  250 + <item name="resources" type="462c0819:PsiDirectoryNode" />
  251 + <item name="templates" type="462c0819:PsiDirectoryNode" />
  252 + </path>
  253 + <path>
  254 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  255 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  256 + <item name="src" type="462c0819:PsiDirectoryNode" />
  257 + <item name="main" type="462c0819:PsiDirectoryNode" />
  258 + <item name="resources" type="462c0819:PsiDirectoryNode" />
  259 + <item name="templates" type="462c0819:PsiDirectoryNode" />
  260 + <item name="system" type="462c0819:PsiDirectoryNode" />
  261 + </path>
  262 + <path>
  263 + <item name="wms2" type="b2602c69:ProjectViewProjectNode" />
  264 + <item name="wms2" type="462c0819:PsiDirectoryNode" />
  265 + <item name="src" type="462c0819:PsiDirectoryNode" />
  266 + <item name="main" type="462c0819:PsiDirectoryNode" />
  267 + <item name="resources" type="462c0819:PsiDirectoryNode" />
  268 + <item name="templates" type="462c0819:PsiDirectoryNode" />
  269 + <item name="system" type="462c0819:PsiDirectoryNode" />
  270 + <item name="user" type="462c0819:PsiDirectoryNode" />
  271 + </path>
  272 + </expand>
  273 + <select />
  274 + </subPane>
  275 + </pane>
  276 + </panes>
  277 + </component>
97 <component name="PropertiesComponent"> 278 <component name="PropertiesComponent">
98 <property name="ASKED_ADD_EXTERNAL_FILES" value="true" /> 279 <property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
99 <property name="DatabaseDriversLRU" value="mysql" /> 280 <property name="DatabaseDriversLRU" value="mysql" />
@@ -104,34 +285,22 @@ @@ -104,34 +285,22 @@
104 <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" /> 285 <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
105 <property name="WebServerToolWindowFactoryState" value="false" /> 286 <property name="WebServerToolWindowFactoryState" value="false" />
106 <property name="aspect.path.notification.shown" value="true" /> 287 <property name="aspect.path.notification.shown" value="true" />
107 - <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1565255020864" />  
108 - <property name="database.console.LAST_STATE" value="true" />  
109 - <property name="last_opened_file_path" value="$PROJECT_DIR$/../WMSV1" /> 288 + <property name="last_opened_file_path" value="$PROJECT_DIR$/src/main/resources/mybatis" />
110 <property name="node.js.detected.package.eslint" value="true" /> 289 <property name="node.js.detected.package.eslint" value="true" />
  290 + <property name="node.js.detected.package.tslint" value="true" />
111 <property name="node.js.path.for.package.eslint" value="project" /> 291 <property name="node.js.path.for.package.eslint" value="project" />
112 <property name="node.js.path.for.package.tslint" value="project" /> 292 <property name="node.js.path.for.package.tslint" value="project" />
113 <property name="node.js.selected.package.eslint" value="(autodetect)" /> 293 <property name="node.js.selected.package.eslint" value="(autodetect)" />
114 <property name="node.js.selected.package.tslint" value="(autodetect)" /> 294 <property name="node.js.selected.package.tslint" value="(autodetect)" />
115 - <property name="project.structure.last.edited" value="Modules" />  
116 - <property name="project.structure.proportion" value="0.15" />  
117 - <property name="project.structure.side.proportion" value="0.2" />  
118 <property name="settings.editor.selected.configurable" value="preferences.pluginManager" /> 295 <property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
119 </component> 296 </component>
120 <component name="RecentsManager"> 297 <component name="RecentsManager">
121 - <key name="CopyClassDialog.RECENTS_KEY">  
122 - <recent name="com.huaheng.pc.config.zoneCapacity.controller" />  
123 - </key>  
124 - <key name="CopyFile.RECENT_KEYS">  
125 - <recent name="C:\Users\Administrator\IdeaProjects\wms2\src\main\resources\mybatis\config" />  
126 - <recent name="C:\Users\Administrator\IdeaProjects\wms2\src\main\java\com\huaheng\pc\config" /> 298 + <key name="MoveFile.RECENT_KEYS">
  299 + <recent name="E:\code\wms2\src\main\resources\mybatis\general" />
  300 + <recent name="E:\code\wms2\src\main\resources\mybatis\config" />
127 </key> 301 </key>
128 </component> 302 </component>
129 <component name="RunDashboard"> 303 <component name="RunDashboard">
130 - <option name="configurationTypes">  
131 - <set>  
132 - <option value="SpringBootApplicationConfigurationType" />  
133 - </set>  
134 - </option>  
135 <option name="ruleStates"> 304 <option name="ruleStates">
136 <list> 305 <list>
137 <RuleState> 306 <RuleState>
@@ -144,11 +313,9 @@ @@ -144,11 +313,9 @@
144 </option> 313 </option>
145 </component> 314 </component>
146 <component name="RunManager"> 315 <component name="RunManager">
147 - <configuration name="HuaHengApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" activateToolWindowBeforeRun="false" singleton="false" nameIsGenerated="true">  
148 - <module name="huaheng" /> 316 + <configuration name="HuaHengApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
  317 + <module name="WMSV1" />
149 <option name="SPRING_BOOT_MAIN_CLASS" value="com.huaheng.HuaHengApplication" /> 318 <option name="SPRING_BOOT_MAIN_CLASS" value="com.huaheng.HuaHengApplication" />
150 - <option name="DEBUG_MODE" value="true" />  
151 - <option name="HIDE_BANNER" value="true" />  
152 <option name="ALTERNATIVE_JRE_PATH" /> 319 <option name="ALTERNATIVE_JRE_PATH" />
153 <option name="UPDATE_ACTION_UPDATE_POLICY" value="UpdateClassesAndResources" /> 320 <option name="UPDATE_ACTION_UPDATE_POLICY" value="UpdateClassesAndResources" />
154 <option name="FRAME_DEACTIVATION_UPDATE_POLICY" value="UpdateClassesAndResources" /> 321 <option name="FRAME_DEACTIVATION_UPDATE_POLICY" value="UpdateClassesAndResources" />
@@ -156,14 +323,10 @@ @@ -156,14 +323,10 @@
156 <option name="Make" enabled="true" /> 323 <option name="Make" enabled="true" />
157 </method> 324 </method>
158 </configuration> 325 </configuration>
159 - <configuration default="true" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" activateToolWindowBeforeRun="false">  
160 - <module name="huaheng" /> 326 + <configuration default="true" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
  327 + <module name="WMSV1" />
161 <option name="SPRING_BOOT_MAIN_CLASS" value="com.huaheng.HuaHengApplication" /> 328 <option name="SPRING_BOOT_MAIN_CLASS" value="com.huaheng.HuaHengApplication" />
162 - <option name="DEBUG_MODE" value="true" />  
163 - <option name="HIDE_BANNER" value="true" />  
164 <option name="ALTERNATIVE_JRE_PATH" /> 329 <option name="ALTERNATIVE_JRE_PATH" />
165 - <option name="UPDATE_ACTION_UPDATE_POLICY" value="UpdateClassesAndResources" />  
166 - <option name="FRAME_DEACTIVATION_UPDATE_POLICY" value="UpdateClassesAndResources" />  
167 <method v="2"> 330 <method v="2">
168 <option name="Make" enabled="true" /> 331 <option name="Make" enabled="true" />
169 </method> 332 </method>
@@ -172,120 +335,108 @@ @@ -172,120 +335,108 @@
172 <component name="ServiceViewManager"> 335 <component name="ServiceViewManager">
173 <option name="allServicesViewState"> 336 <option name="allServicesViewState">
174 <serviceView> 337 <serviceView>
175 - <option name="contentProportion" value="0.17955652" />  
176 <treeState> 338 <treeState>
177 - <expand /> 339 + <expand>
  340 + <path>
  341 + <item name="services root" type="e789fda9:ObjectUtils$Sentinel" />
  342 + <item name="com.intellij.execution.services.ServiceModel$ServiceGroupNode@fe9f505" type="7427dc5b:ServiceModel$ServiceGroupNode" />
  343 + </path>
  344 + </expand>
178 <select /> 345 <select />
179 </treeState> 346 </treeState>
180 - <option name="groupByContributor" value="true" />  
181 </serviceView> 347 </serviceView>
182 </option> 348 </option>
183 - <option name="selectedView" value="0" />  
184 - </component>  
185 - <component name="StructureViewFactory">  
186 - <option name="ACTIVE_ACTIONS" value=",SHOW_PROPERTIES,SHOW_ANONYMOUS,SHOW_LAMBDA,SHOW_INTERFACES,VISIBILITY_SORTER" />  
187 </component> 349 </component>
188 <component name="SvnConfiguration"> 350 <component name="SvnConfiguration">
189 <configuration /> 351 <configuration />
190 </component> 352 </component>
191 <component name="TaskManager"> 353 <component name="TaskManager">
192 <task active="true" id="Default" summary="Default task"> 354 <task active="true" id="Default" summary="Default task">
193 - <changelist id="9ff7b25e-dc1a-4859-8a0c-00039489e359" name="Default Changelist" comment="" />  
194 - <created>1563950700252</created> 355 + <changelist id="29079676-ace5-434e-89a2-76a325e744a5" name="Default Changelist" comment="" />
  356 + <created>1565160110910</created>
195 <option name="number" value="Default" /> 357 <option name="number" value="Default" />
196 <option name="presentableId" value="Default" /> 358 <option name="presentableId" value="Default" />
197 - <updated>1563950700252</updated>  
198 - <workItem from="1563950701881" duration="73000" />  
199 - <workItem from="1565055472980" duration="9734000" />  
200 - <workItem from="1565078101170" duration="2642000" />  
201 - <workItem from="1565080771601" duration="951000" />  
202 - <workItem from="1565082117731" duration="348000" />  
203 - <workItem from="1565085916295" duration="323000" />  
204 - <workItem from="1565087331641" duration="170000" />  
205 - <workItem from="1565138504203" duration="3006000" />  
206 - <workItem from="1565162212626" duration="6726000" />  
207 - <workItem from="1565169755725" duration="2857000" />  
208 - <workItem from="1565242132637" duration="963000" />  
209 - <workItem from="1565244881255" duration="620000" />  
210 - <workItem from="1565245587599" duration="32000" />  
211 - <workItem from="1565245636976" duration="7465000" />  
212 - <workItem from="1565336358595" duration="3615000" />  
213 - <workItem from="1565339991037" duration="87000" />  
214 - <workItem from="1565340093097" duration="3717000" /> 359 + <updated>1565160110910</updated>
  360 + <workItem from="1565160112236" duration="11971000" />
  361 + <workItem from="1565224833241" duration="14642000" />
  362 + <workItem from="1565242153135" duration="1476000" />
  363 + <workItem from="1565259513116" duration="148000" />
  364 + <workItem from="1565311988064" duration="7176000" />
  365 + <workItem from="1565328536669" duration="797000" />
215 </task> 366 </task>
216 - <task id="LOCAL-00001" summary="用户查询修改">  
217 - <created>1565058322310</created> 367 + <task id="LOCAL-00001" summary="添加库位、库位类型增删改查接口">
  368 + <created>1565226427512</created>
218 <option name="number" value="00001" /> 369 <option name="number" value="00001" />
219 <option name="presentableId" value="LOCAL-00001" /> 370 <option name="presentableId" value="LOCAL-00001" />
220 <option name="project" value="LOCAL" /> 371 <option name="project" value="LOCAL" />
221 - <updated>1565058322310</updated> 372 + <updated>1565226427512</updated>
222 </task> 373 </task>
223 - <task id="LOCAL-00002" summary="库区设置编辑">  
224 - <created>1565075790786</created> 374 + <task id="LOCAL-00002" summary="添加入库、出库表实体类&#10;添加客户、供应商增删改查接口&#10;添加库位、容器、供应商页面">
  375 + <created>1565256884822</created>
225 <option name="number" value="00002" /> 376 <option name="number" value="00002" />
226 <option name="presentableId" value="LOCAL-00002" /> 377 <option name="presentableId" value="LOCAL-00002" />
227 <option name="project" value="LOCAL" /> 378 <option name="project" value="LOCAL" />
228 - <updated>1565075790786</updated> 379 + <updated>1565256884822</updated>
229 </task> 380 </task>
230 - <task id="LOCAL-00003" summary="库区设置编辑">  
231 - <created>1565075857018</created> 381 + <task id="LOCAL-00003" summary="修改库区service">
  382 + <created>1565259481656</created>
232 <option name="number" value="00003" /> 383 <option name="number" value="00003" />
233 <option name="presentableId" value="LOCAL-00003" /> 384 <option name="presentableId" value="LOCAL-00003" />
234 <option name="project" value="LOCAL" /> 385 <option name="project" value="LOCAL" />
235 - <updated>1565075857018</updated> 386 + <updated>1565259481656</updated>
236 </task> 387 </task>
237 - <task id="LOCAL-00004" summary="库区设置编辑">  
238 - <created>1565075883212</created> 388 + <task id="LOCAL-00004" summary="Merge branch 'develop' of http://172.16.29.40:8010/wms/wms2 into develop&#10;&#10;# Conflicts:&#10;#&#9;.idea/workspace.xml">
  389 + <created>1565342188814</created>
239 <option name="number" value="00004" /> 390 <option name="number" value="00004" />
240 <option name="presentableId" value="LOCAL-00004" /> 391 <option name="presentableId" value="LOCAL-00004" />
241 <option name="project" value="LOCAL" /> 392 <option name="project" value="LOCAL" />
242 - <updated>1565075883212</updated>  
243 - </task>  
244 - <task id="LOCAL-00005" summary="库区设置编辑">  
245 - <created>1565075915322</created>  
246 - <option name="number" value="00005" />  
247 - <option name="presentableId" value="LOCAL-00005" />  
248 - <option name="project" value="LOCAL" />  
249 - <updated>1565075915322</updated> 393 + <updated>1565342188814</updated>
250 </task> 394 </task>
251 - <task id="LOCAL-00006" summary="回退">  
252 - <created>1565081123490</created>  
253 - <option name="number" value="00006" />  
254 - <option name="presentableId" value="LOCAL-00006" />  
255 - <option name="project" value="LOCAL" />  
256 - <updated>1565081123490</updated>  
257 - </task>  
258 - <task id="LOCAL-00007" summary="zone修改">  
259 - <created>1565172969186</created>  
260 - <option name="number" value="00007" />  
261 - <option name="presentableId" value="LOCAL-00007" />  
262 - <option name="project" value="LOCAL" />  
263 - <updated>1565172969186</updated>  
264 - </task>  
265 - <task id="LOCAL-00008" summary="回退">  
266 - <created>1565332810976</created>  
267 - <option name="number" value="00008" />  
268 - <option name="presentableId" value="LOCAL-00008" />  
269 - <option name="project" value="LOCAL" />  
270 - <updated>1565332810976</updated>  
271 - </task>  
272 - <task id="LOCAL-00009" summary="修改表格分页获取总记录数">  
273 - <created>1565335994460</created>  
274 - <option name="number" value="00009" />  
275 - <option name="presentableId" value="LOCAL-00009" />  
276 - <option name="project" value="LOCAL" />  
277 - <updated>1565335994460</updated>  
278 - </task>  
279 - <task id="LOCAL-00010" summary="git忽略">  
280 - <created>1565336618584</created>  
281 - <option name="number" value="00010" />  
282 - <option name="presentableId" value="LOCAL-00010" />  
283 - <option name="project" value="LOCAL" />  
284 - <updated>1565336618584</updated>  
285 - </task>  
286 - <option name="localTasksCounter" value="11" /> 395 + <option name="localTasksCounter" value="5" />
287 <servers /> 396 <servers />
288 </component> 397 </component>
  398 + <component name="TimeTrackingManager">
  399 + <option name="totallyTimeSpent" value="893000" />
  400 + </component>
  401 + <component name="ToolWindowManager">
  402 + <frame x="-7" y="-7" width="1550" height="838" extended-state="6" />
  403 + <editor active="true" />
  404 + <layout>
  405 + <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2533512" />
  406 + <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
  407 + <window_info id="Designer" order="2" />
  408 + <window_info id="Image Layers" order="3" />
  409 + <window_info id="Capture Tool" order="4" />
  410 + <window_info id="UI Designer" order="5" />
  411 + <window_info id="Favorites" order="6" side_tool="true" />
  412 + <window_info id="Web" order="7" side_tool="true" />
  413 + <window_info anchor="bottom" id="Message" order="0" />
  414 + <window_info anchor="bottom" id="Find" order="1" />
  415 + <window_info anchor="bottom" id="Run" order="2" weight="0.25212464" />
  416 + <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
  417 + <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
  418 + <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
  419 + <window_info anchor="bottom" id="TODO" order="6" weight="0.3286119" />
  420 + <window_info anchor="bottom" id="Spring" order="7" weight="0.3286119" />
  421 + <window_info anchor="bottom" id="Terminal" order="8" weight="0.3286119" />
  422 + <window_info anchor="bottom" id="Docker" order="9" show_stripe_button="false" />
  423 + <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
  424 + <window_info anchor="bottom" id="Messages" order="11" />
  425 + <window_info anchor="bottom" id="Java Enterprise" order="12" weight="0.3286119" />
  426 + <window_info anchor="bottom" id="Database Changes" order="13" weight="0.3286119" />
  427 + <window_info active="true" anchor="bottom" id="Version Control" order="14" visible="true" weight="0.42351276" />
  428 + <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
  429 + <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
  430 + <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
  431 + <window_info anchor="right" id="Maven" order="3" weight="0.3297587" />
  432 + <window_info anchor="right" id="Palette" order="4" />
  433 + <window_info anchor="right" id="Capture Analysis" order="5" />
  434 + <window_info anchor="right" id="Database" order="6" />
  435 + <window_info anchor="right" id="Palette&#9;" order="7" />
  436 + <window_info anchor="right" id="Theme Preview" order="8" />
  437 + <window_info anchor="right" id="Bean Validation" order="9" />
  438 + </layout>
  439 + </component>
289 <component name="TypeScriptGeneratedFilesManager"> 440 <component name="TypeScriptGeneratedFilesManager">
290 <option name="version" value="1" /> 441 <option name="version" value="1" />
291 </component> 442 </component>
@@ -295,16 +446,11 @@ @@ -295,16 +446,11 @@
295 <entry key="MAIN"> 446 <entry key="MAIN">
296 <value> 447 <value>
297 <State> 448 <State>
298 - <option name="FILTERS">  
299 - <map>  
300 - <entry key="branch">  
301 - <value>  
302 - <list>  
303 - <option value="origin/develop" />  
304 - </list>  
305 - </value>  
306 - </entry>  
307 - </map> 449 + <option name="RECENTLY_FILTERED_USER_GROUPS">
  450 + <collection />
  451 + </option>
  452 + <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
  453 + <collection />
308 </option> 454 </option>
309 <option name="COLUMN_ORDER" /> 455 <option name="COLUMN_ORDER" />
310 </State> 456 </State>
@@ -316,46 +462,22 @@ @@ -316,46 +462,22 @@
316 <map> 462 <map>
317 <entry key="Branch"> 463 <entry key="Branch">
318 <value> 464 <value>
319 - <list>  
320 - <RecentGroup>  
321 - <option name="FILTER_VALUES">  
322 - <option value="origin/develop" />  
323 - </option>  
324 - </RecentGroup>  
325 - </list> 465 + <list />
  466 + </value>
  467 + </entry>
  468 + <entry key="User">
  469 + <value>
  470 + <list />
326 </value> 471 </value>
327 </entry> 472 </entry>
328 </map> 473 </map>
329 </option> 474 </option>
330 </component> 475 </component>
331 <component name="VcsManagerConfiguration"> 476 <component name="VcsManagerConfiguration">
332 - <option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />  
333 - <MESSAGE value="用户查询修改" />  
334 - <MESSAGE value="库区设置编辑" />  
335 - <MESSAGE value="zone修改" />  
336 - <MESSAGE value="回退" />  
337 - <MESSAGE value="修改表格分页获取总记录数" />  
338 - <MESSAGE value="git忽略" />  
339 - <option name="LAST_COMMIT_MESSAGE" value="git忽略" />  
340 - </component>  
341 - <component name="XDebuggerManager">  
342 - <breakpoint-manager>  
343 - <breakpoints>  
344 - <line-breakpoint enabled="true" type="java-line">  
345 - <url>file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/zone/controller/ZoneController.java</url>  
346 - <line>52</line>  
347 - <option name="timeStamp" value="11" />  
348 - </line-breakpoint>  
349 - <line-breakpoint enabled="true" type="java-line">  
350 - <url>file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/locationType/service/LocationTypeServiceImpl.java</url>  
351 - <line>21</line>  
352 - <option name="timeStamp" value="14" />  
353 - </line-breakpoint>  
354 - </breakpoints>  
355 - </breakpoint-manager>  
356 - </component>  
357 - <component name="antWorkspaceConfiguration">  
358 - <option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />  
359 - <option name="FILTER_TARGETS" value="false" /> 477 + <MESSAGE value="添加库位、库位类型增删改查接口" />
  478 + <MESSAGE value="添加入库、出库表实体类&#10;添加客户、供应商增删改查接口&#10;添加库位、容器、供应商页面" />
  479 + <MESSAGE value="修改库区service" />
  480 + <MESSAGE value="Merge branch 'develop' of http://172.16.29.40:8010/wms/wms2 into develop&#10;&#10;# Conflicts:&#10;#&#9;.idea/workspace.xml" />
  481 + <option name="LAST_COMMIT_MESSAGE" value="Merge branch 'develop' of http://172.16.29.40:8010/wms/wms2 into develop&#10;&#10;# Conflicts:&#10;#&#9;.idea/workspace.xml" />
360 </component> 482 </component>
361 </project> 483 </project>
362 \ No newline at end of file 484 \ No newline at end of file
src/main/java/com/huaheng/pc/config/containerType/controller/ContainerTypeController.java 0 → 100644
  1 +package com.huaheng.pc.config.containerType.controller;
  2 +
  3 +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4 +import com.baomidou.mybatisplus.core.metadata.IPage;
  5 +import com.baomidou.mybatisplus.core.toolkit.Wrappers;
  6 +import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  7 +import com.huaheng.common.support.Convert;
  8 +import com.huaheng.common.utils.StringUtils;
  9 +import com.huaheng.common.utils.security.ShiroUtils;
  10 +import com.huaheng.framework.aspectj.lang.annotation.Log;
  11 +import com.huaheng.framework.aspectj.lang.constant.BusinessType;
  12 +import com.huaheng.framework.web.controller.BaseController;
  13 +import com.huaheng.framework.web.domain.AjaxResult;
  14 +import com.huaheng.framework.web.page.PageDomain;
  15 +import com.huaheng.framework.web.page.TableDataInfo;
  16 +import com.huaheng.framework.web.page.TableSupport;
  17 +import com.huaheng.pc.config.containerType.domain.ContainerType;
  18 +import com.huaheng.pc.config.containerType.service.ContainerTypeService;
  19 +import org.apache.shiro.authz.annotation.RequiresPermissions;
  20 +import org.springframework.beans.factory.annotation.Autowired;
  21 +import org.springframework.stereotype.Controller;
  22 +import org.springframework.ui.ModelMap;
  23 +import org.springframework.web.bind.annotation.*;
  24 +
  25 +import java.util.List;
  26 +
  27 +/**
  28 + * 容器类型 信息操作处理
  29 + *
  30 + * @author huaheng
  31 + * @date 2018-08-19
  32 + */
  33 +@Controller
  34 +@RequestMapping("/config/containerType")
  35 +public class ContainerTypeController extends BaseController
  36 +{
  37 + private String prefix = "config/containerType";
  38 +
  39 + @Autowired
  40 + private ContainerTypeService containerTypeService;
  41 +
  42 + @RequiresPermissions("config:containerType:view")
  43 + @GetMapping()
  44 + public String containerType()
  45 + {
  46 + return prefix + "/containerType";
  47 + }
  48 +
  49 + /**
  50 + * 查询容器类型列表
  51 + */
  52 + @RequiresPermissions("config:containerType:list")
  53 + @Log(title = "配置-容器类型设置", operating = "查看容器类型", action = BusinessType.GRANT)
  54 + @PostMapping("/list")
  55 + @ResponseBody
  56 + public TableDataInfo list(ContainerType containerType,String createdBegin, String createdEnd)
  57 + {
  58 + LambdaQueryWrapper<ContainerType> lambdaQueryWrapper = Wrappers.lambdaQuery();
  59 + PageDomain pageDomain = TableSupport.buildPageRequest();
  60 + Integer pageNum = pageDomain.getPageNum();
  61 + Integer pageSize = pageDomain.getPageSize();
  62 +
  63 + lambdaQueryWrapper.ge(StringUtils.isNotEmpty(createdBegin),ContainerType::getCreated, createdBegin)
  64 + .le(StringUtils.isNotEmpty(createdEnd), ContainerType::getCreated, createdEnd)
  65 + .eq(ContainerType::getWarehouseCode,ShiroUtils.getWarehouseCode())
  66 + .eq(StringUtils.isNotEmpty(containerType.getCode()),ContainerType::getCode,containerType.getCode())
  67 + .like(StringUtils.isNotEmpty(containerType.getName()),ContainerType::getName,containerType.getName());;
  68 +
  69 + if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){
  70 + /**
  71 + * 使用分页查询
  72 + */
  73 + Page<ContainerType> page = new Page<>(pageNum, pageSize);
  74 + IPage<ContainerType> iPage = containerTypeService.page(page, lambdaQueryWrapper);
  75 + return getMpDataTable(iPage.getRecords(),iPage.getTotal());
  76 + } else {
  77 + List<ContainerType> list = containerTypeService.list(lambdaQueryWrapper);
  78 + return getDataTable(list);
  79 + }
  80 + }
  81 +
  82 + /**
  83 + * 新增容器类型
  84 + */
  85 + @GetMapping("/add")
  86 + public String add()
  87 + {
  88 + return prefix + "/add";
  89 + }
  90 +
  91 + /**
  92 + * 新增保存容器类型
  93 + */
  94 + @RequiresPermissions("config:containerType:add")
  95 + @Log(title = "配置-容器类型设置", operating = "新增容器类型", action = BusinessType.INSERT)
  96 + @PostMapping("/add")
  97 + @ResponseBody
  98 + public AjaxResult addSave(ContainerType containerType)
  99 + {
  100 + containerType.setWarehouseCode(ShiroUtils.getWarehouseCode());
  101 + containerType.setCreatedBy(ShiroUtils.getLoginName());
  102 + containerType.setLastUpdatedBy(ShiroUtils.getLoginName());
  103 + return toAjax(containerTypeService.save(containerType));
  104 + }
  105 +
  106 + /**
  107 + * 修改容器类型
  108 + */
  109 + @GetMapping("/edit/{id}")
  110 + public String edit(@PathVariable("id") Integer id, ModelMap mmap)
  111 + {
  112 + ContainerType containerType = containerTypeService.getById(id);
  113 + mmap.put("containerType", containerType);
  114 + return prefix + "/edit";
  115 + }
  116 +
  117 + /**
  118 + * 修改保存容器类型
  119 + */
  120 + @RequiresPermissions("config:containerType:edit")
  121 + @Log(title = "配置-容器类型设置", operating = "修改容器类型", action = BusinessType.UPDATE)
  122 + @PostMapping("/edit")
  123 + @ResponseBody
  124 + public AjaxResult editSave(ContainerType containerType)
  125 + {
  126 + containerType.setLastUpdatedBy(ShiroUtils.getLoginName());
  127 + return toAjax(containerTypeService.saveOrUpdate(containerType));
  128 + }
  129 +
  130 + /**
  131 + * 删除容器类型
  132 + */
  133 + @RequiresPermissions("config:containerType:remove")
  134 + @Log(title = "配置-容器类型设置", operating = "删除容器类型", action = BusinessType.DELETE)
  135 + @PostMapping( "/remove")
  136 + @ResponseBody
  137 + public AjaxResult remove(String ids)
  138 + {
  139 + if (StringUtils.isEmpty(ids))
  140 + return AjaxResult.error("id不能为空");
  141 + for (Integer id : Convert.toIntArray(ids))
  142 + {
  143 + containerTypeService.removeById(id);
  144 + }
  145 + return AjaxResult.success("删除成功!");
  146 + }
  147 +
  148 +}
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 /**
@@ -51,13 +53,17 @@ public class LocationTypeController extends BaseController { @@ -51,13 +53,17 @@ public class LocationTypeController extends BaseController {
51 @Log(title = "通用-库位类型管理", operating = "查看库位类型列表", action = BusinessType.GRANT) 53 @Log(title = "通用-库位类型管理", operating = "查看库位类型列表", action = BusinessType.GRANT)
52 @PostMapping("/list") 54 @PostMapping("/list")
53 @ResponseBody 55 @ResponseBody
54 - public TableDataInfo list(LocationType locationType) { 56 + public TableDataInfo list(LocationType locationType,String createdBegin, String createdEnd) {
55 LambdaQueryWrapper<LocationType> lambdaQueryWrapper = Wrappers.lambdaQuery(); 57 LambdaQueryWrapper<LocationType> lambdaQueryWrapper = Wrappers.lambdaQuery();
56 PageDomain pageDomain = TableSupport.buildPageRequest(); 58 PageDomain pageDomain = TableSupport.buildPageRequest();
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.ge(StringUtils.isNotEmpty(createdBegin),LocationType::getCreated, createdBegin)
  63 + .le(StringUtils.isNotEmpty(createdEnd), LocationType::getCreated, createdEnd)
  64 + .eq(LocationType::getWarehouseCode, ShiroUtils.getWarehouseCode())
  65 + .eq(StringUtils.isNotEmpty(locationType.getCode()),LocationType::getCode,locationType.getCode())
  66 + .like(StringUtils.isNotEmpty(locationType.getName()),LocationType::getName,locationType.getName());
61 67
62 if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){ 68 if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){
63 /** 69 /**
src/main/java/com/huaheng/pc/config/zone/controller/ZoneController.java
@@ -56,6 +56,7 @@ public class ZoneController extends BaseController { @@ -56,6 +56,7 @@ public class ZoneController extends BaseController {
56 56
57 lambdaQueryWrapper.ge(StringUtils.isNotEmpty(createdBegin),Zone::getCreated, createdBegin) 57 lambdaQueryWrapper.ge(StringUtils.isNotEmpty(createdBegin),Zone::getCreated, createdBegin)
58 .le(StringUtils.isNotEmpty(createdEnd), Zone::getCreated, createdEnd) 58 .le(StringUtils.isNotEmpty(createdEnd), Zone::getCreated, createdEnd)
  59 + .eq(Zone::getWarehouseCode,ShiroUtils.getWarehouseCode())
59 .eq(StringUtils.isNotEmpty(zone.getCode()), Zone::getCode, zone.getCode()) 60 .eq(StringUtils.isNotEmpty(zone.getCode()), Zone::getCode, zone.getCode())
60 .like(StringUtils.isNotEmpty(zone.getName()), Zone::getName, zone.getName()) 61 .like(StringUtils.isNotEmpty(zone.getName()), Zone::getName, zone.getName())
61 .orderByAsc(Zone::getId); 62 .orderByAsc(Zone::getId);
@@ -66,7 +67,7 @@ public class ZoneController extends BaseController { @@ -66,7 +67,7 @@ public class ZoneController extends BaseController {
66 */ 67 */
67 Page<Zone> page = new Page<>(pageNum, pageSize); 68 Page<Zone> page = new Page<>(pageNum, pageSize);
68 IPage<Zone> iPage = zoneService.page(page, lambdaQueryWrapper); 69 IPage<Zone> iPage = zoneService.page(page, lambdaQueryWrapper);
69 - return getDataTable(iPage.getRecords()); 70 + return getMpDataTable(iPage.getRecords(),iPage.getTotal());
70 } else { 71 } else {
71 List<Zone> list = zoneService.list(lambdaQueryWrapper); 72 List<Zone> list = zoneService.list(lambdaQueryWrapper);
72 return getDataTable(list); 73 return getDataTable(list);
src/main/java/com/huaheng/pc/config/zoneCapacity/controller/ZoneCapacityController.java
@@ -63,6 +63,7 @@ public class ZoneCapacityController extends BaseController @@ -63,6 +63,7 @@ public class ZoneCapacityController extends BaseController
63 63
64 lambdaQueryWrapper.ge(StringUtils.isNotEmpty(createdBegin),ZoneCapacity::getCreated, createdBegin) 64 lambdaQueryWrapper.ge(StringUtils.isNotEmpty(createdBegin),ZoneCapacity::getCreated, createdBegin)
65 .le(StringUtils.isNotEmpty(createdEnd), ZoneCapacity::getCreated, createdEnd) 65 .le(StringUtils.isNotEmpty(createdEnd), ZoneCapacity::getCreated, createdEnd)
  66 + .eq(ZoneCapacity::getWarehouseCode,ShiroUtils.getWarehouseCode())
66 .eq(StringUtils.isNotEmpty(zoneCapacity.getMaterialCode()), ZoneCapacity::getMaterialCode, zoneCapacity.getMaterialCode()) 67 .eq(StringUtils.isNotEmpty(zoneCapacity.getMaterialCode()), ZoneCapacity::getMaterialCode, zoneCapacity.getMaterialCode())
67 .like(StringUtils.isNotEmpty(zoneCapacity.getMaterialName()), ZoneCapacity::getMaterialName, zoneCapacity.getMaterialName()) 68 .like(StringUtils.isNotEmpty(zoneCapacity.getMaterialName()), ZoneCapacity::getMaterialName, zoneCapacity.getMaterialName())
68 .orderByAsc(ZoneCapacity::getId); 69 .orderByAsc(ZoneCapacity::getId);
@@ -73,7 +74,7 @@ public class ZoneCapacityController extends BaseController @@ -73,7 +74,7 @@ public class ZoneCapacityController extends BaseController
73 */ 74 */
74 Page<ZoneCapacity> page = new Page<>(pageNum, pageSize); 75 Page<ZoneCapacity> page = new Page<>(pageNum, pageSize);
75 IPage<ZoneCapacity> iPage = zoneCapacityService.page(page, lambdaQueryWrapper); 76 IPage<ZoneCapacity> iPage = zoneCapacityService.page(page, lambdaQueryWrapper);
76 - return getDataTable(iPage.getRecords()); 77 + return getMpDataTable(iPage.getRecords(),iPage.getTotal());
77 } else { 78 } else {
78 List<ZoneCapacity> list = zoneCapacityService.list(lambdaQueryWrapper); 79 List<ZoneCapacity> list = zoneCapacityService.list(lambdaQueryWrapper);
79 return getDataTable(list); 80 return getDataTable(list);
src/main/resources/mybatis/general/CompanyMapper.xml
@@ -54,7 +54,7 @@ @@ -54,7 +54,7 @@
54 INNER JOIN warehouse_company wc ON wc.companyId=c.id AND wc.warehouseCode = #{warehouseCode} 54 INNER JOIN warehouse_company wc ON wc.companyId=c.id AND wc.warehouseCode = #{warehouseCode}
55 </select> 55 </select>
56 <select id="selectByWarehouseCode" resultType="com.huaheng.pc.general.company.domain.Company"> 56 <select id="selectByWarehouseCode" resultType="com.huaheng.pc.general.company.domain.Company">
57 - select id from company INNER JOIN warehouse_company ON company.id = warehouse_company.companyId 57 + select company.id from company INNER JOIN warehouse_company ON company.id = warehouse_company.companyId
58 where company.warehouseCode = #{warehouseCode} 58 where company.warehouseCode = #{warehouseCode}
59 </select> 59 </select>
60 60
src/main/resources/templates/config/containerCapacity/containerCapacity.html
@@ -26,9 +26,9 @@ @@ -26,9 +26,9 @@
26 <!--</li>--> 26 <!--</li>-->
27 <li class="time"> 27 <li class="time">
28 <label>创建时间: </label> 28 <label>创建时间: </label>
29 - <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[createdBegin]"/> 29 + <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="createdBegin"/>
30 <span>-</span> 30 <span>-</span>
31 - <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[createdEnd]"/> 31 + <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="createdEnd"/>
32 </li> 32 </li>
33 <li> 33 <li>
34 <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a> 34 <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
src/main/resources/templates/config/containerType/containerType.html
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 <div class="select-list"> 10 <div class="select-list">
11 <ul> 11 <ul>
12 <li> 12 <li>
13 - 编码:<input type="text" name="code"/> 13 + 箱型:<input type="text" name="code"/>
14 </li> 14 </li>
15 <li> 15 <li>
16 名称:<input type="text" name="name"/> 16 名称:<input type="text" name="name"/>
@@ -23,9 +23,9 @@ @@ -23,9 +23,9 @@
23 <!--</li>--> 23 <!--</li>-->
24 <li class="time"> 24 <li class="time">
25 <label>创建时间: </label> 25 <label>创建时间: </label>
26 - <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[createdBegin]"/> 26 + <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="createdBegin"/>
27 <span>-</span> 27 <span>-</span>
28 - <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[createdEnd]"/> 28 + <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="createdEnd"/>
29 </li> 29 </li>
30 <li> 30 <li>
31 <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a> 31 <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
@@ -73,16 +73,20 @@ @@ -73,16 +73,20 @@
73 }, 73 },
74 { 74 {
75 field : 'code', 75 field : 'code',
76 - title : '编码' 76 + title : '箱型'
77 }, 77 },
78 { 78 {
79 field : 'name', 79 field : 'name',
80 title : '名称' 80 title : '名称'
81 }, 81 },
82 { 82 {
83 - field : 'prefix',  
84 - title : '前缀' 83 + field : 'warehouseCode',
  84 + title : '仓库编码'
85 }, 85 },
  86 + {
  87 + field : 'companyCode',
  88 + title : '货主编码'
  89 + },
86 { 90 {
87 field : 'emptyWeight', 91 field : 'emptyWeight',
88 title : '空箱重量kg' 92 title : '空箱重量kg'
src/main/resources/templates/config/locationType/locationType.html
@@ -23,9 +23,9 @@ @@ -23,9 +23,9 @@
23 <!--</li>--> 23 <!--</li>-->
24 <li class="time"> 24 <li class="time">
25 <label>创建时间: </label> 25 <label>创建时间: </label>
26 - <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[createdBegin]"/> 26 + <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="createdBegin"/>
27 <span>-</span> 27 <span>-</span>
28 - <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[createdEnd]"/> 28 + <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="createdEnd"/>
29 </li> 29 </li>
30 <li> 30 <li>
31 <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a> 31 <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
src/main/resources/templates/system/user/edit.html
@@ -62,7 +62,7 @@ @@ -62,7 +62,7 @@
62 <label class="col-sm-3 control-label">货主:</label> 62 <label class="col-sm-3 control-label">货主:</label>
63 <div class="col-sm-8"> 63 <div class="col-sm-8">
64 <label th:each="company:${companys}" class="checkbox-inline i-checks"> 64 <label th:each="company:${companys}" class="checkbox-inline i-checks">
65 - <input name="company" type="checkbox" th:value="${company.id}" th:text=" ${company.name}" th:checked="${company.flag}" th:disabled="${company.enable == false}"> 65 + <input name="company" type="checkbox" th:value="${company.id}" th:text=" ${company.name}" th:checked="${company.flag}" >
66 </label> 66 </label>
67 </div> 67 </div>
68 </div> 68 </div>