Commit e9ff6df71679e7120183d355b140c761132708fc
Merge branch 'develop' of http://172.16.29.40:8010/wms/wms2 into develop
Showing
147 changed files
with
3448 additions
and
1501 deletions
Too many changes to show.
To preserve performance only 100 of 147 files are displayed.
.idea/compiler.xml
... | ... | @@ -6,8 +6,8 @@ |
6 | 6 | <sourceOutputDir name="target/generated-sources/annotations" /> |
7 | 7 | <sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> |
8 | 8 | <outputRelativeToContentRoot value="true" /> |
9 | - <module name="wms2" /> | |
10 | 9 | <module name="huaheng" /> |
10 | + <module name="wms2" /> | |
11 | 11 | </profile> |
12 | 12 | </annotationProcessing> |
13 | 13 | </component> |
... | ... |
.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 afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/task/taskHeader/controller/TaskHeaderController.java" afterDir="false" /> | |
6 | + <change afterPath="$PROJECT_DIR$/src/main/resources/templates/task/taskHeader/add.html" afterDir="false" /> | |
7 | + <change afterPath="$PROJECT_DIR$/src/main/resources/templates/task/taskHeader/edit.html" afterDir="false" /> | |
8 | + <change afterPath="$PROJECT_DIR$/src/main/resources/templates/task/taskHeader/taskHeader.html" afterDir="false" /> | |
9 | + <change beforePath="$PROJECT_DIR$/.idea/compiler.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" /> | |
5 | 10 | <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> |
6 | - <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" /> | |
7 | - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/domain/InventoryHeader.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/domain/InventoryHeader.java" afterDir="false" /> | |
8 | - <change beforePath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/system/user/controller/IndexController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/huaheng/pc/system/user/controller/IndexController.java" afterDir="false" /> | |
9 | - <change beforePath="$PROJECT_DIR$/src/main/resources/mybatis/inventory/InventoryHeaderMapper.xml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/mybatis/inventory/InventoryHeaderMapper.xml" afterDir="false" /> | |
10 | - <change beforePath="$PROJECT_DIR$/src/main/resources/templates/inventory/inventoryHeader/inventoryHeader.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/inventory/inventoryHeader/inventoryHeader.html" afterDir="false" /> | |
11 | 11 | </list> |
12 | 12 | <ignored path="$PROJECT_DIR$/target/" /> |
13 | 13 | <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> |
... | ... | @@ -47,39 +47,39 @@ |
47 | 47 | <select /> |
48 | 48 | </component> |
49 | 49 | <component name="FileEditorManager"> |
50 | - <leaf> | |
50 | + <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> | |
51 | 51 | <file pinned="false" current-in-tab="false"> |
52 | - <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/controller/InventoryHeaderController.java"> | |
52 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/task/taskHeader/controller/TaskHeaderController.java"> | |
53 | 53 | <provider selected="true" editor-type-id="text-editor"> |
54 | - <state relative-caret-position="51"> | |
55 | - <caret line="72" selection-start-line="72" selection-end-line="72" /> | |
54 | + <state relative-caret-position="167"> | |
55 | + <caret line="40" column="38" selection-start-line="40" selection-start-column="38" selection-end-line="40" selection-end-column="38" /> | |
56 | + <folding> | |
57 | + <element signature="imports" expanded="true" /> | |
58 | + <element signature="e#1660#1661#0" expanded="true" /> | |
59 | + <element signature="e#1704#1705#0" expanded="true" /> | |
60 | + </folding> | |
56 | 61 | </state> |
57 | 62 | </provider> |
58 | 63 | </entry> |
59 | 64 | </file> |
60 | 65 | <file pinned="false" current-in-tab="false"> |
61 | - <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/controller/InventoryDetailController.java"> | |
66 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/container/controller/ContainerController.java"> | |
62 | 67 | <provider selected="true" editor-type-id="text-editor"> |
63 | - <state relative-caret-position="234"> | |
64 | - <caret line="78" column="44" selection-start-line="78" selection-start-column="44" selection-end-line="78" selection-end-column="44" /> | |
68 | + <state relative-caret-position="304"> | |
69 | + <caret line="44" column="35" selection-start-line="44" selection-start-column="26" selection-end-line="44" selection-end-column="35" /> | |
65 | 70 | </state> |
66 | 71 | </provider> |
67 | 72 | </entry> |
68 | 73 | </file> |
69 | 74 | <file pinned="false" current-in-tab="true"> |
70 | - <entry file="file://$PROJECT_DIR$/src/main/resources/templates/inventory/inventoryDetail/inventoryDetail.html"> | |
75 | + <entry file="file://$PROJECT_DIR$/src/main/resources/templates/task/taskHeader/taskHeader.html"> | |
71 | 76 | <provider selected="true" editor-type-id="text-editor"> |
72 | - <state relative-caret-position="328"> | |
73 | - <caret line="92" column="18" lean-forward="true" selection-start-line="92" selection-start-column="18" selection-end-line="92" selection-end-column="18" /> | |
74 | - </state> | |
75 | - </provider> | |
76 | - </entry> | |
77 | - </file> | |
78 | - <file pinned="false" current-in-tab="false"> | |
79 | - <entry file="file://$PROJECT_DIR$/src/main/resources/templates/inventory/inventoryHeader/inventoryHeader.html"> | |
80 | - <provider selected="true" editor-type-id="text-editor"> | |
81 | - <state relative-caret-position="252"> | |
82 | - <caret line="99" column="33" selection-start-line="99" selection-start-column="33" selection-end-line="99" selection-end-column="33" /> | |
77 | + <state relative-caret-position="91"> | |
78 | + <caret line="167" column="33" lean-forward="true" selection-start-line="167" selection-start-column="33" selection-end-line="167" selection-end-column="33" /> | |
79 | + <folding> | |
80 | + <element signature="n#style#0;n#i#0;n#a#0;n#!!top" expanded="true" /> | |
81 | + <element signature="n#style#0;n#a#0;n#!!top" expanded="true" /> | |
82 | + </folding> | |
83 | 83 | </state> |
84 | 84 | </provider> |
85 | 85 | </entry> |
... | ... | @@ -130,6 +130,9 @@ |
130 | 130 | <option value="$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/domain/InventoryHeader.java" /> |
131 | 131 | <option value="$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/controller/InventoryDetailController.java" /> |
132 | 132 | <option value="$PROJECT_DIR$/src/main/resources/templates/inventory/inventoryHeader/inventoryHeader.html" /> |
133 | + <option value="$PROJECT_DIR$/src/main/java/com/huaheng/HuaHengApplication.java" /> | |
134 | + <option value="$PROJECT_DIR$/src/main/resources/templates/task/taskHeader/task.html" /> | |
135 | + <option value="$PROJECT_DIR$/src/main/java/com/huaheng/pc/task/taskHeader/controller/TaskHeaderController.java" /> | |
133 | 136 | </list> |
134 | 137 | </option> |
135 | 138 | </component> |
... | ... | @@ -140,11 +143,17 @@ |
140 | 143 | </set> |
141 | 144 | </option> |
142 | 145 | </component> |
146 | + <component name="MavenImportPreferences"> | |
147 | + <option name="importingSettings"> | |
148 | + <MavenImportingSettings> | |
149 | + <option name="importAutomatically" value="true" /> | |
150 | + </MavenImportingSettings> | |
151 | + </option> | |
152 | + </component> | |
143 | 153 | <component name="ProjectFrameBounds" extendedState="6"> |
144 | - <option name="x" value="-9" /> | |
145 | - <option name="y" value="-9" /> | |
146 | - <option name="width" value="1938" /> | |
147 | - <option name="height" value="1048" /> | |
154 | + <option name="x" value="470" /> | |
155 | + <option name="width" value="980" /> | |
156 | + <option name="height" value="1030" /> | |
148 | 157 | </component> |
149 | 158 | <component name="ProjectId" id="1P5Ngjh73HToCarlEZkqMxrL7pm" /> |
150 | 159 | <component name="ProjectLevelVcsManager"> |
... | ... | @@ -167,20 +176,18 @@ |
167 | 176 | <path> |
168 | 177 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
169 | 178 | <item name="wms2" type="462c0819:PsiDirectoryNode" /> |
170 | - <item name="src" type="462c0819:PsiDirectoryNode" /> | |
179 | + <item name="sql" type="462c0819:PsiDirectoryNode" /> | |
171 | 180 | </path> |
172 | 181 | <path> |
173 | 182 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
174 | 183 | <item name="wms2" type="462c0819:PsiDirectoryNode" /> |
175 | 184 | <item name="src" type="462c0819:PsiDirectoryNode" /> |
176 | - <item name="main" type="462c0819:PsiDirectoryNode" /> | |
177 | 185 | </path> |
178 | 186 | <path> |
179 | 187 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
180 | 188 | <item name="wms2" type="462c0819:PsiDirectoryNode" /> |
181 | 189 | <item name="src" type="462c0819:PsiDirectoryNode" /> |
182 | 190 | <item name="main" type="462c0819:PsiDirectoryNode" /> |
183 | - <item name="java" type="462c0819:PsiDirectoryNode" /> | |
184 | 191 | </path> |
185 | 192 | <path> |
186 | 193 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -188,7 +195,6 @@ |
188 | 195 | <item name="src" type="462c0819:PsiDirectoryNode" /> |
189 | 196 | <item name="main" type="462c0819:PsiDirectoryNode" /> |
190 | 197 | <item name="java" type="462c0819:PsiDirectoryNode" /> |
191 | - <item name="com" type="462c0819:PsiDirectoryNode" /> | |
192 | 198 | </path> |
193 | 199 | <path> |
194 | 200 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -197,7 +203,6 @@ |
197 | 203 | <item name="main" type="462c0819:PsiDirectoryNode" /> |
198 | 204 | <item name="java" type="462c0819:PsiDirectoryNode" /> |
199 | 205 | <item name="com" type="462c0819:PsiDirectoryNode" /> |
200 | - <item name="huaheng" type="462c0819:PsiDirectoryNode" /> | |
201 | 206 | </path> |
202 | 207 | <path> |
203 | 208 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -207,7 +212,6 @@ |
207 | 212 | <item name="java" type="462c0819:PsiDirectoryNode" /> |
208 | 213 | <item name="com" type="462c0819:PsiDirectoryNode" /> |
209 | 214 | <item name="huaheng" type="462c0819:PsiDirectoryNode" /> |
210 | - <item name="pc" type="462c0819:PsiDirectoryNode" /> | |
211 | 215 | </path> |
212 | 216 | <path> |
213 | 217 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -218,7 +222,6 @@ |
218 | 222 | <item name="com" type="462c0819:PsiDirectoryNode" /> |
219 | 223 | <item name="huaheng" type="462c0819:PsiDirectoryNode" /> |
220 | 224 | <item name="pc" type="462c0819:PsiDirectoryNode" /> |
221 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
222 | 225 | </path> |
223 | 226 | <path> |
224 | 227 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -229,8 +232,7 @@ |
229 | 232 | <item name="com" type="462c0819:PsiDirectoryNode" /> |
230 | 233 | <item name="huaheng" type="462c0819:PsiDirectoryNode" /> |
231 | 234 | <item name="pc" type="462c0819:PsiDirectoryNode" /> |
232 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
233 | - <item name="inventoryDetail" type="462c0819:PsiDirectoryNode" /> | |
235 | + <item name="config" type="462c0819:PsiDirectoryNode" /> | |
234 | 236 | </path> |
235 | 237 | <path> |
236 | 238 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -241,9 +243,8 @@ |
241 | 243 | <item name="com" type="462c0819:PsiDirectoryNode" /> |
242 | 244 | <item name="huaheng" type="462c0819:PsiDirectoryNode" /> |
243 | 245 | <item name="pc" type="462c0819:PsiDirectoryNode" /> |
244 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
245 | - <item name="inventoryDetail" type="462c0819:PsiDirectoryNode" /> | |
246 | - <item name="controller" type="462c0819:PsiDirectoryNode" /> | |
246 | + <item name="config" type="462c0819:PsiDirectoryNode" /> | |
247 | + <item name="container" type="462c0819:PsiDirectoryNode" /> | |
247 | 248 | </path> |
248 | 249 | <path> |
249 | 250 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -254,34 +255,9 @@ |
254 | 255 | <item name="com" type="462c0819:PsiDirectoryNode" /> |
255 | 256 | <item name="huaheng" type="462c0819:PsiDirectoryNode" /> |
256 | 257 | <item name="pc" type="462c0819:PsiDirectoryNode" /> |
257 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
258 | - <item name="inventoryDetail" type="462c0819:PsiDirectoryNode" /> | |
259 | - <item name="domain" type="462c0819:PsiDirectoryNode" /> | |
260 | - </path> | |
261 | - <path> | |
262 | - <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> | |
263 | - <item name="wms2" type="462c0819:PsiDirectoryNode" /> | |
264 | - <item name="src" type="462c0819:PsiDirectoryNode" /> | |
265 | - <item name="main" type="462c0819:PsiDirectoryNode" /> | |
266 | - <item name="java" type="462c0819:PsiDirectoryNode" /> | |
267 | - <item name="com" type="462c0819:PsiDirectoryNode" /> | |
268 | - <item name="huaheng" type="462c0819:PsiDirectoryNode" /> | |
269 | - <item name="pc" type="462c0819:PsiDirectoryNode" /> | |
270 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
271 | - <item name="inventoryDetail" type="462c0819:PsiDirectoryNode" /> | |
272 | - <item name="service" type="462c0819:PsiDirectoryNode" /> | |
273 | - </path> | |
274 | - <path> | |
275 | - <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> | |
276 | - <item name="wms2" type="462c0819:PsiDirectoryNode" /> | |
277 | - <item name="src" type="462c0819:PsiDirectoryNode" /> | |
278 | - <item name="main" type="462c0819:PsiDirectoryNode" /> | |
279 | - <item name="java" type="462c0819:PsiDirectoryNode" /> | |
280 | - <item name="com" type="462c0819:PsiDirectoryNode" /> | |
281 | - <item name="huaheng" type="462c0819:PsiDirectoryNode" /> | |
282 | - <item name="pc" type="462c0819:PsiDirectoryNode" /> | |
283 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
284 | - <item name="inventoryHeader" type="462c0819:PsiDirectoryNode" /> | |
258 | + <item name="config" type="462c0819:PsiDirectoryNode" /> | |
259 | + <item name="container" type="462c0819:PsiDirectoryNode" /> | |
260 | + <item name="controller" type="462c0819:PsiDirectoryNode" /> | |
285 | 261 | </path> |
286 | 262 | <path> |
287 | 263 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -292,9 +268,7 @@ |
292 | 268 | <item name="com" type="462c0819:PsiDirectoryNode" /> |
293 | 269 | <item name="huaheng" type="462c0819:PsiDirectoryNode" /> |
294 | 270 | <item name="pc" type="462c0819:PsiDirectoryNode" /> |
295 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
296 | - <item name="inventoryHeader" type="462c0819:PsiDirectoryNode" /> | |
297 | - <item name="controller" type="462c0819:PsiDirectoryNode" /> | |
271 | + <item name="task" type="462c0819:PsiDirectoryNode" /> | |
298 | 272 | </path> |
299 | 273 | <path> |
300 | 274 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -305,9 +279,8 @@ |
305 | 279 | <item name="com" type="462c0819:PsiDirectoryNode" /> |
306 | 280 | <item name="huaheng" type="462c0819:PsiDirectoryNode" /> |
307 | 281 | <item name="pc" type="462c0819:PsiDirectoryNode" /> |
308 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
309 | - <item name="inventoryHeader" type="462c0819:PsiDirectoryNode" /> | |
310 | - <item name="domain" type="462c0819:PsiDirectoryNode" /> | |
282 | + <item name="task" type="462c0819:PsiDirectoryNode" /> | |
283 | + <item name="taskHeader" type="462c0819:PsiDirectoryNode" /> | |
311 | 284 | </path> |
312 | 285 | <path> |
313 | 286 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -318,8 +291,8 @@ |
318 | 291 | <item name="com" type="462c0819:PsiDirectoryNode" /> |
319 | 292 | <item name="huaheng" type="462c0819:PsiDirectoryNode" /> |
320 | 293 | <item name="pc" type="462c0819:PsiDirectoryNode" /> |
321 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
322 | - <item name="inventoryHeader" type="462c0819:PsiDirectoryNode" /> | |
294 | + <item name="task" type="462c0819:PsiDirectoryNode" /> | |
295 | + <item name="taskHeader" type="462c0819:PsiDirectoryNode" /> | |
323 | 296 | <item name="mapper" type="462c0819:PsiDirectoryNode" /> |
324 | 297 | </path> |
325 | 298 | <path> |
... | ... | @@ -331,8 +304,8 @@ |
331 | 304 | <item name="com" type="462c0819:PsiDirectoryNode" /> |
332 | 305 | <item name="huaheng" type="462c0819:PsiDirectoryNode" /> |
333 | 306 | <item name="pc" type="462c0819:PsiDirectoryNode" /> |
334 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
335 | - <item name="inventoryHeader" type="462c0819:PsiDirectoryNode" /> | |
307 | + <item name="task" type="462c0819:PsiDirectoryNode" /> | |
308 | + <item name="taskHeader" type="462c0819:PsiDirectoryNode" /> | |
336 | 309 | <item name="service" type="462c0819:PsiDirectoryNode" /> |
337 | 310 | </path> |
338 | 311 | <path> |
... | ... | @@ -340,11 +313,7 @@ |
340 | 313 | <item name="wms2" type="462c0819:PsiDirectoryNode" /> |
341 | 314 | <item name="src" type="462c0819:PsiDirectoryNode" /> |
342 | 315 | <item name="main" type="462c0819:PsiDirectoryNode" /> |
343 | - <item name="java" type="462c0819:PsiDirectoryNode" /> | |
344 | - <item name="com" type="462c0819:PsiDirectoryNode" /> | |
345 | - <item name="huaheng" type="462c0819:PsiDirectoryNode" /> | |
346 | - <item name="pc" type="462c0819:PsiDirectoryNode" /> | |
347 | - <item name="system" type="462c0819:PsiDirectoryNode" /> | |
316 | + <item name="resources" type="462c0819:PsiDirectoryNode" /> | |
348 | 317 | </path> |
349 | 318 | <path> |
350 | 319 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -352,6 +321,7 @@ |
352 | 321 | <item name="src" type="462c0819:PsiDirectoryNode" /> |
353 | 322 | <item name="main" type="462c0819:PsiDirectoryNode" /> |
354 | 323 | <item name="resources" type="462c0819:PsiDirectoryNode" /> |
324 | + <item name="templates" type="462c0819:PsiDirectoryNode" /> | |
355 | 325 | </path> |
356 | 326 | <path> |
357 | 327 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -360,6 +330,7 @@ |
360 | 330 | <item name="main" type="462c0819:PsiDirectoryNode" /> |
361 | 331 | <item name="resources" type="462c0819:PsiDirectoryNode" /> |
362 | 332 | <item name="templates" type="462c0819:PsiDirectoryNode" /> |
333 | + <item name="config" type="462c0819:PsiDirectoryNode" /> | |
363 | 334 | </path> |
364 | 335 | <path> |
365 | 336 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -368,7 +339,8 @@ |
368 | 339 | <item name="main" type="462c0819:PsiDirectoryNode" /> |
369 | 340 | <item name="resources" type="462c0819:PsiDirectoryNode" /> |
370 | 341 | <item name="templates" type="462c0819:PsiDirectoryNode" /> |
371 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
342 | + <item name="config" type="462c0819:PsiDirectoryNode" /> | |
343 | + <item name="container" type="462c0819:PsiDirectoryNode" /> | |
372 | 344 | </path> |
373 | 345 | <path> |
374 | 346 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -377,8 +349,7 @@ |
377 | 349 | <item name="main" type="462c0819:PsiDirectoryNode" /> |
378 | 350 | <item name="resources" type="462c0819:PsiDirectoryNode" /> |
379 | 351 | <item name="templates" type="462c0819:PsiDirectoryNode" /> |
380 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
381 | - <item name="inventoryDetail" type="462c0819:PsiDirectoryNode" /> | |
352 | + <item name="task" type="462c0819:PsiDirectoryNode" /> | |
382 | 353 | </path> |
383 | 354 | <path> |
384 | 355 | <item name="wms2" type="b2602c69:ProjectViewProjectNode" /> |
... | ... | @@ -387,8 +358,8 @@ |
387 | 358 | <item name="main" type="462c0819:PsiDirectoryNode" /> |
388 | 359 | <item name="resources" type="462c0819:PsiDirectoryNode" /> |
389 | 360 | <item name="templates" type="462c0819:PsiDirectoryNode" /> |
390 | - <item name="inventory" type="462c0819:PsiDirectoryNode" /> | |
391 | - <item name="inventoryHeader" type="462c0819:PsiDirectoryNode" /> | |
361 | + <item name="task" type="462c0819:PsiDirectoryNode" /> | |
362 | + <item name="taskHeader" type="462c0819:PsiDirectoryNode" /> | |
392 | 363 | </path> |
393 | 364 | </expand> |
394 | 365 | <select /> |
... | ... | @@ -408,6 +379,7 @@ |
408 | 379 | <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" /> |
409 | 380 | <property name="WebServerToolWindowFactoryState" value="false" /> |
410 | 381 | <property name="aspect.path.notification.shown" value="true" /> |
382 | + <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1566439451795" /> | |
411 | 383 | <property name="last_opened_file_path" value="$PROJECT_DIR$/src/main/resources/mybatis/config" /> |
412 | 384 | <property name="node.js.detected.package.eslint" value="true" /> |
413 | 385 | <property name="node.js.detected.package.tslint" value="true" /> |
... | ... | @@ -422,17 +394,17 @@ |
422 | 394 | <property name="settings.editor.selected.configurable" value="preferences.pluginManager" /> |
423 | 395 | </component> |
424 | 396 | <component name="RecentsManager"> |
425 | - <key name="MoveFile.RECENT_KEYS"> | |
426 | - <recent name="E:\code\wms2\src\main\resources\templates\general\carrier" /> | |
427 | - <recent name="E:\code\wms2\src\main\resources\mybatis\general" /> | |
428 | - <recent name="E:\code\wms2\src\main\resources\mybatis\config" /> | |
429 | - </key> | |
430 | 397 | <key name="CopyFile.RECENT_KEYS"> |
398 | + <recent name="F:\wms2\src\main\resources\templates\task\taskHeader" /> | |
431 | 399 | <recent name="E:\code\wms2\src\main\resources\mybatis\config" /> |
432 | 400 | <recent name="E:\code\wms2\src\main\java\com\huaheng\pc\config" /> |
433 | 401 | <recent name="E:\code\wms2\src\main\resources\static\ajax\libs\layui\lay\modules" /> |
434 | 402 | <recent name="E:\code\wms2\target\classes\static\file" /> |
435 | - <recent name="E:\code\wms2\src\main\resources\static\file" /> | |
403 | + </key> | |
404 | + <key name="MoveFile.RECENT_KEYS"> | |
405 | + <recent name="E:\code\wms2\src\main\resources\templates\general\carrier" /> | |
406 | + <recent name="E:\code\wms2\src\main\resources\mybatis\general" /> | |
407 | + <recent name="E:\code\wms2\src\main\resources\mybatis\config" /> | |
436 | 408 | </key> |
437 | 409 | </component> |
438 | 410 | <component name="RunDashboard"> |
... | ... | @@ -451,9 +423,23 @@ |
451 | 423 | </RuleState> |
452 | 424 | </list> |
453 | 425 | </option> |
454 | - <option name="contentProportion" value="0.052489176" /> | |
426 | + <option name="contentProportion" value="0.012987013" /> | |
455 | 427 | </component> |
456 | - <component name="RunManager"> | |
428 | + <component name="RunManager" selected="Spring Boot.HuaHengApplication (1)"> | |
429 | + <configuration name="HuaHengApplication (1)" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" temporary="true" nameIsGenerated="true"> | |
430 | + <module name="huaheng" /> | |
431 | + <extension name="coverage"> | |
432 | + <pattern> | |
433 | + <option name="PATTERN" value="com.huaheng.*" /> | |
434 | + <option name="ENABLED" value="true" /> | |
435 | + </pattern> | |
436 | + </extension> | |
437 | + <option name="SPRING_BOOT_MAIN_CLASS" value="com.huaheng.HuaHengApplication" /> | |
438 | + <option name="ALTERNATIVE_JRE_PATH" /> | |
439 | + <method v="2"> | |
440 | + <option name="Make" enabled="true" /> | |
441 | + </method> | |
442 | + </configuration> | |
457 | 443 | <configuration name="HuaHengApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot"> |
458 | 444 | <module name="wms2" /> |
459 | 445 | <option name="SPRING_BOOT_MAIN_CLASS" value="com.huaheng.HuaHengApplication" /> |
... | ... | @@ -473,6 +459,11 @@ |
473 | 459 | <option name="Make" enabled="true" /> |
474 | 460 | </method> |
475 | 461 | </configuration> |
462 | + <recent_temporary> | |
463 | + <list> | |
464 | + <item itemvalue="Spring Boot.HuaHengApplication (1)" /> | |
465 | + </list> | |
466 | + </recent_temporary> | |
476 | 467 | </component> |
477 | 468 | <component name="ServiceViewManager"> |
478 | 469 | <option name="allServicesViewState"> |
... | ... | @@ -526,6 +517,7 @@ |
526 | 517 | <workItem from="1565936336169" duration="3845000" /> |
527 | 518 | <workItem from="1565941296716" duration="6217000" /> |
528 | 519 | <workItem from="1566175534262" duration="11146000" /> |
520 | + <workItem from="1566433893313" duration="5165000" /> | |
529 | 521 | </task> |
530 | 522 | <task id="LOCAL-00001" summary="添加库位、库位类型增删改查接口"> |
531 | 523 | <created>1565226427512</created> |
... | ... | @@ -628,6 +620,9 @@ |
628 | 620 | <option name="localTasksCounter" value="15" /> |
629 | 621 | <servers /> |
630 | 622 | </component> |
623 | + <component name="TimeTrackingManager"> | |
624 | + <option name="totallyTimeSpent" value="16960000" /> | |
625 | + </component> | |
631 | 626 | <component name="TodoView"> |
632 | 627 | <todo-panel id="selected-file"> |
633 | 628 | <is-autoscroll-to-source value="true" /> |
... | ... | @@ -641,14 +636,17 @@ |
641 | 636 | <frame x="-7" y="-7" width="1550" height="838" extended-state="6" /> |
642 | 637 | <editor active="true" /> |
643 | 638 | <layout> |
644 | - <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.49832776" visible="true" weight="0.31434315" /> | |
639 | + <window_info id="Image Layers" /> | |
640 | + <window_info id="Capture Tool" /> | |
641 | + <window_info content_ui="combo" id="Project" order="0" sideWeight="0.49832776" visible="true" weight="0.24128686" /> | |
645 | 642 | <window_info id="Structure" order="1" sideWeight="0.50167227" side_tool="true" weight="0.23793566" /> |
646 | 643 | <window_info id="Web" order="2" sideWeight="0.50167227" side_tool="true" weight="0.23793566" /> |
647 | 644 | <window_info id="Designer" order="3" /> |
648 | 645 | <window_info id="UI Designer" order="4" /> |
649 | 646 | <window_info id="Favorites" order="5" sideWeight="0.50167227" side_tool="true" weight="0.23793566" /> |
647 | + <window_info anchor="bottom" id="Terminal" /> | |
650 | 648 | <window_info anchor="bottom" id="Message" order="0" /> |
651 | - <window_info anchor="bottom" id="Find" order="1" /> | |
649 | + <window_info anchor="bottom" id="Find" order="1" weight="0.3286119" /> | |
652 | 650 | <window_info anchor="bottom" id="Run" order="2" /> |
653 | 651 | <window_info anchor="bottom" id="Debug" order="3" weight="0.4" /> |
654 | 652 | <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" /> |
... | ... | @@ -656,13 +654,15 @@ |
656 | 654 | <window_info anchor="bottom" id="TODO" order="6" weight="0.3275488" /> |
657 | 655 | <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" /> |
658 | 656 | <window_info anchor="bottom" id="Version Control" order="8" weight="0.43342775" /> |
659 | - <window_info anchor="bottom" id="Run Dashboard" order="9" visible="true" weight="0.12747875" /> | |
657 | + <window_info active="true" anchor="bottom" id="Run Dashboard" order="9" sideWeight="0.91219836" visible="true" weight="0.34702548" /> | |
660 | 658 | <window_info anchor="bottom" id="Spring" order="10" weight="0.3286119" /> |
661 | 659 | <window_info anchor="bottom" id="Database Changes" order="11" weight="0.3275488" /> |
662 | - <window_info anchor="bottom" id="Event Log" order="12" side_tool="true" /> | |
660 | + <window_info anchor="bottom" id="Event Log" order="12" sideWeight="0.087801605" side_tool="true" weight="0.3569405" /> | |
663 | 661 | <window_info anchor="bottom" id="Java Enterprise" order="13" weight="0.3275488" /> |
664 | 662 | <window_info anchor="bottom" id="Messages" order="14" weight="0.3186969" /> |
665 | 663 | <window_info anchor="bottom" id="MyBatis Log" order="15" /> |
664 | + <window_info anchor="right" id="Capture Analysis" /> | |
665 | + <window_info anchor="right" id="Theme Preview" /> | |
666 | 666 | <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" /> |
667 | 667 | <window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> |
668 | 668 | <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" /> |
... | ... | @@ -767,13 +767,6 @@ |
767 | 767 | </watches-manager> |
768 | 768 | </component> |
769 | 769 | <component name="editorHistoryManager"> |
770 | - <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/service/InventoryHeaderServiceImpl.java"> | |
771 | - <provider selected="true" editor-type-id="text-editor"> | |
772 | - <state relative-caret-position="100"> | |
773 | - <caret line="8" column="91" lean-forward="true" selection-start-line="8" selection-start-column="91" selection-end-line="8" selection-end-column="91" /> | |
774 | - </state> | |
775 | - </provider> | |
776 | - </entry> | |
777 | 770 | <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/service/InventoryDetailServiceImpl.java"> |
778 | 771 | <provider selected="true" editor-type-id="text-editor"> |
779 | 772 | <state relative-caret-position="100"> |
... | ... | @@ -781,13 +774,6 @@ |
781 | 774 | </state> |
782 | 775 | </provider> |
783 | 776 | </entry> |
784 | - <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/service/InventoryHeaderService.java"> | |
785 | - <provider selected="true" editor-type-id="text-editor"> | |
786 | - <state relative-caret-position="100"> | |
787 | - <caret line="7" column="66" selection-start-line="7" selection-start-column="66" selection-end-line="7" selection-end-column="66" /> | |
788 | - </state> | |
789 | - </provider> | |
790 | - </entry> | |
791 | 777 | <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/service/InventoryDetailService.java"> |
792 | 778 | <provider selected="true" editor-type-id="text-editor"> |
793 | 779 | <state relative-caret-position="100"> |
... | ... | @@ -826,15 +812,8 @@ |
826 | 812 | </state> |
827 | 813 | </provider> |
828 | 814 | </entry> |
829 | - <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/warehouse/controller/WareHouseController.java"> | |
830 | - <provider selected="true" editor-type-id="text-editor"> | |
831 | - <state relative-caret-position="92"> | |
832 | - <caret line="127" column="62" lean-forward="true" selection-start-line="127" selection-start-column="62" selection-end-line="127" selection-end-column="62" /> | |
833 | - </state> | |
834 | - </provider> | |
835 | - </entry> | |
815 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/general/warehouse/controller/WareHouseController.java" /> | |
836 | 816 | <entry file="file://$PROJECT_DIR$/pom.xml"> |
837 | - <provider editor-type-id="MavenHelperPluginDependencyAnalyzer" /> | |
838 | 817 | <provider selected="true" editor-type-id="text-editor"> |
839 | 818 | <state relative-caret-position="892"> |
840 | 819 | <caret line="354" column="67" selection-start-line="354" selection-start-column="67" selection-end-line="354" selection-end-column="67" /> |
... | ... | @@ -876,13 +855,7 @@ |
876 | 855 | </state> |
877 | 856 | </provider> |
878 | 857 | </entry> |
879 | - <entry file="jar://C:/Program Files/Java/jdk1.8.0_202/src.zip!/java/util/LinkedHashMap.java"> | |
880 | - <provider selected="true" editor-type-id="text-editor"> | |
881 | - <state relative-caret-position="-376"> | |
882 | - <caret line="163" column="24" lean-forward="true" selection-start-line="163" selection-start-column="24" selection-end-line="163" selection-end-column="24" /> | |
883 | - </state> | |
884 | - </provider> | |
885 | - </entry> | |
858 | + <entry file="jar://C:/Program Files/Java/jdk1.8.0_202/src.zip!/java/util/LinkedHashMap.java" /> | |
886 | 859 | <entry file="jar://$MAVEN_REPOSITORY$/org/mybatis/mybatis/3.5.1/mybatis-3.5.1.jar!/org/apache/ibatis/builder/xml/mybatis-3-mapper.dtd"> |
887 | 860 | <provider selected="true" editor-type-id="text-editor"> |
888 | 861 | <state relative-caret-position="124"> |
... | ... | @@ -925,13 +898,6 @@ |
925 | 898 | </state> |
926 | 899 | </provider> |
927 | 900 | </entry> |
928 | - <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/controller/InventoryDetailController.java"> | |
929 | - <provider selected="true" editor-type-id="text-editor"> | |
930 | - <state relative-caret-position="234"> | |
931 | - <caret line="78" column="44" selection-start-line="78" selection-start-column="44" selection-end-line="78" selection-end-column="44" /> | |
932 | - </state> | |
933 | - </provider> | |
934 | - </entry> | |
935 | 901 | <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/report/excelReport/mapper/ExcelReportMapper.java"> |
936 | 902 | <provider selected="true" editor-type-id="text-editor"> |
937 | 903 | <state relative-caret-position="100"> |
... | ... | @@ -960,5 +926,168 @@ |
960 | 926 | </state> |
961 | 927 | </provider> |
962 | 928 | </entry> |
929 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/bom/service/BomDetailServiceImpl.java"> | |
930 | + <provider selected="true" editor-type-id="text-editor"> | |
931 | + <state relative-caret-position="95"> | |
932 | + <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" /> | |
933 | + </state> | |
934 | + </provider> | |
935 | + </entry> | |
936 | + <entry file="file://$PROJECT_DIR$/src/main/resources/mybatis/config/BomHeaderMapper.xml"> | |
937 | + <provider selected="true" editor-type-id="text-editor"> | |
938 | + <state relative-caret-position="177"> | |
939 | + <caret line="37" column="25" lean-forward="true" selection-start-line="37" selection-start-column="25" selection-end-line="37" selection-end-column="25" /> | |
940 | + </state> | |
941 | + </provider> | |
942 | + </entry> | |
943 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/bom/controller/BomHeaderController.java"> | |
944 | + <provider selected="true" editor-type-id="text-editor"> | |
945 | + <state relative-caret-position="285"> | |
946 | + <caret line="50" column="31" lean-forward="true" selection-start-line="50" selection-start-column="31" selection-end-line="50" selection-end-column="31" /> | |
947 | + </state> | |
948 | + </provider> | |
949 | + </entry> | |
950 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/bom/service/BomHeaderServiceImpl.java"> | |
951 | + <provider selected="true" editor-type-id="text-editor"> | |
952 | + <state relative-caret-position="95"> | |
953 | + <caret line="8" column="13" selection-start-line="8" selection-start-column="13" selection-end-line="8" selection-end-column="13" /> | |
954 | + </state> | |
955 | + </provider> | |
956 | + </entry> | |
957 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/HuaHengApplication.java"> | |
958 | + <provider selected="true" editor-type-id="text-editor"> | |
959 | + <state relative-caret-position="232"> | |
960 | + <caret line="26" column="42" selection-start-line="26" selection-start-column="42" selection-end-line="26" selection-end-column="42" /> | |
961 | + </state> | |
962 | + </provider> | |
963 | + </entry> | |
964 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/task/taskHeader/controller.java"> | |
965 | + <provider selected="true" editor-type-id="text-editor"> | |
966 | + <state relative-caret-position="38"> | |
967 | + <caret line="2" column="23" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" /> | |
968 | + </state> | |
969 | + </provider> | |
970 | + </entry> | |
971 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/service/InventoryHeaderServiceImpl.java"> | |
972 | + <provider selected="true" editor-type-id="text-editor"> | |
973 | + <state relative-caret-position="300"> | |
974 | + <caret line="36" column="22" selection-start-line="36" selection-start-column="22" selection-end-line="36" selection-end-column="22" /> | |
975 | + <folding> | |
976 | + <element signature="imports" expanded="true" /> | |
977 | + </folding> | |
978 | + </state> | |
979 | + </provider> | |
980 | + </entry> | |
981 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryHeader/service/InventoryHeaderService.java"> | |
982 | + <provider selected="true" editor-type-id="text-editor"> | |
983 | + <state relative-caret-position="209"> | |
984 | + <caret line="14" column="22" selection-start-line="14" selection-start-column="22" selection-end-line="14" selection-end-column="22" /> | |
985 | + </state> | |
986 | + </provider> | |
987 | + </entry> | |
988 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/inventory/inventoryDetail/controller/InventoryDetailController.java"> | |
989 | + <provider selected="true" editor-type-id="text-editor"> | |
990 | + <state relative-caret-position="494"> | |
991 | + <caret line="107" column="47" lean-forward="true" selection-start-line="107" selection-start-column="47" selection-end-line="107" selection-end-column="47" /> | |
992 | + </state> | |
993 | + </provider> | |
994 | + </entry> | |
995 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/task/taskHeader/service/TaskHeaderServiceImpl.java"> | |
996 | + <provider selected="true" editor-type-id="text-editor"> | |
997 | + <state relative-caret-position="76"> | |
998 | + <caret line="10" column="13" selection-start-line="10" selection-start-column="13" selection-end-line="10" selection-end-column="13" /> | |
999 | + </state> | |
1000 | + </provider> | |
1001 | + </entry> | |
1002 | + <entry file="file://$PROJECT_DIR$/src/main/resources/mybatis/task/TaskHeaderMapper.xml"> | |
1003 | + <provider selected="true" editor-type-id="text-editor"> | |
1004 | + <state relative-caret-position="48"> | |
1005 | + <caret line="3" column="30" selection-start-line="3" selection-start-column="17" selection-end-line="3" selection-end-column="30" /> | |
1006 | + </state> | |
1007 | + </provider> | |
1008 | + </entry> | |
1009 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/task/taskHeader/mapper/TaskHeaderMapper.java"> | |
1010 | + <provider selected="true" editor-type-id="text-editor"> | |
1011 | + <state relative-caret-position="76"> | |
1012 | + <caret line="5" column="17" selection-start-line="5" selection-start-column="17" selection-end-line="5" selection-end-column="17" /> | |
1013 | + </state> | |
1014 | + </provider> | |
1015 | + </entry> | |
1016 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/material/controller/MaterialController.java"> | |
1017 | + <provider selected="true" editor-type-id="text-editor"> | |
1018 | + <state relative-caret-position="-114"> | |
1019 | + <caret line="38" selection-start-line="38" selection-end-line="41" selection-end-column="44" /> | |
1020 | + </state> | |
1021 | + </provider> | |
1022 | + </entry> | |
1023 | + <entry file="jar://$MAVEN_REPOSITORY$/com/baomidou/mybatis-plus-extension/3.1.2/mybatis-plus-extension-3.1.2.jar!/com/baomidou/mybatisplus/extension/service/IService.class"> | |
1024 | + <provider selected="true" editor-type-id="text-editor"> | |
1025 | + <state relative-caret-position="226"> | |
1026 | + <caret line="92" column="12" selection-start-line="92" selection-start-column="12" selection-end-line="92" selection-end-column="12" /> | |
1027 | + </state> | |
1028 | + </provider> | |
1029 | + </entry> | |
1030 | + <entry file="file://$PROJECT_DIR$/src/main/resources/templates/task/task/task.html"> | |
1031 | + <provider selected="true" editor-type-id="text-editor"> | |
1032 | + <state relative-caret-position="-1853"> | |
1033 | + <caret line="141" column="36" selection-start-line="141" selection-start-column="32" selection-end-line="141" selection-end-column="36" /> | |
1034 | + <folding> | |
1035 | + <element signature="n#style#0;n#i#0;n#a#0;n#!!top" expanded="true" /> | |
1036 | + <element signature="n#style#0;n#a#0;n#!!top" expanded="true" /> | |
1037 | + </folding> | |
1038 | + </state> | |
1039 | + </provider> | |
1040 | + </entry> | |
1041 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/task/taskHeader/service/TaskHeaderService.java"> | |
1042 | + <provider selected="true" editor-type-id="text-editor"> | |
1043 | + <state relative-caret-position="57"> | |
1044 | + <caret line="4" column="17" selection-start-line="4" selection-start-column="17" selection-end-line="4" selection-end-column="17" /> | |
1045 | + </state> | |
1046 | + </provider> | |
1047 | + </entry> | |
1048 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/warehouse/controller/WareHouseController.java"> | |
1049 | + <provider selected="true" editor-type-id="text-editor"> | |
1050 | + <state relative-caret-position="38"> | |
1051 | + <caret line="61" column="49" selection-start-line="61" selection-start-column="40" selection-end-line="61" selection-end-column="49" /> | |
1052 | + </state> | |
1053 | + </provider> | |
1054 | + </entry> | |
1055 | + <entry file="file://$PROJECT_DIR$/src/main/resources/templates/config/container/container.html"> | |
1056 | + <provider selected="true" editor-type-id="text-editor"> | |
1057 | + <state relative-caret-position="323"> | |
1058 | + <caret line="20" column="53" selection-start-line="20" selection-start-column="49" selection-end-line="20" selection-end-column="53" /> | |
1059 | + </state> | |
1060 | + </provider> | |
1061 | + </entry> | |
1062 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/config/container/controller/ContainerController.java"> | |
1063 | + <provider selected="true" editor-type-id="text-editor"> | |
1064 | + <state relative-caret-position="304"> | |
1065 | + <caret line="44" column="35" selection-start-line="44" selection-start-column="26" selection-end-line="44" selection-end-column="35" /> | |
1066 | + </state> | |
1067 | + </provider> | |
1068 | + </entry> | |
1069 | + <entry file="file://$PROJECT_DIR$/src/main/java/com/huaheng/pc/task/taskHeader/controller/TaskHeaderController.java"> | |
1070 | + <provider selected="true" editor-type-id="text-editor"> | |
1071 | + <state relative-caret-position="167"> | |
1072 | + <caret line="40" column="38" selection-start-line="40" selection-start-column="38" selection-end-line="40" selection-end-column="38" /> | |
1073 | + <folding> | |
1074 | + <element signature="imports" expanded="true" /> | |
1075 | + <element signature="e#1660#1661#0" expanded="true" /> | |
1076 | + <element signature="e#1704#1705#0" expanded="true" /> | |
1077 | + </folding> | |
1078 | + </state> | |
1079 | + </provider> | |
1080 | + </entry> | |
1081 | + <entry file="file://$PROJECT_DIR$/src/main/resources/templates/task/taskHeader/taskHeader.html"> | |
1082 | + <provider selected="true" editor-type-id="text-editor"> | |
1083 | + <state relative-caret-position="91"> | |
1084 | + <caret line="167" column="33" lean-forward="true" selection-start-line="167" selection-start-column="33" selection-end-line="167" selection-end-column="33" /> | |
1085 | + <folding> | |
1086 | + <element signature="n#style#0;n#i#0;n#a#0;n#!!top" expanded="true" /> | |
1087 | + <element signature="n#style#0;n#a#0;n#!!top" expanded="true" /> | |
1088 | + </folding> | |
1089 | + </state> | |
1090 | + </provider> | |
1091 | + </entry> | |
963 | 1092 | </component> |
964 | 1093 | </project> |
965 | 1094 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/common/utils/TreeUtils.java
src/main/java/com/huaheng/pc/config/alarmLevel/controller/AlarmLevelController.java
0 → 100644
1 | +package com.huaheng.pc.config.alarmLevel.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.alarmLevel.domain.AlarmLevel; | |
18 | +import com.huaheng.pc.config.alarmLevel.service.AlarmLevelService; | |
19 | +import com.huaheng.pc.config.sendMail.domain.SendMail; | |
20 | +import com.huaheng.pc.config.sendMail.service.SendMailService; | |
21 | +import io.swagger.annotations.Api; | |
22 | +import io.swagger.annotations.ApiOperation; | |
23 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | |
24 | +import org.springframework.stereotype.Controller; | |
25 | +import org.springframework.ui.ModelMap; | |
26 | +import org.springframework.web.bind.annotation.*; | |
27 | + | |
28 | +import javax.annotation.Resource; | |
29 | +import java.util.ArrayList; | |
30 | +import java.util.List; | |
31 | + | |
32 | +@Api(tags = "预警等级") | |
33 | +@Controller | |
34 | +@RequestMapping("/config/alarmLevel") | |
35 | +public class AlarmLevelController extends BaseController { | |
36 | + | |
37 | + @Resource | |
38 | + private AlarmLevelService alarmLevelService; | |
39 | + @Resource | |
40 | + private SendMailService sendMailService; | |
41 | + | |
42 | + private String prefix = "config/alarmLevel"; | |
43 | + | |
44 | + @RequiresPermissions("config:containerCapacity:view") | |
45 | + @GetMapping() | |
46 | + public String containerCapacity() | |
47 | + { | |
48 | + return prefix + "/containerCapacity"; | |
49 | + } | |
50 | + | |
51 | + /** | |
52 | + * 查询容器容量列表 | |
53 | + */ | |
54 | + @RequiresPermissions("config:alarmLevel:list") | |
55 | + @Log(title = "配置-预警等级", operating = "查看预警等级列表", action = BusinessType.GRANT) | |
56 | + @PostMapping("/list") | |
57 | + @ResponseBody | |
58 | + public TableDataInfo list(String createdBegin, String createdEnd) { | |
59 | + LambdaQueryWrapper<AlarmLevel> lambdaQueryWrapper = Wrappers.lambdaQuery(); | |
60 | + PageDomain pageDomain = TableSupport.buildPageRequest(); | |
61 | + Integer pageNum = pageDomain.getPageNum(); | |
62 | + Integer pageSize = pageDomain.getPageSize(); | |
63 | + | |
64 | + lambdaQueryWrapper.ge(StringUtils.isNotEmpty(createdBegin), AlarmLevel::getCreated, createdBegin) | |
65 | + .le(StringUtils.isNotEmpty(createdEnd), AlarmLevel::getCreated, createdEnd) | |
66 | + .in(AlarmLevel::getCompanyCode, ShiroUtils.getCompanyCodeList()) | |
67 | + .eq(AlarmLevel::getWarehouseCode, ShiroUtils.getWarehouseCode()) | |
68 | + .orderByAsc(AlarmLevel::getId); | |
69 | + | |
70 | + if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){ | |
71 | + /** | |
72 | + * 使用分页查询 | |
73 | + */ | |
74 | + Page<AlarmLevel> page = new Page<>(pageNum, pageSize); | |
75 | + IPage<AlarmLevel> iPage = alarmLevelService.page(page, lambdaQueryWrapper); | |
76 | + return getMpDataTable(iPage.getRecords(),iPage.getTotal()); | |
77 | + } else { | |
78 | + List<AlarmLevel> list = alarmLevelService.list(lambdaQueryWrapper); | |
79 | + return getDataTable(list); | |
80 | + } | |
81 | + } | |
82 | + | |
83 | + /** | |
84 | + * 新增预警等级 | |
85 | + */ | |
86 | + @GetMapping("/add") | |
87 | + public String add() { | |
88 | + return prefix + "/add"; | |
89 | + } | |
90 | + | |
91 | + /** | |
92 | + * 新增保存预警等级 | |
93 | + */ | |
94 | + @ApiOperation(value="新增预警等级 ", notes="新增预警等级 ", httpMethod = "POST") | |
95 | + @RequiresPermissions("config:alarmLevel:add") | |
96 | + @Log(title = "配置-预警等级 ",operating = "新增预警等级 ", action = BusinessType.INSERT) | |
97 | + @PostMapping("/add") | |
98 | + @ResponseBody | |
99 | + public AjaxResult addSave(AlarmLevel alarmLevel) { | |
100 | + alarmLevel.setWarehouseCode(ShiroUtils.getWarehouseCode()); | |
101 | + LambdaQueryWrapper<AlarmLevel> lambdaQueryWrapper = Wrappers.lambdaQuery(); | |
102 | + lambdaQueryWrapper.eq(AlarmLevel::getLevel, alarmLevel.getLevel()) | |
103 | + .eq(AlarmLevel::getCompanyCode, alarmLevel.getCompanyCode()) | |
104 | + .eq(AlarmLevel::getWarehouseCode, alarmLevel.getWarehouseCode()); | |
105 | + AlarmLevel alarmLevel1 = alarmLevelService.getOne(lambdaQueryWrapper); | |
106 | + if (alarmLevel != null){ | |
107 | + return AjaxResult.error("该记录已存在"); | |
108 | + } | |
109 | + alarmLevel.setCreatedBy(ShiroUtils.getLoginName()); | |
110 | + alarmLevel.setLastUpdateBy(ShiroUtils.getLoginName()); | |
111 | + return toAjax(alarmLevelService.save(alarmLevel)); | |
112 | + } | |
113 | + | |
114 | + /** | |
115 | + * 修改预警等级 | |
116 | + */ | |
117 | + @GetMapping("/edit/{id}") | |
118 | + public String edit(@PathVariable("id") Integer id, ModelMap mmap) { | |
119 | + AlarmLevel alarmLevel = alarmLevelService.getById(id); | |
120 | + mmap.put("alarmLevel", alarmLevel); | |
121 | + return prefix + "/edit"; | |
122 | + } | |
123 | + | |
124 | + /** | |
125 | + * 修改保存预警等级 | |
126 | + */ | |
127 | + @ApiOperation(value="修改预警等级信息", notes="修改预警等级信息", httpMethod = "POST") | |
128 | + @RequiresPermissions("config:warehouse:edit") | |
129 | + @Log(title = "配置-预警等级 ",operating = "修改预警等级 ", action = BusinessType.UPDATE) | |
130 | + @PostMapping("/edit") | |
131 | + @ResponseBody | |
132 | + public AjaxResult editSave(AlarmLevel alarmLevel) { | |
133 | + alarmLevel.setLastUpdateBy(ShiroUtils.getLoginName()); | |
134 | + return toAjax(alarmLevelService.updateById(alarmLevel)); | |
135 | + } | |
136 | + | |
137 | + /** | |
138 | + * 删除预警等级 | |
139 | + */ | |
140 | + @ApiOperation(value="删除预警等级 ", notes="单条删除或批量删除预警等级 ,示例1或1,2,3", httpMethod = "POST") | |
141 | + @RequiresPermissions("config:receiptType:remove") | |
142 | + @Log(title = "配置-预警等级 ",operating = "删除预警等级 ", action = BusinessType.DELETE) | |
143 | + @PostMapping( "/remove") | |
144 | + @ResponseBody | |
145 | + public AjaxResult remove(String ids) { | |
146 | + if (StringUtils.isEmpty(ids)) { | |
147 | + return AjaxResult.error("id不能为空"); | |
148 | + } | |
149 | + List<Integer> list = new ArrayList<>(); | |
150 | + for (Integer id : Convert.toIntArray(ids)) { | |
151 | + LambdaQueryWrapper<SendMail> lambda = Wrappers.lambdaQuery(); | |
152 | + lambda.eq(SendMail::getWarningLevel, alarmLevelService.getById(id).getLevel()); | |
153 | + List<SendMail> sendMails = sendMailService.list(lambda); | |
154 | + if (sendMails != null) { | |
155 | + return AjaxResult.error("该类型正在被使用"); | |
156 | + } | |
157 | + list.add(id); | |
158 | + } | |
159 | + return toAjax(alarmLevelService.removeByIds(list)); | |
160 | + } | |
161 | +} | |
... | ... |
src/main/java/com/huaheng/pc/config/alarmLevel/domain/AlarmLevel.java
0 → 100644
1 | +package com.huaheng.pc.config.alarmLevel.domain; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.annotation.IdType; | |
4 | +import com.baomidou.mybatisplus.annotation.TableField; | |
5 | +import com.baomidou.mybatisplus.annotation.TableId; | |
6 | +import com.baomidou.mybatisplus.annotation.TableName; | |
7 | +import io.swagger.annotations.ApiModel; | |
8 | +import io.swagger.annotations.ApiModelProperty; | |
9 | +import java.io.Serializable; | |
10 | +import java.util.Date; | |
11 | +import lombok.Data; | |
12 | + | |
13 | +@ApiModel(value="com.huaheng.pc.config.alarmLevel.domain.AlarmLevel") | |
14 | +@Data | |
15 | +@TableName(value = "alarm_level") | |
16 | +public class AlarmLevel implements Serializable { | |
17 | + /** | |
18 | + * 主键、自增字段 | |
19 | + */ | |
20 | + @TableId(value = "id", type = IdType.AUTO) | |
21 | + @ApiModelProperty(value="主键、自增字段") | |
22 | + private Integer id; | |
23 | + | |
24 | + /** | |
25 | + * 仓库编码 | |
26 | + */ | |
27 | + @TableField(value = "warehouseCode") | |
28 | + @ApiModelProperty(value="仓库编码") | |
29 | + private String warehouseCode; | |
30 | + | |
31 | + /** | |
32 | + * 货主编码 | |
33 | + */ | |
34 | + @TableField(value = "companyCode") | |
35 | + @ApiModelProperty(value="货主编码") | |
36 | + private String companyCode; | |
37 | + | |
38 | + /** | |
39 | + * 预警类型 | |
40 | + */ | |
41 | + @TableField(value = "type") | |
42 | + @ApiModelProperty(value="预警类型") | |
43 | + private Integer type; | |
44 | + | |
45 | + /** | |
46 | + * 等级 | |
47 | + */ | |
48 | + @TableField(value = "level") | |
49 | + @ApiModelProperty(value="等级") | |
50 | + private Integer level; | |
51 | + | |
52 | + /** | |
53 | + * 时间阈值 | |
54 | + */ | |
55 | + @TableField(value = "timeThreshold") | |
56 | + @ApiModelProperty(value="时间阈值") | |
57 | + private Integer timeThreshold; | |
58 | + | |
59 | + /** | |
60 | + * 创建时间 | |
61 | + */ | |
62 | + @TableField(value = "created") | |
63 | + @ApiModelProperty(value="创建时间") | |
64 | + private Date created; | |
65 | + | |
66 | + /** | |
67 | + * 创建用户 | |
68 | + */ | |
69 | + @TableField(value = "createdBy") | |
70 | + @ApiModelProperty(value="创建用户") | |
71 | + private String createdBy; | |
72 | + | |
73 | + /** | |
74 | + * 更新时间 | |
75 | + */ | |
76 | + @TableField(value = "lastUpdate") | |
77 | + @ApiModelProperty(value="更新时间") | |
78 | + private Date lastUpdate; | |
79 | + | |
80 | + /** | |
81 | + * 更新用户 | |
82 | + */ | |
83 | + @TableField(value = "lastUpdateBy") | |
84 | + @ApiModelProperty(value="更新用户") | |
85 | + private String lastUpdateBy; | |
86 | + | |
87 | + /** | |
88 | + * 是否有效 | |
89 | + */ | |
90 | + @TableField(value = "enable") | |
91 | + @ApiModelProperty(value="是否有效") | |
92 | + private Boolean enable; | |
93 | + | |
94 | + /** | |
95 | + * 自定义字段 | |
96 | + */ | |
97 | + @TableField(value = "userDef1") | |
98 | + @ApiModelProperty(value="自定义字段") | |
99 | + private String userDef1; | |
100 | + | |
101 | + private static final long serialVersionUID = 1L; | |
102 | +} | |
0 | 103 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/config/alarmLevel/mapper/AlarmLevelMapper.java
0 → 100644
src/main/java/com/huaheng/pc/general/warehouseCopany/service/WarehouseCompanyServiceImpl.java renamed to src/main/java/com/huaheng/pc/config/alarmLevel/service/AlarmLevelService.java
1 | -package com.huaheng.pc.general.warehouseCopany.service; | |
1 | +package com.huaheng.pc.config.alarmLevel.service; | |
2 | 2 | |
3 | 3 | import org.springframework.stereotype.Service; |
4 | 4 | import javax.annotation.Resource; |
5 | 5 | import java.util.List; |
6 | 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
7 | -import com.huaheng.pc.general.warehouseCopany.mapper.WarehouseCompanyMapper; | |
8 | -import com.huaheng.pc.general.warehouseCopany.domain.WarehouseCompany; | |
9 | -import com.huaheng.pc.general.warehouseCopany.service.WarehouseCompanyService; | |
7 | +import com.huaheng.pc.config.alarmLevel.domain.AlarmLevel; | |
8 | +import com.huaheng.pc.config.alarmLevel.mapper.AlarmLevelMapper; | |
10 | 9 | @Service |
11 | -public class WarehouseCompanyServiceImpl extends ServiceImpl<WarehouseCompanyMapper, WarehouseCompany> implements WarehouseCompanyService{ | |
10 | +public class AlarmLevelService extends ServiceImpl<AlarmLevelMapper, AlarmLevel> { | |
12 | 11 | |
13 | 12 | } |
... | ... |
src/main/java/com/huaheng/pc/general/bom/controller/BomDetailController.java renamed to src/main/java/com/huaheng/pc/config/bom/controller/BomDetailController.java
1 | -package com.huaheng.pc.general.bom.controller; | |
1 | +package com.huaheng.pc.config.bom.controller; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | ... | @@ -14,10 +14,10 @@ import com.huaheng.framework.web.domain.AjaxResult; |
14 | 14 | import com.huaheng.framework.web.page.PageDomain; |
15 | 15 | import com.huaheng.framework.web.page.TableDataInfo; |
16 | 16 | import com.huaheng.framework.web.page.TableSupport; |
17 | -import com.huaheng.pc.general.bom.domain.BomDetail; | |
18 | -import com.huaheng.pc.general.bom.service.BomDetailService; | |
19 | -import com.huaheng.pc.general.material.domain.Material; | |
20 | -import com.huaheng.pc.general.material.service.MaterialService; | |
17 | +import com.huaheng.pc.config.bom.domain.BomDetail; | |
18 | +import com.huaheng.pc.config.bom.service.BomDetailService; | |
19 | +import com.huaheng.pc.config.material.domain.Material; | |
20 | +import com.huaheng.pc.config.material.service.MaterialService; | |
21 | 21 | import io.swagger.annotations.ApiOperation; |
22 | 22 | import io.swagger.annotations.ApiParam; |
23 | 23 | import org.apache.shiro.authz.annotation.RequiresPermissions; |
... | ... | @@ -30,17 +30,17 @@ import java.util.ArrayList; |
30 | 30 | import java.util.List; |
31 | 31 | |
32 | 32 | @Controller |
33 | -@RequestMapping("/general/bomDetail") | |
33 | +@RequestMapping("/config/bomDetail") | |
34 | 34 | public class BomDetailController extends BaseController { |
35 | 35 | |
36 | - private String prefix = "general/bomDetail"; | |
36 | + private String prefix = "config/bomDetail"; | |
37 | 37 | |
38 | 38 | @Resource |
39 | 39 | private BomDetailService bomDetailService; |
40 | 40 | @Resource |
41 | 41 | private MaterialService materialService; |
42 | 42 | |
43 | - @RequiresPermissions("general:bomHeader:view") | |
43 | + @RequiresPermissions("config:bomHeader:view") | |
44 | 44 | @Log(title = "管理-推送详情列表", operating = "推送详情列表", action = BusinessType.GRANT) |
45 | 45 | @GetMapping("/list/{id}") |
46 | 46 | public String list(@PathVariable("id")Integer id, ModelMap mmap) { |
... | ... | @@ -52,7 +52,7 @@ public class BomDetailController extends BaseController { |
52 | 52 | * 查询商品详情 |
53 | 53 | */ |
54 | 54 | @ApiOperation(value="查看商品列表", notes="根据商品id获取商品详情信息", httpMethod = "POST") |
55 | - @RequiresPermissions("general:bomHeader:list") | |
55 | + @RequiresPermissions("config:bomHeader:list") | |
56 | 56 | @Log(title = "通用-商品管理", operating = "查看商品列表", action = BusinessType.GRANT) |
57 | 57 | @PostMapping("/list") |
58 | 58 | @ResponseBody |
... | ... | @@ -85,7 +85,7 @@ public class BomDetailController extends BaseController { |
85 | 85 | * 新增保存商品 |
86 | 86 | */ |
87 | 87 | @ApiOperation(value="新增商品详情", notes="新增商品详情", httpMethod = "POST") |
88 | - @RequiresPermissions("general:bomDetail:add") | |
88 | + @RequiresPermissions("config:bomDetail:add") | |
89 | 89 | @Log(title = "通用-商品", operating = "新增商品", action = BusinessType.INSERT) |
90 | 90 | @PostMapping("/add") |
91 | 91 | @ResponseBody |
... | ... | @@ -121,7 +121,7 @@ public class BomDetailController extends BaseController { |
121 | 121 | * 修改保存商品详情 |
122 | 122 | */ |
123 | 123 | @ApiOperation(value="修改商品详情", notes="修改商品详情", httpMethod = "POST") |
124 | - @RequiresPermissions("general:BomDetail:edit") | |
124 | + @RequiresPermissions("config:BomDetail:edit") | |
125 | 125 | @Log(title = "通用-商品详情", operating = "修改商品详情", action = BusinessType.UPDATE) |
126 | 126 | @PostMapping("/edit") |
127 | 127 | @ResponseBody |
... | ... | @@ -134,7 +134,7 @@ public class BomDetailController extends BaseController { |
134 | 134 | * 删除商品详情 |
135 | 135 | */ |
136 | 136 | @ApiOperation(value="删除商品详情", notes="根据id批量删除商品详情,参数示例1,2,3", httpMethod = "POST") |
137 | - @RequiresPermissions("general:BomDetail:remove") | |
137 | + @RequiresPermissions("config:BomDetail:remove") | |
138 | 138 | @Log(title = "通用-商品", operating = "删除商品", action = BusinessType.DELETE) |
139 | 139 | @PostMapping( "/remove") |
140 | 140 | @ResponseBody |
... | ... |
src/main/java/com/huaheng/pc/general/bom/controller/BomHeaderController.java renamed to src/main/java/com/huaheng/pc/config/bom/controller/BomHeaderController.java
1 | -package com.huaheng.pc.general.bom.controller; | |
1 | +package com.huaheng.pc.config.bom.controller; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | ... | @@ -14,12 +14,12 @@ import com.huaheng.framework.web.domain.AjaxResult; |
14 | 14 | import com.huaheng.framework.web.page.PageDomain; |
15 | 15 | import com.huaheng.framework.web.page.TableDataInfo; |
16 | 16 | import com.huaheng.framework.web.page.TableSupport; |
17 | -import com.huaheng.pc.general.bom.domain.BomDetail; | |
18 | -import com.huaheng.pc.general.bom.domain.BomHeader; | |
19 | -import com.huaheng.pc.general.bom.service.BomDetailService; | |
20 | -import com.huaheng.pc.general.bom.service.BomHeaderService; | |
21 | -import com.huaheng.pc.general.material.domain.Material; | |
22 | -import com.huaheng.pc.general.material.service.MaterialService; | |
17 | +import com.huaheng.pc.config.bom.domain.BomDetail; | |
18 | +import com.huaheng.pc.config.bom.domain.BomHeader; | |
19 | +import com.huaheng.pc.config.bom.service.BomDetailService; | |
20 | +import com.huaheng.pc.config.bom.service.BomHeaderService; | |
21 | +import com.huaheng.pc.config.material.domain.Material; | |
22 | +import com.huaheng.pc.config.material.service.MaterialService; | |
23 | 23 | import io.swagger.annotations.ApiOperation; |
24 | 24 | import io.swagger.annotations.ApiParam; |
25 | 25 | import org.apache.shiro.authz.annotation.RequiresPermissions; |
... | ... | @@ -32,10 +32,10 @@ import java.util.ArrayList; |
32 | 32 | import java.util.List; |
33 | 33 | |
34 | 34 | @Controller |
35 | -@RequestMapping("/general/bomHeader") | |
35 | +@RequestMapping("/config/bomHeader") | |
36 | 36 | public class BomHeaderController extends BaseController { |
37 | 37 | |
38 | - private String prefix = "general/bomHeader"; | |
38 | + private String prefix = "config/bomHeader"; | |
39 | 39 | |
40 | 40 | @Resource |
41 | 41 | private BomHeaderService bomHeaderService; |
... | ... | @@ -46,7 +46,7 @@ public class BomHeaderController extends BaseController { |
46 | 46 | @Resource |
47 | 47 | private MaterialService materialService; |
48 | 48 | |
49 | - @RequiresPermissions("general:bomHeader:view") | |
49 | + @RequiresPermissions("config:bomHeader:view") | |
50 | 50 | @GetMapping() |
51 | 51 | public String bomHeader() { |
52 | 52 | System.out.println("商品管理"); |
... | ... | @@ -57,7 +57,7 @@ public class BomHeaderController extends BaseController { |
57 | 57 | * 查询商品列表 |
58 | 58 | */ |
59 | 59 | @ApiOperation(value="查看商品列表", notes="根据物料编码、物料名称、货主编码、创建时间获取商品信息", httpMethod = "POST") |
60 | - @RequiresPermissions("general:bomHeader:list") | |
60 | + @RequiresPermissions("config:bomHeader:list") | |
61 | 61 | @Log(title = "通用-商品管理", operating = "查看商品列表", action = BusinessType.GRANT) |
62 | 62 | @PostMapping("/list") |
63 | 63 | @ResponseBody |
... | ... | @@ -98,7 +98,7 @@ public class BomHeaderController extends BaseController { |
98 | 98 | * 新增保存商品 |
99 | 99 | */ |
100 | 100 | @ApiOperation(value="新增商品", notes="新增商品", httpMethod = "POST") |
101 | - @RequiresPermissions("general:bomHeader:add") | |
101 | + @RequiresPermissions("config:bomHeader:add") | |
102 | 102 | @Log(title = "通用-商品", operating = "新增商品", action = BusinessType.INSERT) |
103 | 103 | @PostMapping("/add") |
104 | 104 | @ResponseBody |
... | ... | @@ -136,7 +136,7 @@ public class BomHeaderController extends BaseController { |
136 | 136 | * 修改保存商品 |
137 | 137 | */ |
138 | 138 | @ApiOperation(value="修改商品", notes="修改商品", httpMethod = "POST") |
139 | - @RequiresPermissions("general:bomHeader:edit") | |
139 | + @RequiresPermissions("config:bomHeader:edit") | |
140 | 140 | @Log(title = "通用-商品", operating = "修改商品", action = BusinessType.UPDATE) |
141 | 141 | @PostMapping("/edit") |
142 | 142 | @ResponseBody |
... | ... | @@ -149,7 +149,7 @@ public class BomHeaderController extends BaseController { |
149 | 149 | * 删除容器 |
150 | 150 | */ |
151 | 151 | @ApiOperation(value="删除商品", notes="根据id批量删除商品,参数示例1,2,3", httpMethod = "POST") |
152 | - @RequiresPermissions("general:bomHeader:remove") | |
152 | + @RequiresPermissions("config:bomHeader:remove") | |
153 | 153 | @Log(title = "通用-商品", operating = "删除商品", action = BusinessType.DELETE) |
154 | 154 | @PostMapping( "/remove") |
155 | 155 | @ResponseBody |
... | ... |
src/main/java/com/huaheng/pc/general/bom/domain/BomDetail.java renamed to src/main/java/com/huaheng/pc/config/bom/domain/BomDetail.java
1 | -package com.huaheng.pc.general.bom.domain; | |
1 | +package com.huaheng.pc.config.bom.domain; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.annotation.IdType; |
4 | 4 | import com.baomidou.mybatisplus.annotation.TableField; |
... | ... | @@ -10,7 +10,7 @@ import java.io.Serializable; |
10 | 10 | import java.util.Date; |
11 | 11 | import lombok.Data; |
12 | 12 | |
13 | -@ApiModel(value="com.huaheng.pc.general.bom.domain.BomDetail") | |
13 | +@ApiModel(value="com.huaheng.pc.config.bom.domain.BomDetail") | |
14 | 14 | @Data |
15 | 15 | @TableName(value = "bom_detail") |
16 | 16 | public class BomDetail implements Serializable { |
... | ... |
src/main/java/com/huaheng/pc/general/bom/domain/BomHeader.java renamed to src/main/java/com/huaheng/pc/config/bom/domain/BomHeader.java
1 | -package com.huaheng.pc.general.bom.domain; | |
1 | +package com.huaheng.pc.config.bom.domain; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.annotation.IdType; |
4 | 4 | import com.baomidou.mybatisplus.annotation.TableField; |
... | ... | @@ -10,7 +10,7 @@ import java.io.Serializable; |
10 | 10 | import java.util.Date; |
11 | 11 | import lombok.Data; |
12 | 12 | |
13 | -@ApiModel(value="com.huaheng.pc.general.bom.domain.BomHeader") | |
13 | +@ApiModel(value="com.huaheng.pc.config.bom.domain.BomHeader") | |
14 | 14 | @Data |
15 | 15 | @TableName(value = "bom_header") |
16 | 16 | public class BomHeader implements Serializable { |
... | ... |
src/main/java/com/huaheng/pc/general/bom/mapper/BomDetailMapper.java renamed to src/main/java/com/huaheng/pc/config/bom/mapper/BomDetailMapper.java
1 | -package com.huaheng.pc.general.bom.mapper; | |
1 | +package com.huaheng.pc.config.bom.mapper; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | -import com.huaheng.pc.general.bom.domain.BomDetail; | |
4 | +import com.huaheng.pc.config.bom.domain.BomDetail; | |
5 | 5 | |
6 | 6 | public interface BomDetailMapper extends BaseMapper<BomDetail> { |
7 | 7 | } |
8 | 8 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/general/bom/mapper/BomHeaderMapper.java renamed to src/main/java/com/huaheng/pc/config/bom/mapper/BomHeaderMapper.java
1 | -package com.huaheng.pc.general.bom.mapper; | |
1 | +package com.huaheng.pc.config.bom.mapper; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | -import com.huaheng.pc.general.bom.domain.BomHeader; | |
4 | +import com.huaheng.pc.config.bom.domain.BomHeader; | |
5 | 5 | |
6 | 6 | public interface BomHeaderMapper extends BaseMapper<BomHeader> { |
7 | 7 | } |
8 | 8 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/general/bom/service/BomDetailService.java renamed to src/main/java/com/huaheng/pc/config/bom/service/BomDetailService.java
1 | -package com.huaheng.pc.general.bom.service; | |
1 | +package com.huaheng.pc.config.bom.service; | |
2 | 2 | |
3 | -import com.huaheng.pc.general.bom.domain.BomDetail; | |
3 | +import com.huaheng.pc.config.bom.domain.BomDetail; | |
4 | 4 | import com.baomidou.mybatisplus.extension.service.IService; |
5 | 5 | public interface BomDetailService extends IService<BomDetail>{ |
6 | 6 | |
... | ... |
src/main/java/com/huaheng/pc/general/bom/service/BomDetailServiceImpl.java renamed to src/main/java/com/huaheng/pc/config/bom/service/BomDetailServiceImpl.java
1 | -package com.huaheng.pc.general.bom.service; | |
1 | +package com.huaheng.pc.config.bom.service; | |
2 | 2 | |
3 | 3 | import org.springframework.stereotype.Service; |
4 | 4 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
5 | -import com.huaheng.pc.general.bom.domain.BomDetail; | |
6 | -import com.huaheng.pc.general.bom.mapper.BomDetailMapper; | |
5 | +import com.huaheng.pc.config.bom.domain.BomDetail; | |
6 | +import com.huaheng.pc.config.bom.mapper.BomDetailMapper; | |
7 | 7 | |
8 | 8 | @Service |
9 | 9 | public class BomDetailServiceImpl extends ServiceImpl<BomDetailMapper, BomDetail> implements BomDetailService{ |
... | ... |
src/main/java/com/huaheng/pc/general/bom/service/BomHeaderService.java renamed to src/main/java/com/huaheng/pc/config/bom/service/BomHeaderService.java
1 | -package com.huaheng.pc.general.bom.service; | |
1 | +package com.huaheng.pc.config.bom.service; | |
2 | 2 | |
3 | -import com.huaheng.pc.general.bom.domain.BomHeader; | |
3 | +import com.huaheng.pc.config.bom.domain.BomHeader; | |
4 | 4 | import com.baomidou.mybatisplus.extension.service.IService; |
5 | 5 | public interface BomHeaderService extends IService<BomHeader>{ |
6 | 6 | |
... | ... |
src/main/java/com/huaheng/pc/general/bom/service/BomHeaderServiceImpl.java renamed to src/main/java/com/huaheng/pc/config/bom/service/BomHeaderServiceImpl.java
1 | -package com.huaheng.pc.general.bom.service; | |
1 | +package com.huaheng.pc.config.bom.service; | |
2 | 2 | |
3 | 3 | import org.springframework.stereotype.Service; |
4 | -import javax.annotation.Resource; | |
5 | -import java.util.List; | |
6 | 4 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
7 | -import com.huaheng.pc.general.bom.domain.BomHeader; | |
8 | -import com.huaheng.pc.general.bom.mapper.BomHeaderMapper; | |
9 | -import com.huaheng.pc.general.bom.service.BomHeaderService; | |
5 | +import com.huaheng.pc.config.bom.domain.BomHeader; | |
6 | +import com.huaheng.pc.config.bom.mapper.BomHeaderMapper; | |
7 | + | |
10 | 8 | @Service |
11 | 9 | public class BomHeaderServiceImpl extends ServiceImpl<BomHeaderMapper, BomHeader> implements BomHeaderService{ |
12 | 10 | |
... | ... |
src/main/java/com/huaheng/pc/general/carrier/controller/CarrierController.java renamed to src/main/java/com/huaheng/pc/config/carrier/controller/CarrierController.java
1 | -package com.huaheng.pc.general.carrier.controller; | |
1 | +package com.huaheng.pc.config.carrier.controller; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | ... | @@ -14,8 +14,8 @@ import com.huaheng.framework.web.domain.AjaxResult; |
14 | 14 | import com.huaheng.framework.web.page.PageDomain; |
15 | 15 | import com.huaheng.framework.web.page.TableDataInfo; |
16 | 16 | import com.huaheng.framework.web.page.TableSupport; |
17 | -import com.huaheng.pc.general.carrier.domain.Carrier; | |
18 | -import com.huaheng.pc.general.carrier.service.CarrierService; | |
17 | +import com.huaheng.pc.config.carrier.domain.Carrier; | |
18 | +import com.huaheng.pc.config.carrier.service.CarrierService; | |
19 | 19 | import io.swagger.annotations.ApiOperation; |
20 | 20 | import io.swagger.annotations.ApiParam; |
21 | 21 | import org.apache.shiro.authz.annotation.RequiresPermissions; |
... | ... | @@ -31,15 +31,15 @@ import java.util.List; |
31 | 31 | * 承运商 |
32 | 32 | */ |
33 | 33 | @Controller |
34 | -@RequestMapping("/general/carrier") | |
34 | +@RequestMapping("/config/carrier") | |
35 | 35 | public class CarrierController extends BaseController { |
36 | 36 | |
37 | - private String prefix = "general/carrier"; | |
37 | + private String prefix = "config/carrier"; | |
38 | 38 | |
39 | 39 | @Resource |
40 | 40 | private CarrierService carrierService; |
41 | 41 | |
42 | - @RequiresPermissions("general:carrier:view") | |
42 | + @RequiresPermissions("config:carrier:view") | |
43 | 43 | @GetMapping() |
44 | 44 | public String bomHeader() { |
45 | 45 | return prefix + "/carrier"; |
... | ... | @@ -49,7 +49,7 @@ public class CarrierController extends BaseController { |
49 | 49 | * 查询承运商列表 |
50 | 50 | */ |
51 | 51 | @ApiOperation(value="查看承运商列表", notes="根据承运商编码、名称、创建时间获取承运商信息", httpMethod = "POST") |
52 | - @RequiresPermissions("general:carrier:list") | |
52 | + @RequiresPermissions("config:carrier:list") | |
53 | 53 | @Log(title = "通用-承运商管理", operating = "查看承运商列表", action = BusinessType.GRANT) |
54 | 54 | @PostMapping("/list") |
55 | 55 | @ResponseBody |
... | ... | @@ -90,7 +90,7 @@ public class CarrierController extends BaseController { |
90 | 90 | * 新增保存承运商 |
91 | 91 | */ |
92 | 92 | @ApiOperation(value="新增承运商", notes="新增承运商", httpMethod = "POST") |
93 | - @RequiresPermissions("general:carrier:add") | |
93 | + @RequiresPermissions("config:carrier:add") | |
94 | 94 | @Log(title = "通用-承运商", operating = "新增承运商", action = BusinessType.INSERT) |
95 | 95 | @PostMapping("/add") |
96 | 96 | @ResponseBody |
... | ... | @@ -115,7 +115,7 @@ public class CarrierController extends BaseController { |
115 | 115 | * 修改保存承运商 |
116 | 116 | */ |
117 | 117 | @ApiOperation(value="修改承运商", notes="修改承运商", httpMethod = "POST") |
118 | - @RequiresPermissions("general:carrier:edit") | |
118 | + @RequiresPermissions("config:carrier:edit") | |
119 | 119 | @Log(title = "通用-承运商", operating = "修改承运商", action = BusinessType.UPDATE) |
120 | 120 | @PostMapping("/edit") |
121 | 121 | @ResponseBody |
... | ... | @@ -129,7 +129,7 @@ public class CarrierController extends BaseController { |
129 | 129 | * 删除承运商 |
130 | 130 | */ |
131 | 131 | @ApiOperation(value="删除承运商", notes="根据id批量删除承运商,参数示例1,2,3", httpMethod = "POST") |
132 | - @RequiresPermissions("general:carrier:remove") | |
132 | + @RequiresPermissions("config:carrier:remove") | |
133 | 133 | @Log(title = "通用-承运商", operating = "删除承运商", action = BusinessType.DELETE) |
134 | 134 | @PostMapping( "/remove") |
135 | 135 | @ResponseBody |
... | ... |
src/main/java/com/huaheng/pc/general/carrier/domain/Carrier.java renamed to src/main/java/com/huaheng/pc/config/carrier/domain/Carrier.java
1 | -package com.huaheng.pc.general.carrier.domain; | |
1 | +package com.huaheng.pc.config.carrier.domain; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.annotation.IdType; |
4 | 4 | import com.baomidou.mybatisplus.annotation.TableField; |
... | ... | @@ -13,7 +13,7 @@ import lombok.Data; |
13 | 13 | /** |
14 | 14 | * 承运商 |
15 | 15 | */ |
16 | -@ApiModel(value="com.huaheng.pc.general.carrier.domain.Carrier") | |
16 | +@ApiModel(value="com.huaheng.pc.config.carrier.domain.Carrier") | |
17 | 17 | @Data |
18 | 18 | @TableName(value = "carrier") |
19 | 19 | public class Carrier implements Serializable { |
... | ... |
src/main/java/com/huaheng/pc/general/carrier/mapper/CarrierMapper.java renamed to src/main/java/com/huaheng/pc/config/carrier/mapper/CarrierMapper.java
1 | -package com.huaheng.pc.general.carrier.mapper; | |
1 | +package com.huaheng.pc.config.carrier.mapper; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | -import com.huaheng.pc.general.carrier.domain.Carrier; | |
4 | +import com.huaheng.pc.config.carrier.domain.Carrier; | |
5 | 5 | |
6 | 6 | public interface CarrierMapper extends BaseMapper<Carrier> { |
7 | 7 | } |
8 | 8 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/general/carrier/service/CarrierService.java renamed to src/main/java/com/huaheng/pc/config/carrier/service/CarrierService.java
1 | -package com.huaheng.pc.general.carrier.service; | |
1 | +package com.huaheng.pc.config.carrier.service; | |
2 | 2 | |
3 | -import com.huaheng.pc.general.carrier.domain.Carrier; | |
3 | +import com.huaheng.pc.config.carrier.domain.Carrier; | |
4 | 4 | import com.baomidou.mybatisplus.extension.service.IService; |
5 | 5 | public interface CarrierService extends IService<Carrier>{ |
6 | 6 | |
... | ... |
src/main/java/com/huaheng/pc/general/carrier/service/CarrierServiceImpl.java renamed to src/main/java/com/huaheng/pc/config/carrier/service/CarrierServiceImpl.java
1 | -package com.huaheng.pc.general.carrier.service; | |
1 | +package com.huaheng.pc.config.carrier.service; | |
2 | 2 | |
3 | 3 | import org.springframework.stereotype.Service; |
4 | -import javax.annotation.Resource; | |
5 | -import java.util.List; | |
6 | 4 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
7 | -import com.huaheng.pc.general.carrier.mapper.CarrierMapper; | |
8 | -import com.huaheng.pc.general.carrier.domain.Carrier; | |
9 | -import com.huaheng.pc.general.carrier.service.CarrierService; | |
5 | +import com.huaheng.pc.config.carrier.mapper.CarrierMapper; | |
6 | +import com.huaheng.pc.config.carrier.domain.Carrier; | |
7 | + | |
10 | 8 | @Service |
11 | 9 | public class CarrierServiceImpl extends ServiceImpl<CarrierMapper, Carrier> implements CarrierService{ |
12 | 10 | |
... | ... |
src/main/java/com/huaheng/pc/general/company/controller/CompanyController.java renamed to src/main/java/com/huaheng/pc/config/company/controller/CompanyController.java
1 | -package com.huaheng.pc.general.company.controller; | |
1 | +package com.huaheng.pc.config.company.controller; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | ... | @@ -14,10 +14,10 @@ import com.huaheng.framework.web.domain.AjaxResult; |
14 | 14 | import com.huaheng.framework.web.page.PageDomain; |
15 | 15 | import com.huaheng.framework.web.page.TableDataInfo; |
16 | 16 | import com.huaheng.framework.web.page.TableSupport; |
17 | -import com.huaheng.pc.general.company.domain.Company; | |
18 | -import com.huaheng.pc.general.company.service.CompanyService; | |
19 | -import com.huaheng.pc.general.warehouse.domain.Warehouse; | |
20 | -import com.huaheng.pc.general.warehouse.service.WarehouseService; | |
17 | +import com.huaheng.pc.config.company.domain.Company; | |
18 | +import com.huaheng.pc.config.company.service.CompanyService; | |
19 | +import com.huaheng.pc.config.warehouse.domain.Warehouse; | |
20 | +import com.huaheng.pc.config.warehouse.service.WarehouseService; | |
21 | 21 | import org.apache.shiro.authz.annotation.RequiresPermissions; |
22 | 22 | import org.springframework.stereotype.Controller; |
23 | 23 | import org.springframework.transaction.annotation.Transactional; |
... | ... | @@ -25,21 +25,20 @@ import org.springframework.ui.ModelMap; |
25 | 25 | import org.springframework.web.bind.annotation.*; |
26 | 26 | |
27 | 27 | import javax.annotation.Resource; |
28 | -import java.util.Arrays; | |
29 | 28 | import java.util.List; |
30 | 29 | import java.util.Map; |
31 | 30 | |
32 | 31 | @Controller |
33 | -@RequestMapping("/general/company") | |
32 | +@RequestMapping("/config/company") | |
34 | 33 | public class CompanyController extends BaseController { |
35 | 34 | @Resource |
36 | 35 | private CompanyService companyService; |
37 | 36 | @Resource |
38 | 37 | private WarehouseService warehouseService; |
39 | 38 | |
40 | - private String prefix = "general/company"; | |
39 | + private String prefix = "config/company"; | |
41 | 40 | |
42 | - @RequiresPermissions("general:company:view") | |
41 | + @RequiresPermissions("config:company:view") | |
43 | 42 | @GetMapping() |
44 | 43 | public String company() { |
45 | 44 | return prefix + "/company"; |
... | ... | @@ -48,7 +47,7 @@ public class CompanyController extends BaseController { |
48 | 47 | /** |
49 | 48 | * 查询货主列表 |
50 | 49 | */ |
51 | - @RequiresPermissions("general:company:list") | |
50 | + @RequiresPermissions("config:company:list") | |
52 | 51 | @Log(title = "通用-货主管理", operating = "查看货主列表", action = BusinessType.GRANT) |
53 | 52 | @PostMapping("/list") |
54 | 53 | @ResponseBody |
... | ... | @@ -58,7 +57,7 @@ public class CompanyController extends BaseController { |
58 | 57 | Integer pageNum = pageDomain.getPageNum(); |
59 | 58 | Integer pageSize = pageDomain.getPageSize(); |
60 | 59 | |
61 | - lambdaQueryWrapper.gt(StringUtils.isNotEmpty(createdBegin),Company::getCreated, createdBegin) | |
60 | + lambdaQueryWrapper.gt(StringUtils.isNotEmpty(createdBegin), Company::getCreated, createdBegin) | |
62 | 61 | .lt(StringUtils.isNotEmpty(createdEnd), Company::getCreated, createdEnd) |
63 | 62 | .eq(StringUtils.isNotEmpty(company.getCode()), Company::getCode, company.getCode()) |
64 | 63 | .eq(StringUtils.isNotEmpty(company.getName()), Company::getName, company.getName()) |
... | ... | @@ -95,7 +94,7 @@ public class CompanyController extends BaseController { |
95 | 94 | /** |
96 | 95 | * 新增保存货主 |
97 | 96 | */ |
98 | - @RequiresPermissions("general:company:add") | |
97 | + @RequiresPermissions("config:company:add") | |
99 | 98 | @Log(title = "通用-货主管理", operating = "新增货主", action = BusinessType.INSERT) |
100 | 99 | @PostMapping("/add") |
101 | 100 | @ResponseBody |
... | ... | @@ -119,7 +118,7 @@ public class CompanyController extends BaseController { |
119 | 118 | /** |
120 | 119 | * 修改保存货主 |
121 | 120 | */ |
122 | - @RequiresPermissions("general:company:edit") | |
121 | + @RequiresPermissions("config:company:edit") | |
123 | 122 | @Log(title = "通用-货主管理", operating = "修改货主", action = BusinessType.UPDATE) |
124 | 123 | @PostMapping("/edit") |
125 | 124 | @ResponseBody |
... | ... | @@ -131,7 +130,7 @@ public class CompanyController extends BaseController { |
131 | 130 | /** |
132 | 131 | * 删除货主 |
133 | 132 | */ |
134 | - @RequiresPermissions("general:company:remove") | |
133 | + @RequiresPermissions("config:company:remove") | |
135 | 134 | @Log(title = "通用-货主管理", operating ="删除货主", action = BusinessType.DELETE) |
136 | 135 | @PostMapping( "/remove") |
137 | 136 | @ResponseBody |
... | ... |
src/main/java/com/huaheng/pc/general/company/domain/Company.java renamed to src/main/java/com/huaheng/pc/config/company/domain/Company.java
src/main/java/com/huaheng/pc/general/company/mapper/CompanyMapper.java renamed to src/main/java/com/huaheng/pc/config/company/mapper/CompanyMapper.java
1 | -package com.huaheng.pc.general.company.mapper; | |
2 | -import java.util.Date; | |
1 | +package com.huaheng.pc.config.company.mapper; | |
3 | 2 | |
4 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
5 | -import com.huaheng.pc.general.company.domain.Company; | |
4 | +import com.huaheng.pc.config.company.domain.Company; | |
6 | 5 | import org.apache.ibatis.annotations.Param; |
7 | 6 | |
8 | 7 | import java.util.List; |
... | ... |
src/main/java/com/huaheng/pc/general/company/service/CompanyService.java renamed to src/main/java/com/huaheng/pc/config/company/service/CompanyService.java
1 | -package com.huaheng.pc.general.company.service; | |
1 | +package com.huaheng.pc.config.company.service; | |
2 | 2 | |
3 | -import com.huaheng.framework.web.domain.AjaxResult; | |
4 | -import com.huaheng.pc.general.company.domain.Company; | |
5 | 3 | import com.baomidou.mybatisplus.extension.service.IService; |
4 | +import com.huaheng.framework.web.domain.AjaxResult; | |
5 | +import com.huaheng.pc.config.company.domain.Company; | |
6 | 6 | |
7 | 7 | import java.util.List; |
8 | 8 | import java.util.Map; |
... | ... |
src/main/java/com/huaheng/pc/general/company/service/CompanyServiceImpl.java renamed to src/main/java/com/huaheng/pc/config/company/service/CompanyServiceImpl.java
1 | -package com.huaheng.pc.general.company.service; | |
1 | +package com.huaheng.pc.config.company.service; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
5 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
5 | 6 | import com.huaheng.common.utils.security.ShiroUtils; |
6 | 7 | import com.huaheng.framework.web.domain.AjaxResult; |
7 | -import com.huaheng.pc.config.containerType.domain.ContainerType; | |
8 | -import com.huaheng.pc.general.warehouseCopany.domain.WarehouseCompany; | |
9 | -import com.huaheng.pc.general.warehouseCopany.service.WarehouseCompanyService; | |
8 | +import com.huaheng.pc.config.company.domain.Company; | |
9 | +import com.huaheng.pc.config.company.mapper.CompanyMapper; | |
10 | +import com.huaheng.pc.config.warehouseCompany.domain.WarehouseCompany; | |
11 | +import com.huaheng.pc.config.warehouseCompany.service.WarehouseCompanyService; | |
10 | 12 | import com.huaheng.pc.system.user.domain.UserCompany; |
11 | 13 | import com.huaheng.pc.system.user.mapper.UserCompanyMapper; |
12 | 14 | import org.springframework.stereotype.Service; |
15 | + | |
13 | 16 | import javax.annotation.Resource; |
14 | 17 | import java.util.List; |
15 | 18 | import java.util.Map; |
16 | 19 | |
17 | -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
18 | -import com.huaheng.pc.general.company.mapper.CompanyMapper; | |
19 | -import com.huaheng.pc.general.company.domain.Company; | |
20 | -import com.huaheng.pc.general.company.service.CompanyService; | |
21 | 20 | @Service("companyService") |
22 | -public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> implements CompanyService{ | |
21 | +public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> implements CompanyService { | |
23 | 22 | |
24 | 23 | @Resource |
25 | 24 | private CompanyMapper companyMapper; |
... | ... | @@ -104,7 +103,7 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl |
104 | 103 | |
105 | 104 | public List<Map<String, Object>> getCode(){ |
106 | 105 | LambdaQueryWrapper<Company> lambda = Wrappers.lambdaQuery(); |
107 | - lambda.select(Company::getCode,Company::getId,Company::getName) | |
106 | + lambda.select(Company::getCode, Company::getId, Company::getName) | |
108 | 107 | .eq(Company::getWarehouseCode, ShiroUtils.getWarehouseCode()); |
109 | 108 | return this.listMaps(lambda); |
110 | 109 | } |
... | ... |
src/main/java/com/huaheng/pc/general/container/controller/ContainerController.java renamed to src/main/java/com/huaheng/pc/config/container/controller/ContainerController.java
1 | -package com.huaheng.pc.general.container.controller; | |
1 | +package com.huaheng.pc.config.container.controller; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | ... | @@ -15,9 +15,8 @@ import com.huaheng.framework.web.domain.AjaxResult; |
15 | 15 | import com.huaheng.framework.web.page.PageDomain; |
16 | 16 | import com.huaheng.framework.web.page.TableDataInfo; |
17 | 17 | import com.huaheng.framework.web.page.TableSupport; |
18 | -import com.huaheng.pc.general.container.domain.Container; | |
19 | -import com.huaheng.pc.general.container.service.ContainerService; | |
20 | -import com.huaheng.pc.general.material.domain.Material; | |
18 | +import com.huaheng.pc.config.container.domain.Container; | |
19 | +import com.huaheng.pc.config.container.service.ContainerService; | |
21 | 20 | import io.swagger.annotations.Api; |
22 | 21 | import io.swagger.annotations.ApiOperation; |
23 | 22 | import io.swagger.annotations.ApiParam; |
... | ... | @@ -32,15 +31,15 @@ import java.util.List; |
32 | 31 | |
33 | 32 | @Api(tags={"容器操作类"}) |
34 | 33 | @Controller |
35 | -@RequestMapping("/general/container") | |
34 | +@RequestMapping("/config/container") | |
36 | 35 | public class ContainerController extends BaseController { |
37 | 36 | |
38 | - private String prefix = "general/container"; | |
37 | + private String prefix = "config/container"; | |
39 | 38 | |
40 | 39 | @Resource |
41 | 40 | private ContainerService containerService; |
42 | 41 | |
43 | - @RequiresPermissions("general:container:view") | |
42 | + @RequiresPermissions("config:container:view") | |
44 | 43 | @GetMapping() |
45 | 44 | public String container() { |
46 | 45 | return prefix + "/container"; |
... | ... | @@ -52,7 +51,7 @@ public class ContainerController extends BaseController { |
52 | 51 | @ApiOperation(value="查看容器列表", |
53 | 52 | notes="根据容器编号、库位编码、容器状态、容器类型、创建时间获取库位的详细信息", |
54 | 53 | httpMethod = "POST") |
55 | - @RequiresPermissions("general:location:list") | |
54 | + @RequiresPermissions("config:container:list") | |
56 | 55 | @Log(title = "通用-库位管理", operating = "查看库位列表", action = BusinessType.GRANT) |
57 | 56 | @PostMapping("/list") |
58 | 57 | @ResponseBody |
... | ... | @@ -98,7 +97,7 @@ public class ContainerController extends BaseController { |
98 | 97 | * 新增保存容器 |
99 | 98 | */ |
100 | 99 | @ApiOperation(value="新增容器", notes="根据容器类型、数量批量新增容器", httpMethod = "POST") |
101 | - @RequiresPermissions("general:container:add") | |
100 | + @RequiresPermissions("config:container:add") | |
102 | 101 | @Log(title = "通用-容器", operating = "新增容器", action = BusinessType.INSERT) |
103 | 102 | @PostMapping("/add") |
104 | 103 | @ResponseBody |
... | ... | @@ -124,7 +123,7 @@ public class ContainerController extends BaseController { |
124 | 123 | * 修改保存容器 |
125 | 124 | */ |
126 | 125 | @ApiOperation(value="修改容器", notes="修改容器", httpMethod = "POST") |
127 | - @RequiresPermissions("general:container:edit") | |
126 | + @RequiresPermissions("config:container:edit") | |
128 | 127 | @Log(title = "通用-容器", operating = "修改容器", action = BusinessType.UPDATE) |
129 | 128 | @PostMapping("/edit") |
130 | 129 | @ResponseBody |
... | ... | @@ -137,7 +136,7 @@ public class ContainerController extends BaseController { |
137 | 136 | * 删除容器 |
138 | 137 | */ |
139 | 138 | @ApiOperation(value="删除容器", notes="根据id批量删除容器,参数示例1,2,3", httpMethod = "POST") |
140 | - @RequiresPermissions("general:container:remove") | |
139 | + @RequiresPermissions("config:container:remove") | |
141 | 140 | @Log(title = "通用-容器", operating = "删除容器", action = BusinessType.DELETE) |
142 | 141 | @PostMapping( "/remove") |
143 | 142 | @ResponseBody |
... | ... |
src/main/java/com/huaheng/pc/general/container/domain/Container.java renamed to src/main/java/com/huaheng/pc/config/container/domain/Container.java
1 | -package com.huaheng.pc.general.container.domain; | |
1 | +package com.huaheng.pc.config.container.domain; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.annotation.IdType; |
4 | 4 | import com.baomidou.mybatisplus.annotation.TableField; |
... | ... | @@ -13,7 +13,7 @@ import java.io.Serializable; |
13 | 13 | import java.util.Date; |
14 | 14 | |
15 | 15 | @Data |
16 | -@ApiModel(value="com.huaheng.pc.general.container.domain.Container") | |
16 | +@ApiModel(value="com.huaheng.pc.config.container.domain.Container") | |
17 | 17 | @TableName(value = "container") |
18 | 18 | public class Container implements Serializable { |
19 | 19 | /** |
... | ... |
src/main/java/com/huaheng/pc/general/container/domain/ContainerStatus.java renamed to src/main/java/com/huaheng/pc/config/container/domain/ContainerStatus.java
src/main/java/com/huaheng/pc/general/container/mapper/ContainerMapper.java renamed to src/main/java/com/huaheng/pc/config/container/mapper/ContainerMapper.java
1 | -package com.huaheng.pc.general.container.mapper; | |
1 | +package com.huaheng.pc.config.container.mapper; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | -import com.huaheng.pc.general.container.domain.Container; | |
4 | +import com.huaheng.pc.config.container.domain.Container; | |
5 | 5 | |
6 | 6 | public interface ContainerMapper extends BaseMapper<Container> { |
7 | 7 | |
... | ... |
src/main/java/com/huaheng/pc/general/container/service/ContainerService.java renamed to src/main/java/com/huaheng/pc/config/container/service/ContainerService.java
1 | -package com.huaheng.pc.general.container.service; | |
1 | +package com.huaheng.pc.config.container.service; | |
2 | 2 | |
3 | 3 | import com.huaheng.framework.web.domain.AjaxResult; |
4 | -import com.huaheng.pc.general.container.domain.Container; | |
4 | +import com.huaheng.pc.config.container.domain.Container; | |
5 | 5 | import com.baomidou.mybatisplus.extension.service.IService; |
6 | -import com.huaheng.pc.general.material.domain.Material; | |
7 | 6 | |
8 | 7 | import java.util.List; |
9 | 8 | |
... | ... |
src/main/java/com/huaheng/pc/general/container/service/ContainerServiceImpl.java renamed to src/main/java/com/huaheng/pc/config/container/service/ContainerServiceImpl.java
1 | -package com.huaheng.pc.general.container.service; | |
1 | +package com.huaheng.pc.config.container.service; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
... | ... | @@ -7,20 +7,17 @@ import com.huaheng.common.exception.service.ServiceException; |
7 | 7 | import com.huaheng.common.utils.StringUtils; |
8 | 8 | import com.huaheng.common.utils.security.ShiroUtils; |
9 | 9 | import com.huaheng.framework.web.domain.AjaxResult; |
10 | -import com.huaheng.pc.config.containerType.domain.ContainerType; | |
11 | 10 | import com.huaheng.pc.config.containerType.service.ContainerTypeService; |
12 | -import com.huaheng.pc.general.container.domain.ContainerStatus; | |
13 | -import com.huaheng.pc.general.material.domain.Material; | |
14 | -import org.apache.commons.collections.functors.ConstantFactory; | |
11 | +import com.huaheng.pc.config.container.domain.ContainerStatus; | |
15 | 12 | import org.springframework.stereotype.Service; |
16 | 13 | import javax.annotation.Resource; |
17 | 14 | import java.util.ArrayList; |
18 | 15 | import java.util.Date; |
19 | 16 | import java.util.List; |
20 | 17 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
21 | -import com.huaheng.pc.general.container.domain.Container; | |
22 | -import com.huaheng.pc.general.container.mapper.ContainerMapper; | |
23 | -import com.huaheng.pc.general.container.service.ContainerService; | |
18 | +import com.huaheng.pc.config.container.domain.Container; | |
19 | +import com.huaheng.pc.config.container.mapper.ContainerMapper; | |
20 | + | |
24 | 21 | @Service |
25 | 22 | public class ContainerServiceImpl extends ServiceImpl<ContainerMapper, Container> implements ContainerService{ |
26 | 23 | |
... | ... |
src/main/java/com/huaheng/pc/config/containerCapacity/controller/ContainerCapacityController.java
... | ... | @@ -16,8 +16,7 @@ import com.huaheng.framework.web.page.TableDataInfo; |
16 | 16 | import com.huaheng.framework.web.page.TableSupport; |
17 | 17 | import com.huaheng.pc.config.containerCapacity.domain.ContainerCapacity; |
18 | 18 | import com.huaheng.pc.config.containerCapacity.service.ContainerCapacityService; |
19 | -import com.huaheng.pc.general.material.domain.Material; | |
20 | -import com.huaheng.pc.general.material.service.MaterialService; | |
19 | +import com.huaheng.pc.config.material.service.MaterialService; | |
21 | 20 | import org.apache.shiro.authz.annotation.RequiresPermissions; |
22 | 21 | import org.springframework.beans.factory.annotation.Autowired; |
23 | 22 | import org.springframework.stereotype.Controller; |
... | ... |
src/main/java/com/huaheng/pc/config/containerCapacity/service/ContainerCapacityServiceImpl.java
... | ... | @@ -7,8 +7,8 @@ import com.huaheng.common.utils.security.ShiroUtils; |
7 | 7 | import com.huaheng.framework.web.domain.AjaxResult; |
8 | 8 | import com.huaheng.pc.config.containerType.domain.ContainerType; |
9 | 9 | import com.huaheng.pc.config.containerType.service.ContainerTypeService; |
10 | -import com.huaheng.pc.general.material.domain.Material; | |
11 | -import com.huaheng.pc.general.material.service.MaterialService; | |
10 | +import com.huaheng.pc.config.material.domain.Material; | |
11 | +import com.huaheng.pc.config.material.service.MaterialService; | |
12 | 12 | import org.springframework.beans.factory.annotation.Autowired; |
13 | 13 | import org.springframework.stereotype.Service; |
14 | 14 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
... | ... |
src/main/java/com/huaheng/pc/general/customer/controller/CustomerController.java renamed to src/main/java/com/huaheng/pc/config/customer/controller/CustomerController.java
1 | -package com.huaheng.pc.general.customer.controller; | |
1 | +package com.huaheng.pc.config.customer.controller; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | ... | @@ -14,8 +14,8 @@ import com.huaheng.framework.web.domain.AjaxResult; |
14 | 14 | import com.huaheng.framework.web.page.PageDomain; |
15 | 15 | import com.huaheng.framework.web.page.TableDataInfo; |
16 | 16 | import com.huaheng.framework.web.page.TableSupport; |
17 | -import com.huaheng.pc.general.customer.domain.Customer; | |
18 | -import com.huaheng.pc.general.customer.service.CustomerService; | |
17 | +import com.huaheng.pc.config.customer.domain.Customer; | |
18 | +import com.huaheng.pc.config.customer.service.CustomerServiceImpl; | |
19 | 19 | import com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentHeader; |
20 | 20 | import com.huaheng.pc.shipment.shipmentHeader.service.ShipmentHeaderService; |
21 | 21 | import io.swagger.annotations.Api; |
... | ... | @@ -32,17 +32,17 @@ import java.util.Map; |
32 | 32 | |
33 | 33 | @Api(tags={"客户操作类"}) |
34 | 34 | @Controller |
35 | -@RequestMapping("/general/customer") | |
35 | +@RequestMapping("/config/customer") | |
36 | 36 | public class CustomerController extends BaseController { |
37 | 37 | |
38 | - private String prefix = "general/customer"; | |
38 | + private String prefix = "config/customer"; | |
39 | 39 | |
40 | 40 | @Resource |
41 | - private CustomerService customerService; | |
41 | + private CustomerServiceImpl customerService; | |
42 | 42 | @Resource |
43 | 43 | private ShipmentHeaderService shipmentHeaderService; |
44 | 44 | |
45 | - @RequiresPermissions("general:customer:view") | |
45 | + @RequiresPermissions("config:customer:view") | |
46 | 46 | @GetMapping() |
47 | 47 | public String customer(){ |
48 | 48 | return prefix + "/customer"; |
... | ... | @@ -52,11 +52,11 @@ public class CustomerController extends BaseController { |
52 | 52 | * 查询客户列表 |
53 | 53 | */ |
54 | 54 | @ApiOperation(value="查看客户列表", notes="根据编码、名称、创建时间获取客户的详细信息", httpMethod = "POST") |
55 | - @RequiresPermissions("general:customer:list") | |
55 | + @RequiresPermissions("config:customer:list") | |
56 | 56 | @Log(title = "通用-客户管理",operating = "查看客户信息", action = BusinessType.GRANT) |
57 | 57 | @PostMapping("/list") |
58 | 58 | @ResponseBody |
59 | - public TableDataInfo list(@ApiParam(name="customer",value="编码、名称")Customer customer, | |
59 | + public TableDataInfo list(@ApiParam(name="customer",value="编码、名称") Customer customer, | |
60 | 60 | @ApiParam(name = "createdBegin", value = "起止时间") String createdBegin, |
61 | 61 | @ApiParam(name = "createdEnd", value = "结束时间") String createdEnd){ |
62 | 62 | LambdaQueryWrapper<Customer> lambdaQueryWrapper = Wrappers.lambdaQuery(); |
... | ... | @@ -94,7 +94,7 @@ public class CustomerController extends BaseController { |
94 | 94 | * 新增保存客户 |
95 | 95 | */ |
96 | 96 | @ApiOperation(value="新增客户", notes="新增客户", httpMethod = "POST") |
97 | - @RequiresPermissions("general:customer:add") | |
97 | + @RequiresPermissions("config:customer:add") | |
98 | 98 | @Log(title = "通用-客户管理",operating = "新增客户", action = BusinessType.INSERT) |
99 | 99 | @PostMapping("/add") |
100 | 100 | @ResponseBody |
... | ... | @@ -120,7 +120,7 @@ public class CustomerController extends BaseController { |
120 | 120 | * 修改保存客户 |
121 | 121 | */ |
122 | 122 | @ApiOperation(value="修改客户信息", notes="修改客户信息", httpMethod = "POST") |
123 | - @RequiresPermissions("general:customer:edit") | |
123 | + @RequiresPermissions("config:customer:edit") | |
124 | 124 | @Log(title = "通用-客户管理",operating = "修改客户信息", action = BusinessType.UPDATE) |
125 | 125 | @PostMapping("/edit") |
126 | 126 | @ResponseBody |
... | ... | @@ -133,7 +133,7 @@ public class CustomerController extends BaseController { |
133 | 133 | * 删除客户 |
134 | 134 | */ |
135 | 135 | @ApiOperation(value="删除客户信息", notes="单条删除或批量删除客户信息,示例1或1,2,3", httpMethod = "POST") |
136 | - @RequiresPermissions("general:customer:remove") | |
136 | + @RequiresPermissions("config:customer:remove") | |
137 | 137 | @Log(title = "通用-客户管理",operating = "修改客户", action = BusinessType.DELETE) |
138 | 138 | @PostMapping( "/remove") |
139 | 139 | @ResponseBody |
... | ... |
src/main/java/com/huaheng/pc/general/customer/domain/Customer.java renamed to src/main/java/com/huaheng/pc/config/customer/domain/Customer.java
src/main/java/com/huaheng/pc/general/customer/mapper/CustomerMapper.java renamed to src/main/java/com/huaheng/pc/config/customer/mapper/CustomerMapper.java
1 | -package com.huaheng.pc.general.customer.mapper; | |
1 | +package com.huaheng.pc.config.customer.mapper; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | -import com.huaheng.pc.general.customer.domain.Customer; | |
4 | +import com.huaheng.pc.config.customer.domain.Customer; | |
5 | 5 | |
6 | 6 | public interface CustomerMapper extends BaseMapper<Customer> { |
7 | 7 | } |
8 | 8 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/config/customer/service/CustomerServiceImpl.java
0 → 100644
1 | +package com.huaheng.pc.config.customer.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.IService; | |
4 | +import com.huaheng.pc.config.customer.domain.Customer; | |
5 | +import com.huaheng.pc.config.customer.mapper.CustomerMapper; | |
6 | +import org.springframework.stereotype.Service; | |
7 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
8 | + | |
9 | +@Service | |
10 | +public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements IService<Customer> { | |
11 | + | |
12 | +} | |
... | ... |
src/main/java/com/huaheng/pc/general/location/controller/LocationController.java renamed to src/main/java/com/huaheng/pc/config/location/controller/LocationController.java
1 | -package com.huaheng.pc.general.location.controller; | |
1 | +package com.huaheng.pc.config.location.controller; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | ... | @@ -14,8 +14,8 @@ import com.huaheng.framework.web.domain.AjaxResult; |
14 | 14 | import com.huaheng.framework.web.page.PageDomain; |
15 | 15 | import com.huaheng.framework.web.page.TableDataInfo; |
16 | 16 | import com.huaheng.framework.web.page.TableSupport; |
17 | -import com.huaheng.pc.general.location.domain.Location; | |
18 | -import com.huaheng.pc.general.location.service.LocationService; | |
17 | +import com.huaheng.pc.config.location.domain.Location; | |
18 | +import com.huaheng.pc.config.location.service.LocationService; | |
19 | 19 | import io.swagger.annotations.Api; |
20 | 20 | import io.swagger.annotations.ApiOperation; |
21 | 21 | import io.swagger.annotations.ApiParam; |
... | ... | @@ -29,15 +29,15 @@ import java.util.List; |
29 | 29 | |
30 | 30 | @Api(tags={"库位操作类"}) |
31 | 31 | @Controller |
32 | -@RequestMapping("/general/location") | |
32 | +@RequestMapping("/config/location") | |
33 | 33 | public class LocationController extends BaseController { |
34 | 34 | |
35 | - private String prefix = "general/location"; | |
35 | + private String prefix = "config/location"; | |
36 | 36 | |
37 | 37 | @Resource |
38 | 38 | private LocationService locationService; |
39 | 39 | |
40 | - @RequiresPermissions("general:location:view") | |
40 | + @RequiresPermissions("config:location:view") | |
41 | 41 | @GetMapping() |
42 | 42 | public String location() { |
43 | 43 | return prefix + "/location"; |
... | ... | @@ -49,7 +49,7 @@ public class LocationController extends BaseController { |
49 | 49 | @ApiOperation(value="查看库位列表", |
50 | 50 | notes="根据行、列、层、格、库位类型、库区、库位状态、容器编码、库位名称、库位编码、创建时间获取库位的详细信息", |
51 | 51 | httpMethod = "POST") |
52 | - @RequiresPermissions("general:location:list") | |
52 | + @RequiresPermissions("config:location:list") | |
53 | 53 | @Log(title = "通用-库位管理", operating = "查看库位列表", action = BusinessType.GRANT) |
54 | 54 | @PostMapping("/list") |
55 | 55 | @ResponseBody |
... | ... | @@ -99,7 +99,7 @@ public class LocationController extends BaseController { |
99 | 99 | * 新增保存库位 |
100 | 100 | */ |
101 | 101 | @ApiOperation(value="新增库位", notes="新增单个库位", httpMethod = "POST") |
102 | - @RequiresPermissions("general:location:add") | |
102 | + @RequiresPermissions("config:location:add") | |
103 | 103 | @Log(title = "通用-库位管理", operating = "新增库位", action = BusinessType.INSERT) |
104 | 104 | @PostMapping("/add") |
105 | 105 | @ResponseBody |
... | ... | @@ -122,7 +122,7 @@ public class LocationController extends BaseController { |
122 | 122 | /** |
123 | 123 | * 批量新增保存库位 |
124 | 124 | */ |
125 | - @RequiresPermissions("general:location:add") | |
125 | + @RequiresPermissions("config:location:add") | |
126 | 126 | @ApiOperation(value="新增库位", notes="批量新增库位", httpMethod = "POST") |
127 | 127 | @Log(title = "通用-库位管理", operating = "新增库位", action = BusinessType.INSERT) |
128 | 128 | @PostMapping("/addBatchSave") |
... | ... | @@ -143,7 +143,7 @@ public class LocationController extends BaseController { |
143 | 143 | /** |
144 | 144 | * 修改保存库位 |
145 | 145 | */ |
146 | - @RequiresPermissions("general:location:edit") | |
146 | + @RequiresPermissions("config:location:edit") | |
147 | 147 | @ApiOperation(value="修改库位", notes="批量修改库位", httpMethod = "POST") |
148 | 148 | @Log(title = "通用-库位管理", operating = "修改库位", action = BusinessType.UPDATE) |
149 | 149 | @PostMapping("/edit") |
... | ... | @@ -156,7 +156,7 @@ public class LocationController extends BaseController { |
156 | 156 | /** |
157 | 157 | * 删除库位 |
158 | 158 | */ |
159 | - @RequiresPermissions("general:location:remove") | |
159 | + @RequiresPermissions("config:location:remove") | |
160 | 160 | @Log(title = "通用-库位管理", operating = "删除库位", action = BusinessType.DELETE) |
161 | 161 | @ApiOperation(value="删除库位", notes="批量删除库位", httpMethod = "POST") |
162 | 162 | @PostMapping( "/remove") |
... | ... |
src/main/java/com/huaheng/pc/general/location/domain/Location.java renamed to src/main/java/com/huaheng/pc/config/location/domain/Location.java
src/main/java/com/huaheng/pc/general/location/mapper/LocationMapper.java renamed to src/main/java/com/huaheng/pc/config/location/mapper/LocationMapper.java
1 | -package com.huaheng.pc.general.location.mapper; | |
1 | +package com.huaheng.pc.config.location.mapper; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | -import com.huaheng.pc.general.location.domain.Location; | |
4 | +import com.huaheng.pc.config.location.domain.Location; | |
5 | 5 | import org.apache.ibatis.annotations.Param; |
6 | 6 | |
7 | 7 | public interface LocationMapper extends BaseMapper<Location> { |
... | ... |
src/main/java/com/huaheng/pc/general/location/service/LocationService.java renamed to src/main/java/com/huaheng/pc/config/location/service/LocationService.java
1 | -package com.huaheng.pc.general.location.service; | |
1 | +package com.huaheng.pc.config.location.service; | |
2 | 2 | |
3 | -import com.huaheng.pc.general.location.domain.Location; | |
3 | +import com.huaheng.pc.config.location.domain.Location; | |
4 | 4 | import com.baomidou.mybatisplus.extension.service.IService; |
5 | 5 | public interface LocationService extends IService<Location>{ |
6 | 6 | |
... | ... |
src/main/java/com/huaheng/pc/general/location/service/LocationServiceImpl.java renamed to src/main/java/com/huaheng/pc/config/location/service/LocationServiceImpl.java
1 | -package com.huaheng.pc.general.location.service; | |
1 | +package com.huaheng.pc.config.location.service; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
... | ... | @@ -18,9 +18,9 @@ import java.util.List; |
18 | 18 | import java.util.Map; |
19 | 19 | |
20 | 20 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
21 | -import com.huaheng.pc.general.location.domain.Location; | |
22 | -import com.huaheng.pc.general.location.mapper.LocationMapper; | |
23 | -import com.huaheng.pc.general.location.service.LocationService; | |
21 | +import com.huaheng.pc.config.location.domain.Location; | |
22 | +import com.huaheng.pc.config.location.mapper.LocationMapper; | |
23 | + | |
24 | 24 | @Service("LocationService") |
25 | 25 | public class LocationServiceImpl extends ServiceImpl<LocationMapper, Location> implements LocationService{ |
26 | 26 | |
... | ... |
src/main/java/com/huaheng/pc/general/material/controller/MaterialController.java renamed to src/main/java/com/huaheng/pc/config/material/controller/MaterialController.java
1 | -package com.huaheng.pc.general.material.controller; | |
1 | +package com.huaheng.pc.config.material.controller; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | ... | @@ -16,8 +16,8 @@ import com.huaheng.framework.web.page.TableDataInfo; |
16 | 16 | import com.huaheng.framework.web.page.TableSupport; |
17 | 17 | import com.huaheng.pc.config.materialUnit.domain.MaterialUnit; |
18 | 18 | import com.huaheng.pc.config.materialUnit.service.MaterialUnitService; |
19 | -import com.huaheng.pc.general.material.domain.Material; | |
20 | -import com.huaheng.pc.general.material.service.MaterialService; | |
19 | +import com.huaheng.pc.config.material.domain.Material; | |
20 | +import com.huaheng.pc.config.material.service.MaterialService; | |
21 | 21 | import io.swagger.annotations.Api; |
22 | 22 | import io.swagger.annotations.ApiOperation; |
23 | 23 | import io.swagger.annotations.ApiParam; |
... | ... | @@ -33,10 +33,10 @@ import java.util.Map; |
33 | 33 | |
34 | 34 | @Api(tags={"物料控制类"}) |
35 | 35 | @Controller |
36 | -@RequestMapping("/general/material") | |
36 | +@RequestMapping("/config/material") | |
37 | 37 | public class MaterialController extends BaseController { |
38 | 38 | |
39 | - private String prefix = "general/material"; | |
39 | + private String prefix = "config/material"; | |
40 | 40 | |
41 | 41 | @Resource |
42 | 42 | private MaterialService materialService; |
... | ... | @@ -44,7 +44,7 @@ public class MaterialController extends BaseController { |
44 | 44 | @Resource |
45 | 45 | private MaterialUnitService materialUnitService; |
46 | 46 | |
47 | - @RequiresPermissions("general:material:view") | |
47 | + @RequiresPermissions("config:material:view") | |
48 | 48 | @GetMapping() |
49 | 49 | public String material() { |
50 | 50 | return prefix + "/material"; |
... | ... | @@ -56,7 +56,7 @@ public class MaterialController extends BaseController { |
56 | 56 | @ApiOperation(value="查看物料列表", |
57 | 57 | notes="根据物料编码、名称、规格、物料类别、创建时间获取物料的详细信息", |
58 | 58 | httpMethod = "POST") |
59 | - @RequiresPermissions("general:material:list") | |
59 | + @RequiresPermissions("config:material:list") | |
60 | 60 | @Log(title = "通用-物料管理", operating = "查看物料列表", action = BusinessType.GRANT) |
61 | 61 | @PostMapping("/list") |
62 | 62 | @ResponseBody |
... | ... | @@ -102,7 +102,7 @@ public class MaterialController extends BaseController { |
102 | 102 | * 新增保存物料 |
103 | 103 | */ |
104 | 104 | @ApiOperation(value="新增物料", notes="新增物料", httpMethod = "POST") |
105 | - @RequiresPermissions("general:material:add") | |
105 | + @RequiresPermissions("config:material:add") | |
106 | 106 | @Log(title = "通用-物料管理", operating = "新增物料", action = BusinessType.INSERT) |
107 | 107 | @PostMapping("/add") |
108 | 108 | @ResponseBody |
... | ... | @@ -153,7 +153,7 @@ public class MaterialController extends BaseController { |
153 | 153 | * 修改保存物料 |
154 | 154 | */ |
155 | 155 | @ApiOperation(value="修改物料", notes="修改物料", httpMethod = "POST") |
156 | - @RequiresPermissions("general:material:edit") | |
156 | + @RequiresPermissions("config:material:edit") | |
157 | 157 | @Log(title = "通用-物料管理", operating = "修改物料", action = BusinessType.UPDATE) |
158 | 158 | @PostMapping("/edit") |
159 | 159 | @ResponseBody |
... | ... | @@ -165,7 +165,7 @@ public class MaterialController extends BaseController { |
165 | 165 | /** |
166 | 166 | * 删除物料 |
167 | 167 | */ |
168 | - @RequiresPermissions("general:material:remove") | |
168 | + @RequiresPermissions("config:material:remove") | |
169 | 169 | @Log(title = "通用-物料管理", operating = "删除物料", action = BusinessType.DELETE) |
170 | 170 | @PostMapping( "/remove") |
171 | 171 | @ResponseBody |
... | ... |
src/main/java/com/huaheng/pc/general/material/domain/Material.java renamed to src/main/java/com/huaheng/pc/config/material/domain/Material.java
1 | -package com.huaheng.pc.general.material.domain; | |
1 | +package com.huaheng.pc.config.material.domain; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.annotation.IdType; |
4 | 4 | import com.baomidou.mybatisplus.annotation.TableField; |
... | ... | @@ -11,7 +11,7 @@ import java.io.Serializable; |
11 | 11 | import java.util.Date; |
12 | 12 | import lombok.Data; |
13 | 13 | |
14 | -@ApiModel(value="com.huaheng.pc.general.material.domain.Material") | |
14 | +@ApiModel(value="com.huaheng.pc.config.material.domain.Material") | |
15 | 15 | @Data |
16 | 16 | @TableName(value = "material") |
17 | 17 | public class Material implements Serializable { |
... | ... |
src/main/java/com/huaheng/pc/general/material/mapper/MaterialMapper.java renamed to src/main/java/com/huaheng/pc/config/material/mapper/MaterialMapper.java
1 | -package com.huaheng.pc.general.material.mapper; | |
1 | +package com.huaheng.pc.config.material.mapper; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | -import com.huaheng.pc.general.material.domain.Material; | |
4 | +import com.huaheng.pc.config.material.domain.Material; | |
5 | 5 | |
6 | 6 | public interface MaterialMapper extends BaseMapper<Material> { |
7 | 7 | } |
8 | 8 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/general/material/service/MaterialService.java renamed to src/main/java/com/huaheng/pc/config/material/service/MaterialService.java
1 | -package com.huaheng.pc.general.material.service; | |
1 | +package com.huaheng.pc.config.material.service; | |
2 | 2 | |
3 | 3 | import com.huaheng.framework.web.domain.AjaxResult; |
4 | -import com.huaheng.pc.general.material.domain.Material; | |
4 | +import com.huaheng.pc.config.material.domain.Material; | |
5 | 5 | import com.baomidou.mybatisplus.extension.service.IService; |
6 | 6 | |
7 | 7 | import java.util.List; |
... | ... |
src/main/java/com/huaheng/pc/general/material/service/MaterialServiceImpl.java renamed to src/main/java/com/huaheng/pc/config/material/service/MaterialServiceImpl.java
1 | -package com.huaheng.pc.general.material.service; | |
1 | +package com.huaheng.pc.config.material.service; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
... | ... | @@ -15,10 +15,8 @@ import java.util.List; |
15 | 15 | import java.util.Map; |
16 | 16 | |
17 | 17 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
18 | -import com.huaheng.pc.general.material.mapper.MaterialMapper; | |
19 | -import com.huaheng.pc.general.material.domain.Material; | |
20 | -import com.huaheng.pc.general.material.service.MaterialService; | |
21 | -import org.springframework.transaction.annotation.Transactional; | |
18 | +import com.huaheng.pc.config.material.mapper.MaterialMapper; | |
19 | +import com.huaheng.pc.config.material.domain.Material; | |
22 | 20 | |
23 | 21 | @Service |
24 | 22 | public class MaterialServiceImpl extends ServiceImpl<MaterialMapper, Material> implements MaterialService{ |
... | ... |
src/main/java/com/huaheng/pc/config/materialMultiple/service/MaterialMultipleServiceImpl.java
... | ... | @@ -3,17 +3,13 @@ package com.huaheng.pc.config.materialMultiple.service; |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
5 | 5 | import com.baomidou.mybatisplus.extension.service.IService; |
6 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
6 | 7 | import com.huaheng.common.utils.security.ShiroUtils; |
7 | -import com.huaheng.framework.shiro.realm.UserRealm; | |
8 | -import com.huaheng.pc.general.warehouse.domain.Warehouse; | |
8 | +import com.huaheng.pc.config.materialMultiple.domain.MaterialMultiple; | |
9 | +import com.huaheng.pc.config.materialMultiple.mapper.MaterialMultipleMapper; | |
9 | 10 | import org.slf4j.Logger; |
10 | 11 | import org.slf4j.LoggerFactory; |
11 | 12 | import org.springframework.stereotype.Service; |
12 | -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
13 | -import com.huaheng.pc.config.materialMultiple.mapper.MaterialMultipleMapper; | |
14 | -import com.huaheng.pc.config.materialMultiple.domain.MaterialMultiple; | |
15 | - | |
16 | -import java.math.BigDecimal; | |
17 | 13 | |
18 | 14 | @Service |
19 | 15 | public class MaterialMultipleServiceImpl extends ServiceImpl<MaterialMultipleMapper, MaterialMultiple> implements IService<MaterialMultiple> { |
... | ... |
src/main/java/com/huaheng/pc/config/materialUnit/controller/MaterialUnitController.java
... | ... | @@ -16,8 +16,8 @@ import com.huaheng.framework.web.page.TableDataInfo; |
16 | 16 | import com.huaheng.framework.web.page.TableSupport; |
17 | 17 | import com.huaheng.pc.config.materialUnit.domain.MaterialUnit; |
18 | 18 | import com.huaheng.pc.config.materialUnit.service.MaterialUnitService; |
19 | -import com.huaheng.pc.general.material.domain.Material; | |
20 | -import com.huaheng.pc.general.material.service.MaterialService; | |
19 | +import com.huaheng.pc.config.material.domain.Material; | |
20 | +import com.huaheng.pc.config.material.service.MaterialService; | |
21 | 21 | import io.swagger.annotations.Api; |
22 | 22 | import io.swagger.annotations.ApiOperation; |
23 | 23 | import io.swagger.annotations.ApiParam; |
... | ... |
src/main/java/com/huaheng/pc/config/sendMail/domain/SendMail.java
0 → 100644
1 | +package com.huaheng.pc.config.sendMail.domain; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.annotation.IdType; | |
4 | +import com.baomidou.mybatisplus.annotation.TableField; | |
5 | +import com.baomidou.mybatisplus.annotation.TableId; | |
6 | +import com.baomidou.mybatisplus.annotation.TableName; | |
7 | +import io.swagger.annotations.ApiModel; | |
8 | +import io.swagger.annotations.ApiModelProperty; | |
9 | +import java.io.Serializable; | |
10 | +import java.util.Date; | |
11 | +import lombok.Data; | |
12 | + | |
13 | +@ApiModel(value="com.huaheng.pc.config.sendMail.domain.SendMail") | |
14 | +@Data | |
15 | +@TableName(value = "send_mail") | |
16 | +public class SendMail implements Serializable { | |
17 | + /** | |
18 | + * 主键,自增字段 | |
19 | + */ | |
20 | + @TableId(value = "id", type = IdType.AUTO) | |
21 | + @ApiModelProperty(value="主键,自增字段") | |
22 | + private Integer id; | |
23 | + | |
24 | + /** | |
25 | + * 仓库编码 | |
26 | + */ | |
27 | + @TableField(value = "warehouseCode") | |
28 | + @ApiModelProperty(value="仓库编码") | |
29 | + private String warehouseCode; | |
30 | + | |
31 | + /** | |
32 | + * 货主编码 | |
33 | + */ | |
34 | + @TableField(value = "companyCode") | |
35 | + @ApiModelProperty(value="货主编码") | |
36 | + private String companyCode; | |
37 | + | |
38 | + /** | |
39 | + * 类别 | |
40 | + */ | |
41 | + @TableField(value = "type") | |
42 | + @ApiModelProperty(value="类别") | |
43 | + private Integer type; | |
44 | + | |
45 | + /** | |
46 | + * 预警id | |
47 | + */ | |
48 | + @TableField(value = "alarmId") | |
49 | + @ApiModelProperty(value="预警id") | |
50 | + private Integer alarmId; | |
51 | + | |
52 | + /** | |
53 | + * 预警级别 | |
54 | + */ | |
55 | + @TableField(value = "warningLevel") | |
56 | + @ApiModelProperty(value="预警级别") | |
57 | + private Integer warningLevel; | |
58 | + | |
59 | + /** | |
60 | + * 发送级别 | |
61 | + */ | |
62 | + @TableField(value = "sendingLevel") | |
63 | + @ApiModelProperty(value="发送级别") | |
64 | + private Integer sendingLevel; | |
65 | + | |
66 | + /** | |
67 | + * 收件人 | |
68 | + */ | |
69 | + @TableField(value = "addressee") | |
70 | + @ApiModelProperty(value="收件人") | |
71 | + private String addressee; | |
72 | + | |
73 | + /** | |
74 | + * 邮箱 | |
75 | + */ | |
76 | + @TableField(value = "email") | |
77 | + @ApiModelProperty(value="邮箱") | |
78 | + private String email; | |
79 | + | |
80 | + /** | |
81 | + * 预警时间 | |
82 | + */ | |
83 | + @TableField(value = "alarmTime") | |
84 | + @ApiModelProperty(value="预警时间") | |
85 | + private Date alarmTime; | |
86 | + | |
87 | + /** | |
88 | + * 标题 | |
89 | + */ | |
90 | + @TableField(value = "title") | |
91 | + @ApiModelProperty(value="标题") | |
92 | + private String title; | |
93 | + | |
94 | + /** | |
95 | + * 正文 | |
96 | + */ | |
97 | + @TableField(value = "body") | |
98 | + @ApiModelProperty(value="正文") | |
99 | + private String body; | |
100 | + | |
101 | + /** | |
102 | + * 创建时间 | |
103 | + */ | |
104 | + @TableField(value = "created") | |
105 | + @ApiModelProperty(value="创建时间") | |
106 | + private Date created; | |
107 | + | |
108 | + /** | |
109 | + * 更新时间 | |
110 | + */ | |
111 | + @TableField(value = "lastUpdated") | |
112 | + @ApiModelProperty(value="更新时间") | |
113 | + private Date lastUpdated; | |
114 | + | |
115 | + /** | |
116 | + * 是否发送 | |
117 | + */ | |
118 | + @TableField(value = "enable") | |
119 | + @ApiModelProperty(value="是否发送") | |
120 | + private Boolean enable; | |
121 | + | |
122 | + /** | |
123 | + * 是否处理 | |
124 | + */ | |
125 | + @TableField(value = "handle") | |
126 | + @ApiModelProperty(value="是否处理") | |
127 | + private Boolean handle; | |
128 | + | |
129 | + /** | |
130 | + * 是否删除 | |
131 | + */ | |
132 | + @TableField(value = "deleted") | |
133 | + @ApiModelProperty(value="是否删除") | |
134 | + private Boolean deleted; | |
135 | + | |
136 | + private static final long serialVersionUID = 1L; | |
137 | +} | |
0 | 138 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/config/sendMail/mapper/SendMailMapper.java
0 → 100644
src/main/java/com/huaheng/pc/general/customer/service/CustomerServiceImpl.java renamed to src/main/java/com/huaheng/pc/config/sendMail/service/SendMailService.java
1 | -package com.huaheng.pc.general.customer.service; | |
1 | +package com.huaheng.pc.config.sendMail.service; | |
2 | 2 | |
3 | 3 | import org.springframework.stereotype.Service; |
4 | 4 | import javax.annotation.Resource; |
5 | 5 | import java.util.List; |
6 | 6 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
7 | -import com.huaheng.pc.general.customer.mapper.CustomerMapper; | |
8 | -import com.huaheng.pc.general.customer.domain.Customer; | |
9 | -import com.huaheng.pc.general.customer.service.CustomerService; | |
7 | +import com.huaheng.pc.config.sendMail.domain.SendMail; | |
8 | +import com.huaheng.pc.config.sendMail.mapper.SendMailMapper; | |
10 | 9 | @Service |
11 | -public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements CustomerService{ | |
10 | +public class SendMailService extends ServiceImpl<SendMailMapper, SendMail> { | |
12 | 11 | |
13 | 12 | } |
... | ... |
src/main/java/com/huaheng/pc/general/supplier/controller/SupplierController.java renamed to src/main/java/com/huaheng/pc/config/supplier/controller/SupplierController.java
1 | -package com.huaheng.pc.general.supplier.controller; | |
1 | +package com.huaheng.pc.config.supplier.controller; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | ... | @@ -14,8 +14,8 @@ import com.huaheng.framework.web.domain.AjaxResult; |
14 | 14 | import com.huaheng.framework.web.page.PageDomain; |
15 | 15 | import com.huaheng.framework.web.page.TableDataInfo; |
16 | 16 | import com.huaheng.framework.web.page.TableSupport; |
17 | -import com.huaheng.pc.general.supplier.domain.Supplier; | |
18 | -import com.huaheng.pc.general.supplier.service.SupplierService; | |
17 | +import com.huaheng.pc.config.supplier.domain.Supplier; | |
18 | +import com.huaheng.pc.config.supplier.service.SupplierService; | |
19 | 19 | import com.huaheng.pc.receipt.receiptDetail.domain.ReceiptDetail; |
20 | 20 | import com.huaheng.pc.receipt.receiptDetail.service.ReceiptDetailService; |
21 | 21 | import io.swagger.annotations.Api; |
... | ... | @@ -32,17 +32,17 @@ import java.util.Map; |
32 | 32 | |
33 | 33 | @Api(tags={"供应商操作类"}) |
34 | 34 | @Controller |
35 | -@RequestMapping("/general/supplier") | |
35 | +@RequestMapping("/config/supplier") | |
36 | 36 | public class SupplierController extends BaseController { |
37 | 37 | |
38 | - private String prefix = "general/supplier"; | |
38 | + private String prefix = "config/supplier"; | |
39 | 39 | |
40 | 40 | @Resource |
41 | 41 | private SupplierService supplierService; |
42 | 42 | @Resource |
43 | 43 | private ReceiptDetailService receiptDetailService; |
44 | 44 | |
45 | - @RequiresPermissions("general:supplier:view") | |
45 | + @RequiresPermissions("config:supplier:view") | |
46 | 46 | @GetMapping() |
47 | 47 | public String supplier() { |
48 | 48 | return prefix + "/supplier"; |
... | ... | @@ -52,7 +52,7 @@ public class SupplierController extends BaseController { |
52 | 52 | * 查询供应商列表 |
53 | 53 | */ |
54 | 54 | @ApiOperation(value="查询供应商列表", notes="根据编码、名称、创建时间获取库位的详细信息", httpMethod = "POST") |
55 | - @RequiresPermissions("general:supplier:list") | |
55 | + @RequiresPermissions("config:supplier:list") | |
56 | 56 | @Log(title = "通用-供应商管理", operating = "查看供应商列表", action = BusinessType.GRANT) |
57 | 57 | @PostMapping("/list") |
58 | 58 | @ResponseBody |
... | ... | @@ -94,7 +94,7 @@ public class SupplierController extends BaseController { |
94 | 94 | * 新增保存供应商 |
95 | 95 | */ |
96 | 96 | @ApiOperation(value="新增供应商", notes="新增供应商", httpMethod = "POST") |
97 | - @RequiresPermissions("general:supplier:add") | |
97 | + @RequiresPermissions("config:supplier:add") | |
98 | 98 | @Log(title = "通用-供应商管理", operating = "新增供应商", action = BusinessType.INSERT) |
99 | 99 | @PostMapping("/add") |
100 | 100 | @ResponseBody |
... | ... | @@ -120,7 +120,7 @@ public class SupplierController extends BaseController { |
120 | 120 | * 修改保存供应商 |
121 | 121 | */ |
122 | 122 | @ApiOperation(value="修改供应商", notes="修改供应商", httpMethod = "POST") |
123 | - @RequiresPermissions("general:supplier:edit") | |
123 | + @RequiresPermissions("config:supplier:edit") | |
124 | 124 | @Log(title = "通用-供应商管理", operating = "修改供应商", action = BusinessType.UPDATE) |
125 | 125 | @PostMapping("/edit") |
126 | 126 | @ResponseBody |
... | ... | @@ -134,7 +134,7 @@ public class SupplierController extends BaseController { |
134 | 134 | * 删除供应商 |
135 | 135 | */ |
136 | 136 | @ApiOperation(value="删除供应商", notes="单条删除或批量删除供应商信息,示例1或1,2,3", httpMethod = "POST") |
137 | - @RequiresPermissions("general:supplier:remove") | |
137 | + @RequiresPermissions("config:supplier:remove") | |
138 | 138 | @Log(title = "通用-供应商管理", operating = "删除供应商", action = BusinessType.DELETE) |
139 | 139 | @PostMapping( "/remove") |
140 | 140 | @ResponseBody |
... | ... |
src/main/java/com/huaheng/pc/general/supplier/domain/Supplier.java renamed to src/main/java/com/huaheng/pc/config/supplier/domain/Supplier.java
1 | -package com.huaheng.pc.general.supplier.domain; | |
1 | +package com.huaheng.pc.config.supplier.domain; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.annotation.IdType; |
4 | 4 | import com.baomidou.mybatisplus.annotation.TableField; |
... | ... | @@ -10,7 +10,7 @@ import java.io.Serializable; |
10 | 10 | import java.util.Date; |
11 | 11 | import lombok.Data; |
12 | 12 | |
13 | -@ApiModel(value = "com.huaheng.pc.general.supplier.domain.Supplier") | |
13 | +@ApiModel(value = "com.huaheng.pc.config.supplier.domain.Supplier") | |
14 | 14 | @Data |
15 | 15 | @TableName(value = "supplier") |
16 | 16 | public class Supplier implements Serializable { |
... | ... |
src/main/java/com/huaheng/pc/general/supplier/mapper/SupplierMapper.java renamed to src/main/java/com/huaheng/pc/config/supplier/mapper/SupplierMapper.java
1 | -package com.huaheng.pc.general.supplier.mapper; | |
1 | +package com.huaheng.pc.config.supplier.mapper; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | -import com.huaheng.pc.general.supplier.domain.Supplier; | |
4 | +import com.huaheng.pc.config.supplier.domain.Supplier; | |
5 | 5 | |
6 | 6 | public interface SupplierMapper extends BaseMapper<Supplier> { |
7 | 7 | } |
8 | 8 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/general/supplier/service/SupplierService.java renamed to src/main/java/com/huaheng/pc/config/supplier/service/SupplierService.java
1 | -package com.huaheng.pc.general.supplier.service; | |
1 | +package com.huaheng.pc.config.supplier.service; | |
2 | 2 | |
3 | -import com.huaheng.pc.general.supplier.domain.Supplier; | |
3 | +import com.huaheng.pc.config.supplier.domain.Supplier; | |
4 | 4 | import com.baomidou.mybatisplus.extension.service.IService; |
5 | 5 | public interface SupplierService extends IService<Supplier>{ |
6 | 6 | |
... | ... |
src/main/java/com/huaheng/pc/general/supplier/service/SupplierServiceImpl.java renamed to src/main/java/com/huaheng/pc/config/supplier/service/SupplierServiceImpl.java
1 | -package com.huaheng.pc.general.supplier.service; | |
1 | +package com.huaheng.pc.config.supplier.service; | |
2 | 2 | |
3 | 3 | import org.springframework.stereotype.Service; |
4 | -import javax.annotation.Resource; | |
5 | -import java.util.List; | |
6 | 4 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
7 | -import com.huaheng.pc.general.supplier.mapper.SupplierMapper; | |
8 | -import com.huaheng.pc.general.supplier.domain.Supplier; | |
9 | -import com.huaheng.pc.general.supplier.service.SupplierService; | |
5 | +import com.huaheng.pc.config.supplier.mapper.SupplierMapper; | |
6 | +import com.huaheng.pc.config.supplier.domain.Supplier; | |
7 | + | |
10 | 8 | @Service |
11 | 9 | public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, Supplier> implements SupplierService{ |
12 | 10 | |
... | ... |
src/main/java/com/huaheng/pc/general/warehouse/controller/WareHouseController.java renamed to src/main/java/com/huaheng/pc/config/warehouse/controller/WareHouseController.java
1 | -package com.huaheng.pc.general.warehouse.controller; | |
1 | +package com.huaheng.pc.config.warehouse.controller; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.metadata.IPage; |
... | ... | @@ -14,9 +14,9 @@ import com.huaheng.framework.web.domain.AjaxResult; |
14 | 14 | import com.huaheng.framework.web.page.PageDomain; |
15 | 15 | import com.huaheng.framework.web.page.TableDataInfo; |
16 | 16 | import com.huaheng.framework.web.page.TableSupport; |
17 | -import com.huaheng.pc.general.company.service.CompanyService; | |
18 | -import com.huaheng.pc.general.warehouse.service.WarehouseService; | |
19 | -import com.huaheng.pc.general.warehouse.domain.Warehouse; | |
17 | +import com.huaheng.pc.config.company.service.CompanyService; | |
18 | +import com.huaheng.pc.config.warehouse.domain.Warehouse; | |
19 | +import com.huaheng.pc.config.warehouse.service.WarehouseService; | |
20 | 20 | import com.huaheng.pc.inventory.inventoryHeader.domain.InventoryHeader; |
21 | 21 | import com.huaheng.pc.inventory.inventoryHeader.service.InventoryHeaderService; |
22 | 22 | import com.huaheng.pc.system.dict.service.IDictDataService; |
... | ... | @@ -30,7 +30,7 @@ import javax.annotation.Resource; |
30 | 30 | import java.util.List; |
31 | 31 | |
32 | 32 | @Controller |
33 | -@RequestMapping("/general/warehouse") | |
33 | +@RequestMapping("/config/warehouse") | |
34 | 34 | public class WareHouseController extends BaseController { |
35 | 35 | |
36 | 36 | @Resource |
... | ... | @@ -44,9 +44,9 @@ public class WareHouseController extends BaseController { |
44 | 44 | @Resource |
45 | 45 | private CompanyService companyService; |
46 | 46 | |
47 | - private String prefix = "general/warehouse"; | |
47 | + private String prefix = "config/warehouse"; | |
48 | 48 | |
49 | - @RequiresPermissions("general:warehouse:view") | |
49 | + @RequiresPermissions("config:warehouse:view") | |
50 | 50 | @GetMapping() |
51 | 51 | public String warehouse() { |
52 | 52 | return prefix + "/warehouse"; |
... | ... | @@ -55,7 +55,7 @@ public class WareHouseController extends BaseController { |
55 | 55 | /** |
56 | 56 | * 查询仓库列表 |
57 | 57 | */ |
58 | - @RequiresPermissions("general:warehouse:list") | |
58 | + @RequiresPermissions("config:warehouse:list") | |
59 | 59 | @Log(title = "通用-仓库管理", operating = "查看仓库列表", action = BusinessType.GRANT) |
60 | 60 | @PostMapping("/list") |
61 | 61 | @ResponseBody |
... | ... | @@ -64,10 +64,10 @@ public class WareHouseController extends BaseController { |
64 | 64 | PageDomain pageDomain = TableSupport.buildPageRequest(); |
65 | 65 | Integer pageNum = pageDomain.getPageNum(); |
66 | 66 | Integer pageSize = pageDomain.getPageSize(); |
67 | - lambdaQueryWrapper.gt(StringUtils.isNotEmpty(createdBegin),Warehouse::getCreated, createdBegin) | |
68 | - .lt(StringUtils.isNotEmpty(createdEnd),Warehouse::getCreated, createdEnd) | |
69 | - .eq(StringUtils.isNotEmpty(warehouse.getCode()),Warehouse::getCode, warehouse.getCode()) | |
70 | - .eq(StringUtils.isNotEmpty(warehouse.getName()),Warehouse::getName,warehouse.getName()) | |
67 | + lambdaQueryWrapper.gt(StringUtils.isNotEmpty(createdBegin), Warehouse::getCreated, createdBegin) | |
68 | + .lt(StringUtils.isNotEmpty(createdEnd), Warehouse::getCreated, createdEnd) | |
69 | + .eq(StringUtils.isNotEmpty(warehouse.getCode()), Warehouse::getCode, warehouse.getCode()) | |
70 | + .eq(StringUtils.isNotEmpty(warehouse.getName()), Warehouse::getName,warehouse.getName()) | |
71 | 71 | .orderByDesc(Warehouse::getCreated) |
72 | 72 | .eq(Warehouse::getDeleted,0); |
73 | 73 | /** |
... | ... | @@ -95,7 +95,7 @@ public class WareHouseController extends BaseController { |
95 | 95 | /** |
96 | 96 | * 新增保存仓库 |
97 | 97 | */ |
98 | - @RequiresPermissions("general:warehouse:add") | |
98 | + @RequiresPermissions("config:warehouse:add") | |
99 | 99 | @Log(title = "通用-仓库管理", operating = "新增仓库", action = BusinessType.INSERT) |
100 | 100 | @PostMapping("/add") |
101 | 101 | @ResponseBody |
... | ... | @@ -119,7 +119,7 @@ public class WareHouseController extends BaseController { |
119 | 119 | /** |
120 | 120 | * 修改保存仓库 |
121 | 121 | */ |
122 | - @RequiresPermissions("general:warehouse:edit") | |
122 | + @RequiresPermissions("config:warehouse:edit") | |
123 | 123 | @Log(title = "通用-仓库管理", operating = "修改仓库", action = BusinessType.UPDATE) |
124 | 124 | @PostMapping("/edit") |
125 | 125 | @ResponseBody |
... | ... | @@ -131,7 +131,7 @@ public class WareHouseController extends BaseController { |
131 | 131 | /** |
132 | 132 | * 删除仓库 |
133 | 133 | */ |
134 | - @RequiresPermissions("general:warehouse:remove") | |
134 | + @RequiresPermissions("config:warehouse:remove") | |
135 | 135 | @Log(title = "通用-仓库管理", operating = "删除仓库", action = BusinessType.DELETE) |
136 | 136 | @PostMapping( "/remove") |
137 | 137 | @ResponseBody |
... | ... |
src/main/java/com/huaheng/pc/general/warehouse/domain/Warehouse.java renamed to src/main/java/com/huaheng/pc/config/warehouse/domain/Warehouse.java
1 | -package com.huaheng.pc.general.warehouse.domain; | |
1 | +package com.huaheng.pc.config.warehouse.domain; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.annotation.IdType; |
4 | 4 | import com.baomidou.mybatisplus.annotation.TableField; |
5 | 5 | import com.baomidou.mybatisplus.annotation.TableId; |
6 | 6 | import com.baomidou.mybatisplus.annotation.TableName; |
7 | 7 | import lombok.Data; |
8 | -import org.springframework.transaction.annotation.Transactional; | |
9 | 8 | |
10 | 9 | import java.io.Serializable; |
11 | 10 | import java.util.Date; |
... | ... |
src/main/java/com/huaheng/pc/general/warehouse/mapper/WarehouseMapper.java renamed to src/main/java/com/huaheng/pc/config/warehouse/mapper/WarehouseMapper.java
1 | -package com.huaheng.pc.general.warehouse.mapper; | |
1 | +package com.huaheng.pc.config.warehouse.mapper; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | -import com.huaheng.pc.general.warehouse.domain.Warehouse; | |
5 | -import com.huaheng.pc.system.role.domain.Role; | |
4 | +import com.huaheng.pc.config.warehouse.domain.Warehouse; | |
6 | 5 | import com.huaheng.pc.system.user.domain.SysUserWarehouse; |
7 | 6 | |
8 | 7 | import java.util.List; |
... | ... |
src/main/java/com/huaheng/pc/general/warehouse/service/WarehouseService.java renamed to src/main/java/com/huaheng/pc/config/warehouse/service/WarehouseService.java
1 | -package com.huaheng.pc.general.warehouse.service; | |
1 | +package com.huaheng.pc.config.warehouse.service; | |
2 | 2 | |
3 | -import com.huaheng.pc.general.warehouse.domain.Warehouse; | |
4 | 3 | import com.baomidou.mybatisplus.extension.service.IService; |
5 | -import com.huaheng.pc.system.user.domain.SysUserWarehouse; | |
4 | +import com.huaheng.pc.config.warehouse.domain.Warehouse; | |
6 | 5 | |
7 | 6 | import java.util.List; |
8 | 7 | import java.util.Map; |
... | ... |
src/main/java/com/huaheng/pc/general/warehouse/service/WarehouseServiceImpl.java renamed to src/main/java/com/huaheng/pc/config/warehouse/service/WarehouseServiceImpl.java
1 | -package com.huaheng.pc.general.warehouse.service; | |
1 | +package com.huaheng.pc.config.warehouse.service; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
5 | -import com.huaheng.common.utils.security.ShiroUtils; | |
6 | -import com.huaheng.pc.general.warehouseCopany.domain.WarehouseCompany; | |
7 | -import com.huaheng.pc.general.warehouseCopany.service.WarehouseCompanyService; | |
8 | -import com.huaheng.pc.system.role.domain.Role; | |
9 | -import com.huaheng.pc.system.user.domain.SysUserWarehouse; | |
10 | -import org.springframework.stereotype.Service; | |
11 | 5 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
12 | -import com.huaheng.pc.general.warehouse.mapper.WarehouseMapper; | |
13 | -import com.huaheng.pc.general.warehouse.domain.Warehouse; | |
6 | +import com.huaheng.pc.config.warehouse.domain.Warehouse; | |
7 | +import com.huaheng.pc.config.warehouse.mapper.WarehouseMapper; | |
8 | +import com.huaheng.pc.config.warehouseCompany.domain.WarehouseCompany; | |
9 | +import com.huaheng.pc.config.warehouseCompany.service.WarehouseCompanyService; | |
10 | +import org.springframework.stereotype.Service; | |
14 | 11 | |
15 | 12 | import javax.annotation.Resource; |
16 | 13 | import java.util.List; |
17 | 14 | import java.util.Map; |
18 | 15 | |
19 | 16 | @Service("WarehouseService") |
20 | -public class WarehouseServiceImpl extends ServiceImpl<WarehouseMapper, Warehouse> implements WarehouseService{ | |
17 | +public class WarehouseServiceImpl extends ServiceImpl<WarehouseMapper, Warehouse> implements WarehouseService { | |
21 | 18 | |
22 | 19 | @Resource |
23 | 20 | private WarehouseMapper warehouseMapper; |
... | ... | @@ -58,7 +55,7 @@ public class WarehouseServiceImpl extends ServiceImpl<WarehouseMapper, Warehouse |
58 | 55 | List<Warehouse> warehouses = warehouseMapper.selectWarehouseAll(); |
59 | 56 | for (Warehouse warehouse : warehouses) |
60 | 57 | { |
61 | - for (Warehouse userWarehouse: userWarhouses) | |
58 | + for (Warehouse userWarehouse: userWarhouses) | |
62 | 59 | { |
63 | 60 | if (warehouse.getCode().equals(userWarehouse.getCode())) |
64 | 61 | { |
... | ... |
src/main/java/com/huaheng/pc/general/warehouseCopany/domain/WarehouseCompany.java renamed to src/main/java/com/huaheng/pc/config/warehouseCompany/domain/WarehouseCompany.java
1 | -package com.huaheng.pc.general.warehouseCopany.domain; | |
1 | +package com.huaheng.pc.config.warehouseCompany.domain; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.annotation.IdType; |
4 | 4 | import com.baomidou.mybatisplus.annotation.TableField; |
5 | 5 | import com.baomidou.mybatisplus.annotation.TableId; |
6 | 6 | import com.baomidou.mybatisplus.annotation.TableName; |
7 | -import java.io.Serializable; | |
8 | 7 | import lombok.Data; |
9 | 8 | |
9 | +import java.io.Serializable; | |
10 | + | |
10 | 11 | @Data |
11 | 12 | @TableName(value = "warehouse_company") |
12 | 13 | public class WarehouseCompany implements Serializable { |
... | ... |
src/main/java/com/huaheng/pc/general/warehouseCopany/mapper/WarehouseCompanyMapper.java renamed to src/main/java/com/huaheng/pc/config/warehouseCompany/mapper/WarehouseCompanyMapper.java
1 | -package com.huaheng.pc.general.warehouseCopany.mapper; | |
1 | +package com.huaheng.pc.config.warehouseCompany.mapper; | |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
4 | -import com.huaheng.pc.general.warehouseCopany.domain.WarehouseCompany; | |
4 | +import com.huaheng.pc.config.warehouseCompany.domain.WarehouseCompany; | |
5 | 5 | |
6 | 6 | public interface WarehouseCompanyMapper extends BaseMapper<WarehouseCompany> { |
7 | 7 | } |
8 | 8 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/general/warehouseCopany/service/WarehouseCompanyService.java renamed to src/main/java/com/huaheng/pc/config/warehouseCompany/service/WarehouseCompanyService.java
1 | -package com.huaheng.pc.general.warehouseCopany.service; | |
1 | +package com.huaheng.pc.config.warehouseCompany.service; | |
2 | 2 | |
3 | -import com.huaheng.pc.general.warehouseCopany.domain.WarehouseCompany; | |
4 | 3 | import com.baomidou.mybatisplus.extension.service.IService; |
4 | +import com.huaheng.pc.config.warehouseCompany.domain.WarehouseCompany; | |
5 | + | |
5 | 6 | public interface WarehouseCompanyService extends IService<WarehouseCompany>{ |
6 | 7 | |
7 | 8 | |
... | ... |
src/main/java/com/huaheng/pc/config/warehouseCompany/service/WarehouseCompanyServiceImpl.java
0 → 100644
1 | +package com.huaheng.pc.config.warehouseCompany.service; | |
2 | + | |
3 | +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |
4 | +import com.huaheng.pc.config.warehouseCompany.domain.WarehouseCompany; | |
5 | +import com.huaheng.pc.config.warehouseCompany.mapper.WarehouseCompanyMapper; | |
6 | +import org.springframework.stereotype.Service; | |
7 | + | |
8 | +@Service | |
9 | +public class WarehouseCompanyServiceImpl extends ServiceImpl<WarehouseCompanyMapper, WarehouseCompany> implements WarehouseCompanyService { | |
10 | + | |
11 | +} | |
... | ... |
src/main/java/com/huaheng/pc/config/warehouseConfig/controller/WarehouseConfigController.java
... | ... | @@ -26,15 +26,15 @@ import javax.annotation.Resource; |
26 | 26 | import java.util.List; |
27 | 27 | |
28 | 28 | @Controller |
29 | -@RequestMapping("/config/warehouse") | |
29 | +@RequestMapping("/config/warehouseConfig") | |
30 | 30 | public class WarehouseConfigController extends BaseController { |
31 | 31 | |
32 | - private String prefix = "config/warehouse"; | |
32 | + private String prefix = "config/warehouseConfig"; | |
33 | 33 | |
34 | 34 | @Resource |
35 | 35 | private WarehouseConfigService warehouseConfigService; |
36 | 36 | |
37 | - @RequiresPermissions("config:warehouse:view") | |
37 | + @RequiresPermissions("config:warehouseConfig:view") | |
38 | 38 | @GetMapping() |
39 | 39 | public String receiptDetailHistory() { |
40 | 40 | return prefix + "/warehouse"; |
... | ... | @@ -44,7 +44,7 @@ public class WarehouseConfigController extends BaseController { |
44 | 44 | * 查询仓库配置 |
45 | 45 | */ |
46 | 46 | @ApiOperation(value="查看仓库配置", notes="根据编码获取仓库配置", httpMethod = "POST") |
47 | - @RequiresPermissions("config:warehouse:list") | |
47 | + @RequiresPermissions("config:warehouseConfig:list") | |
48 | 48 | @Log(title = "配置-仓库配置",operating = "仓库配置列表", action = BusinessType.GRANT) |
49 | 49 | @PostMapping("/list") |
50 | 50 | @ResponseBody |
... | ... | @@ -79,7 +79,7 @@ public class WarehouseConfigController extends BaseController { |
79 | 79 | * 新增保存仓库配置 |
80 | 80 | */ |
81 | 81 | @ApiOperation(value="新增仓库配置", notes="新增仓库配置", httpMethod = "POST") |
82 | - @RequiresPermissions("config:warehouse:add") | |
82 | + @RequiresPermissions("config:warehouseConfig:add") | |
83 | 83 | @Log(title = "配置-仓库配置",operating = "新增仓库配置", action = BusinessType.INSERT) |
84 | 84 | @PostMapping("/add") |
85 | 85 | @ResponseBody |
... | ... | @@ -108,7 +108,7 @@ public class WarehouseConfigController extends BaseController { |
108 | 108 | * 修改保存仓库配置 |
109 | 109 | */ |
110 | 110 | @ApiOperation(value="修改仓库配置信息", notes="修改仓库配置信息", httpMethod = "POST") |
111 | - @RequiresPermissions("config:warehouse:edit") | |
111 | + @RequiresPermissions("config:warehouseConfig:edit") | |
112 | 112 | @Log(title = "配置-仓库配置",operating = "修改仓库配置", action = BusinessType.UPDATE) |
113 | 113 | @PostMapping("/edit") |
114 | 114 | @ResponseBody |
... | ... |
src/main/java/com/huaheng/pc/config/zoneCapacity/service/ZoneCapacityServiceImpl.java
... | ... | @@ -8,8 +8,8 @@ import com.huaheng.common.utils.security.ShiroUtils; |
8 | 8 | import com.huaheng.framework.web.domain.AjaxResult; |
9 | 9 | import com.huaheng.pc.config.zoneCapacity.domain.ZoneCapacity; |
10 | 10 | import com.huaheng.pc.config.zoneCapacity.mapper.ZoneCapacityMapper; |
11 | -import com.huaheng.pc.general.material.domain.Material; | |
12 | -import com.huaheng.pc.general.material.service.MaterialService; | |
11 | +import com.huaheng.pc.config.material.domain.Material; | |
12 | +import com.huaheng.pc.config.material.service.MaterialService; | |
13 | 13 | import org.springframework.beans.factory.annotation.Autowired; |
14 | 14 | import org.springframework.stereotype.Service; |
15 | 15 | |
... | ... |
src/main/java/com/huaheng/pc/general/customer/service/CustomerService.java deleted
src/main/java/com/huaheng/pc/inventory/inventoryDetail/controller/InventoryDetailController.java
... | ... | @@ -13,7 +13,7 @@ import com.huaheng.framework.web.domain.AjaxResult; |
13 | 13 | import com.huaheng.framework.web.page.PageDomain; |
14 | 14 | import com.huaheng.framework.web.page.TableDataInfo; |
15 | 15 | import com.huaheng.framework.web.page.TableSupport; |
16 | -import com.huaheng.pc.general.material.service.MaterialServiceImpl; | |
16 | +import com.huaheng.pc.config.material.service.MaterialServiceImpl; | |
17 | 17 | import com.huaheng.pc.inventory.inventoryDetail.domain.InventoryDetail; |
18 | 18 | import com.huaheng.pc.inventory.inventoryDetail.service.InventoryDetailService; |
19 | 19 | import com.huaheng.pc.inventory.inventoryHeader.service.InventoryHeaderService; |
... | ... |
src/main/java/com/huaheng/pc/inventory/inventoryHeader/controller/InventoryHeaderController.java
... | ... | @@ -13,7 +13,7 @@ import com.huaheng.framework.web.domain.AjaxResult; |
13 | 13 | import com.huaheng.framework.web.page.PageDomain; |
14 | 14 | import com.huaheng.framework.web.page.TableDataInfo; |
15 | 15 | import com.huaheng.framework.web.page.TableSupport; |
16 | -import com.huaheng.pc.general.material.service.MaterialServiceImpl; | |
16 | +import com.huaheng.pc.config.material.service.MaterialServiceImpl; | |
17 | 17 | import com.huaheng.pc.inventory.inventoryHeader.domain.InventoryHeader; |
18 | 18 | import com.huaheng.pc.inventory.inventoryHeader.service.InventoryHeaderService; |
19 | 19 | import org.apache.shiro.authz.annotation.RequiresPermissions; |
... | ... |
src/main/java/com/huaheng/pc/shipment/shipmentContainerDetail/domain/ShipmentContainerDetail.java
... | ... | @@ -39,7 +39,7 @@ public class ShipmentContainerDetail implements Serializable { |
39 | 39 | */ |
40 | 40 | @TableField(value = "inventoryId") |
41 | 41 | @ApiModelProperty(value="库存Id") |
42 | - private String inventoryId; | |
42 | + private Integer inventoryId; | |
43 | 43 | |
44 | 44 | /** |
45 | 45 | * 出库箱头内部号 |
... | ... | @@ -499,11 +499,11 @@ public class ShipmentContainerDetail implements Serializable { |
499 | 499 | this.locationCode = locationCode; |
500 | 500 | } |
501 | 501 | |
502 | - public String getInventoryId() { | |
502 | + public Integer getInventoryId() { | |
503 | 503 | return inventoryId; |
504 | 504 | } |
505 | 505 | |
506 | - public void setInventoryId(String inventoryId) { | |
506 | + public void setInventoryId(Integer inventoryId) { | |
507 | 507 | this.inventoryId = inventoryId; |
508 | 508 | } |
509 | 509 | |
... | ... |
src/main/java/com/huaheng/pc/shipment/shipmentContainerHeader/controller/ShipmentContainerHeaderController.java
0 → 100644
1 | +package com.huaheng.pc.shipment.shipmentContainerHeader.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.shipment.shipmentContainerHeader.domain.ShipmentContainerHeader; | |
18 | +import com.huaheng.pc.shipment.shipmentContainerHeader.service.ShipmentContainerHeaderService; | |
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.Arrays; | |
26 | +import java.util.List; | |
27 | + | |
28 | +/** | |
29 | + * 出库组盘头 信息操作处理 | |
30 | + * | |
31 | + * @author ricard | |
32 | + * @date 2019-08-21 | |
33 | + */ | |
34 | +@Controller | |
35 | +@RequestMapping("/shipment/shipmentContainerHeader") | |
36 | +public class ShipmentContainerHeaderController extends BaseController | |
37 | +{ | |
38 | + @Autowired | |
39 | + private ShipmentContainerHeaderService shipmentContainerHeaderService; | |
40 | + | |
41 | + | |
42 | + private String prefix = "shipment/shipmentContainerHeader"; | |
43 | + | |
44 | + @RequiresPermissions("shipment:container:view") | |
45 | + @GetMapping() | |
46 | + public String shipmentContainerHeader() | |
47 | + { | |
48 | + return prefix + "/shipmentContainerHeader"; | |
49 | + } | |
50 | + | |
51 | + /** | |
52 | + * 查询出库组盘头列表 | |
53 | + */ | |
54 | + @RequiresPermissions("shipment:container:list") | |
55 | + @Log(title ="出库-出库组盘", operating = "查看出库组头", action = BusinessType.GRANT) | |
56 | + @PostMapping("/list") | |
57 | + @ResponseBody | |
58 | + public TableDataInfo list(ShipmentContainerHeader shipmentContainerHeader,String createdBegin, String createdEnd) | |
59 | + { | |
60 | + LambdaQueryWrapper<ShipmentContainerHeader> lambdaQueryWrapper= Wrappers.lambdaQuery(); | |
61 | + | |
62 | + PageDomain pageDomain = TableSupport.buildPageRequest(); | |
63 | + Integer pageNum = pageDomain.getPageNum(); | |
64 | + Integer pageSize = pageDomain.getPageSize(); | |
65 | + | |
66 | + lambdaQueryWrapper.eq(ShipmentContainerHeader::getWarehouseCode,ShiroUtils.getWarehouseCode()) | |
67 | + .ge(StringUtils.isNotEmpty(createdBegin),ShipmentContainerHeader::getCreated, createdBegin) | |
68 | + .le(StringUtils.isNotEmpty(createdEnd), ShipmentContainerHeader::getCreated, createdEnd) | |
69 | + .eq(StringUtils.isNotEmpty(shipmentContainerHeader.getShipmentCode()), ShipmentContainerHeader::getShipmentCode, shipmentContainerHeader.getShipmentCode()) | |
70 | + .eq(StringUtils.isNotEmpty(shipmentContainerHeader.getContainerCode()), ShipmentContainerHeader::getContainerCode, shipmentContainerHeader.getContainerCode()) | |
71 | + .eq(StringUtils.isNotEmpty(shipmentContainerHeader.getLocationCode()), ShipmentContainerHeader::getLocationCode, shipmentContainerHeader.getLocationCode()) | |
72 | + .eq(StringUtils.isNotEmpty(shipmentContainerHeader.getCreatedBy()), ShipmentContainerHeader::getCreatedBy, shipmentContainerHeader.getCreatedBy()) | |
73 | + .le(shipmentContainerHeader.getStatus()==null,ShipmentContainerHeader::getStatus,20) | |
74 | + .eq(shipmentContainerHeader.getStatus()!=null,ShipmentContainerHeader::getStatus,shipmentContainerHeader.getStatus()); | |
75 | + if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){ | |
76 | + /** | |
77 | + * 使用分页查询 | |
78 | + */ | |
79 | + Page<ShipmentContainerHeader> page = new Page<>(pageNum, pageSize); | |
80 | + IPage<ShipmentContainerHeader> iPage = shipmentContainerHeaderService.page(page, lambdaQueryWrapper); | |
81 | + return getMpDataTable(iPage.getRecords(),iPage.getTotal()); | |
82 | + } else { | |
83 | + List<ShipmentContainerHeader> list = shipmentContainerHeaderService.list(lambdaQueryWrapper); | |
84 | + return getDataTable(list); | |
85 | + } | |
86 | + } | |
87 | + | |
88 | + /** | |
89 | + * 新增出库组盘头 | |
90 | + */ | |
91 | + @GetMapping("/add") | |
92 | + public String add() | |
93 | + { | |
94 | + return prefix + "/add"; | |
95 | + } | |
96 | + | |
97 | + /** | |
98 | + * 新增保存出库组盘头 | |
99 | + */ | |
100 | + @Log(title ="出库-出库组盘", operating = "新增出库组头", action = BusinessType.INSERT) | |
101 | + @PostMapping("/add") | |
102 | + @ResponseBody | |
103 | + public AjaxResult addSave(ShipmentContainerHeader shipmentContainerHeader) | |
104 | + { | |
105 | + shipmentContainerHeader.setWarehouseCode(ShiroUtils.getWarehouseCode()); | |
106 | + shipmentContainerHeader.setCreatedBy(ShiroUtils.getLoginName()); | |
107 | + return toAjax(shipmentContainerHeaderService.save(shipmentContainerHeader)); | |
108 | + } | |
109 | + | |
110 | + /** | |
111 | + * 修改出库组盘头 | |
112 | + */ | |
113 | + @GetMapping("/edit/{id}") | |
114 | + public String edit(@PathVariable("id") Integer id, ModelMap mmap) | |
115 | + { | |
116 | + ShipmentContainerHeader shipmentContainerHeader = shipmentContainerHeaderService.getById(id); | |
117 | + mmap.put("shipmentContainerHeader", shipmentContainerHeader); | |
118 | + return prefix + "/edit"; | |
119 | + } | |
120 | + | |
121 | + /** | |
122 | + * 修改保存出库组盘头 | |
123 | + */ | |
124 | + @RequiresPermissions("shipment:container:edit") | |
125 | + @Log(title ="出库-出库组盘", operating = "修改出库组头", action = BusinessType.UPDATE) | |
126 | + @PostMapping("/edit") | |
127 | + @ResponseBody | |
128 | + public AjaxResult editSave(ShipmentContainerHeader shipmentContainerHeader) | |
129 | + { | |
130 | + return toAjax(shipmentContainerHeaderService.saveOrUpdate(shipmentContainerHeader)); | |
131 | + } | |
132 | + | |
133 | + | |
134 | + /** | |
135 | + * 删除出库组盘 | |
136 | + */ | |
137 | + @RequiresPermissions("shipment:container:remove") | |
138 | + @Log(title ="出库-出库组盘", operating = "删除出库组头", action = BusinessType.DELETE) | |
139 | + @PostMapping( "/remove") | |
140 | + @ResponseBody | |
141 | + public AjaxResult remove(String ids) | |
142 | + { | |
143 | + if (StringUtils.isEmpty(ids)) | |
144 | + return AjaxResult.error("id不能为空"); | |
145 | + List<Integer> IdList = Arrays.asList(Convert.toIntArray(ids)); | |
146 | + return shipmentContainerHeaderService.cancelCombination(IdList); | |
147 | + | |
148 | + } | |
149 | + | |
150 | + /** | |
151 | + * 生成任务 | |
152 | + */ | |
153 | + @RequiresPermissions("shipment:container:add") | |
154 | + @Log(title ="出库-任务生成", operating = "批量生成任务", action = BusinessType.UPDATE) | |
155 | + @PostMapping( "/createTask") | |
156 | + @ResponseBody | |
157 | + public AjaxResult createTask(String ids) | |
158 | + { | |
159 | + AjaxResult ajaxResult=new AjaxResult(); | |
160 | + if (StringUtils.isEmpty(ids)) | |
161 | + return AjaxResult.error("id不能为空"); | |
162 | + List<Integer> idList = Arrays.asList(Convert.toIntArray(ids)); | |
163 | + for (Integer id : idList) { | |
164 | + //获取表头 | |
165 | + ShipmentContainerHeader shipmentContainerHeader = shipmentContainerHeaderService.getById(id); | |
166 | + if(shipmentContainerHeader == null){ | |
167 | + return AjaxResult.error("出库货箱id:" + id + "未找到,操作中止"); | |
168 | + } | |
169 | + if(shipmentContainerHeader.getStatus() > 9){ | |
170 | + return AjaxResult.error("出库货箱编码(" + shipmentContainerHeader.getContainerCode() + ")已经生成任务,请不要重复生成,操作中止"); | |
171 | + } | |
172 | + } | |
173 | + ajaxResult=shipmentContainerHeaderService.createTask(idList); | |
174 | + return ajaxResult; | |
175 | + } | |
176 | + | |
177 | +} | |
... | ... |
src/main/java/com/huaheng/pc/shipment/shipmentContainerHeader/domain/ShipmentContainerHeader.java
... | ... | @@ -98,12 +98,6 @@ public class ShipmentContainerHeader implements Serializable { |
98 | 98 | @ApiModelProperty(value="高") |
99 | 99 | private BigDecimal height; |
100 | 100 | |
101 | - /** | |
102 | - * 价值 | |
103 | - */ | |
104 | - @TableField(value = "totalValue") | |
105 | - @ApiModelProperty(value="价值") | |
106 | - private BigDecimal totalValue; | |
107 | 101 | |
108 | 102 | /** |
109 | 103 | * 出库单内部号 |
... | ... | @@ -154,19 +148,6 @@ public class ShipmentContainerHeader implements Serializable { |
154 | 148 | @ApiModelProperty(value="波次号") |
155 | 149 | private Integer waveId; |
156 | 150 | |
157 | - /** | |
158 | - * 货箱计数号 | |
159 | - */ | |
160 | - @TableField(value = "countIndex") | |
161 | - @ApiModelProperty(value="货箱计数号") | |
162 | - private Integer countIndex; | |
163 | - | |
164 | - /** | |
165 | - * 货箱计数总数 | |
166 | - */ | |
167 | - @TableField(value = "countTotal") | |
168 | - @ApiModelProperty(value="货箱计数总数") | |
169 | - private Integer countTotal; | |
170 | 151 | |
171 | 152 | /** |
172 | 153 | * 任务已创建? |
... | ... | @@ -185,9 +166,9 @@ public class ShipmentContainerHeader implements Serializable { |
185 | 166 | /** |
186 | 167 | * 周转箱号 |
187 | 168 | */ |
188 | - @TableField(value = "transContCode") | |
169 | + @TableField(value = "transContainerCode") | |
189 | 170 | @ApiModelProperty(value="周转箱号") |
190 | - private String transContCode; | |
171 | + private String transContainerCode; | |
191 | 172 | |
192 | 173 | /** |
193 | 174 | * 复核工作台 |
... | ... | @@ -218,41 +199,6 @@ public class ShipmentContainerHeader implements Serializable { |
218 | 199 | private Date oqcEndAt; |
219 | 200 | |
220 | 201 | /** |
221 | - * 装载号 | |
222 | - */ | |
223 | - @TableField(value = "loadId") | |
224 | - @ApiModelProperty(value="装载号") | |
225 | - private Integer loadId; | |
226 | - | |
227 | - /** | |
228 | - * 笼车内部号 | |
229 | - */ | |
230 | - @TableField(value = "cageId") | |
231 | - @ApiModelProperty(value="笼车内部号") | |
232 | - private Integer cageId; | |
233 | - | |
234 | - /** | |
235 | - * 笼车号 | |
236 | - */ | |
237 | - @TableField(value = "cageCode") | |
238 | - @ApiModelProperty(value="笼车号") | |
239 | - private String cageCode; | |
240 | - | |
241 | - /** | |
242 | - * 移入笼车时间 | |
243 | - */ | |
244 | - @TableField(value = "stagedAt") | |
245 | - @ApiModelProperty(value="移入笼车时间") | |
246 | - private Date stagedAt; | |
247 | - | |
248 | - /** | |
249 | - * 移入笼车用户 | |
250 | - */ | |
251 | - @TableField(value = "stagedBy") | |
252 | - @ApiModelProperty(value="移入笼车用户") | |
253 | - private String stagedBy; | |
254 | - | |
255 | - /** | |
256 | 202 | * 创建时间 |
257 | 203 | */ |
258 | 204 | @TableField(value = "created") |
... | ... | @@ -316,17 +262,6 @@ public class ShipmentContainerHeader implements Serializable { |
316 | 262 | @ApiModelProperty(value="承运商") |
317 | 263 | private String carrierCode; |
318 | 264 | |
319 | - @TableField(value = "scaledBy") | |
320 | - @ApiModelProperty(value="null") | |
321 | - private String scaledBy; | |
322 | - | |
323 | - @TableField(value = "scaledAt") | |
324 | - @ApiModelProperty(value="null") | |
325 | - private Date scaledAt; | |
326 | - | |
327 | - @TableField(value = "storeCode") | |
328 | - @ApiModelProperty(value="null") | |
329 | - private String storeCode; | |
330 | 265 | |
331 | 266 | /** |
332 | 267 | * 拍照图片id |
... | ... | @@ -381,8 +316,6 @@ public class ShipmentContainerHeader implements Serializable { |
381 | 316 | |
382 | 317 | public static final String COL_HEIGHT = "height"; |
383 | 318 | |
384 | - public static final String COL_TOTALVALUE = "totalValue"; | |
385 | - | |
386 | 319 | public static final String COL_SHIPMENTID = "shipmentId"; |
387 | 320 | |
388 | 321 | public static final String COL_COMPANYCODE = "companyCode"; |
... | ... | @@ -397,15 +330,11 @@ public class ShipmentContainerHeader implements Serializable { |
397 | 330 | |
398 | 331 | public static final String COL_WAVEID = "waveId"; |
399 | 332 | |
400 | - public static final String COL_COUNTINDEX = "countIndex"; | |
401 | - | |
402 | - public static final String COL_COUNTTOTAL = "countTotal"; | |
403 | - | |
404 | 333 | public static final String COL_TASKCREATED = "taskCreated"; |
405 | 334 | |
406 | 335 | public static final String COL_SHIPMENTCODE = "shipmentCode"; |
407 | 336 | |
408 | - public static final String COL_TRANSCONTCODE = "transContCode"; | |
337 | + public static final String COL_TRANSCONTAINERCODE = "transContainerCode"; | |
409 | 338 | |
410 | 339 | public static final String COL_OQCBENCH = "oqcBench"; |
411 | 340 | |
... | ... | @@ -415,16 +344,6 @@ public class ShipmentContainerHeader implements Serializable { |
415 | 344 | |
416 | 345 | public static final String COL_OQCENDAT = "oqcEndAt"; |
417 | 346 | |
418 | - public static final String COL_LOADID = "loadId"; | |
419 | - | |
420 | - public static final String COL_CAGEID = "cageId"; | |
421 | - | |
422 | - public static final String COL_CAGECODE = "cageCode"; | |
423 | - | |
424 | - public static final String COL_STAGEDAT = "stagedAt"; | |
425 | - | |
426 | - public static final String COL_STAGEDBY = "stagedBy"; | |
427 | - | |
428 | 347 | public static final String COL_CREATED = "created"; |
429 | 348 | |
430 | 349 | public static final String COL_CREATEDBY = "createdBy"; |
... | ... | @@ -443,12 +362,6 @@ public class ShipmentContainerHeader implements Serializable { |
443 | 362 | |
444 | 363 | public static final String COL_CARRIERCODE = "carrierCode"; |
445 | 364 | |
446 | - public static final String COL_SCALEDBY = "scaledBy"; | |
447 | - | |
448 | - public static final String COL_SCALEDAT = "scaledAt"; | |
449 | - | |
450 | - public static final String COL_STORECODE = "storeCode"; | |
451 | - | |
452 | 365 | public static final String COL_PICURLS = "picUrls"; |
453 | 366 | |
454 | 367 | public static final String COL_PIDIDS = "pidIds"; |
... | ... | @@ -653,23 +566,6 @@ public class ShipmentContainerHeader implements Serializable { |
653 | 566 | this.height = height; |
654 | 567 | } |
655 | 568 | |
656 | - /** | |
657 | - * 获取价值 | |
658 | - * | |
659 | - * @return totalValue - 价值 | |
660 | - */ | |
661 | - public BigDecimal getTotalValue() { | |
662 | - return totalValue; | |
663 | - } | |
664 | - | |
665 | - /** | |
666 | - * 设置价值 | |
667 | - * | |
668 | - * @param totalValue 价值 | |
669 | - */ | |
670 | - public void setTotalValue(BigDecimal totalValue) { | |
671 | - this.totalValue = totalValue; | |
672 | - } | |
673 | 569 | |
674 | 570 | /** |
675 | 571 | * 获取出库单内部号 |
... | ... | @@ -788,42 +684,6 @@ public class ShipmentContainerHeader implements Serializable { |
788 | 684 | } |
789 | 685 | |
790 | 686 | /** |
791 | - * 获取货箱计数号 | |
792 | - * | |
793 | - * @return countIndex - 货箱计数号 | |
794 | - */ | |
795 | - public Integer getCountIndex() { | |
796 | - return countIndex; | |
797 | - } | |
798 | - | |
799 | - /** | |
800 | - * 设置货箱计数号 | |
801 | - * | |
802 | - * @param countIndex 货箱计数号 | |
803 | - */ | |
804 | - public void setCountIndex(Integer countIndex) { | |
805 | - this.countIndex = countIndex; | |
806 | - } | |
807 | - | |
808 | - /** | |
809 | - * 获取货箱计数总数 | |
810 | - * | |
811 | - * @return countTotal - 货箱计数总数 | |
812 | - */ | |
813 | - public Integer getCountTotal() { | |
814 | - return countTotal; | |
815 | - } | |
816 | - | |
817 | - /** | |
818 | - * 设置货箱计数总数 | |
819 | - * | |
820 | - * @param countTotal 货箱计数总数 | |
821 | - */ | |
822 | - public void setCountTotal(Integer countTotal) { | |
823 | - this.countTotal = countTotal; | |
824 | - } | |
825 | - | |
826 | - /** | |
827 | 687 | * 获取任务已创建? |
828 | 688 | * |
829 | 689 | * @return taskCreated - 任务已创建? |
... | ... | @@ -859,22 +719,12 @@ public class ShipmentContainerHeader implements Serializable { |
859 | 719 | this.shipmentCode = shipmentCode; |
860 | 720 | } |
861 | 721 | |
862 | - /** | |
863 | - * 获取周转箱号 | |
864 | - * | |
865 | - * @return transContCode - 周转箱号 | |
866 | - */ | |
867 | - public String getTransContCode() { | |
868 | - return transContCode; | |
722 | + public String getTransContainerCode() { | |
723 | + return transContainerCode; | |
869 | 724 | } |
870 | 725 | |
871 | - /** | |
872 | - * 设置周转箱号 | |
873 | - * | |
874 | - * @param transContCode 周转箱号 | |
875 | - */ | |
876 | - public void setTransContCode(String transContCode) { | |
877 | - this.transContCode = transContCode; | |
726 | + public void setTransContainerCode(String transContainerCode) { | |
727 | + this.transContainerCode = transContainerCode; | |
878 | 728 | } |
879 | 729 | |
880 | 730 | /** |
... | ... | @@ -949,95 +799,6 @@ public class ShipmentContainerHeader implements Serializable { |
949 | 799 | this.oqcEndAt = oqcEndAt; |
950 | 800 | } |
951 | 801 | |
952 | - /** | |
953 | - * 获取装载号 | |
954 | - * | |
955 | - * @return loadId - 装载号 | |
956 | - */ | |
957 | - public Integer getLoadId() { | |
958 | - return loadId; | |
959 | - } | |
960 | - | |
961 | - /** | |
962 | - * 设置装载号 | |
963 | - * | |
964 | - * @param loadId 装载号 | |
965 | - */ | |
966 | - public void setLoadId(Integer loadId) { | |
967 | - this.loadId = loadId; | |
968 | - } | |
969 | - | |
970 | - /** | |
971 | - * 获取笼车内部号 | |
972 | - * | |
973 | - * @return cageId - 笼车内部号 | |
974 | - */ | |
975 | - public Integer getCageId() { | |
976 | - return cageId; | |
977 | - } | |
978 | - | |
979 | - /** | |
980 | - * 设置笼车内部号 | |
981 | - * | |
982 | - * @param cageId 笼车内部号 | |
983 | - */ | |
984 | - public void setCageId(Integer cageId) { | |
985 | - this.cageId = cageId; | |
986 | - } | |
987 | - | |
988 | - /** | |
989 | - * 获取笼车号 | |
990 | - * | |
991 | - * @return cageCode - 笼车号 | |
992 | - */ | |
993 | - public String getCageCode() { | |
994 | - return cageCode; | |
995 | - } | |
996 | - | |
997 | - /** | |
998 | - * 设置笼车号 | |
999 | - * | |
1000 | - * @param cageCode 笼车号 | |
1001 | - */ | |
1002 | - public void setCageCode(String cageCode) { | |
1003 | - this.cageCode = cageCode; | |
1004 | - } | |
1005 | - | |
1006 | - /** | |
1007 | - * 获取移入笼车时间 | |
1008 | - * | |
1009 | - * @return stagedAt - 移入笼车时间 | |
1010 | - */ | |
1011 | - public Date getStagedAt() { | |
1012 | - return stagedAt; | |
1013 | - } | |
1014 | - | |
1015 | - /** | |
1016 | - * 设置移入笼车时间 | |
1017 | - * | |
1018 | - * @param stagedAt 移入笼车时间 | |
1019 | - */ | |
1020 | - public void setStagedAt(Date stagedAt) { | |
1021 | - this.stagedAt = stagedAt; | |
1022 | - } | |
1023 | - | |
1024 | - /** | |
1025 | - * 获取移入笼车用户 | |
1026 | - * | |
1027 | - * @return stagedBy - 移入笼车用户 | |
1028 | - */ | |
1029 | - public String getStagedBy() { | |
1030 | - return stagedBy; | |
1031 | - } | |
1032 | - | |
1033 | - /** | |
1034 | - * 设置移入笼车用户 | |
1035 | - * | |
1036 | - * @param stagedBy 移入笼车用户 | |
1037 | - */ | |
1038 | - public void setStagedBy(String stagedBy) { | |
1039 | - this.stagedBy = stagedBy; | |
1040 | - } | |
1041 | 802 | |
1042 | 803 | /** |
1043 | 804 | * 获取创建时间 |
... | ... | @@ -1201,47 +962,6 @@ public class ShipmentContainerHeader implements Serializable { |
1201 | 962 | this.carrierCode = carrierCode; |
1202 | 963 | } |
1203 | 964 | |
1204 | - /** | |
1205 | - * @return scaledBy | |
1206 | - */ | |
1207 | - public String getScaledBy() { | |
1208 | - return scaledBy; | |
1209 | - } | |
1210 | - | |
1211 | - /** | |
1212 | - * @param scaledBy | |
1213 | - */ | |
1214 | - public void setScaledBy(String scaledBy) { | |
1215 | - this.scaledBy = scaledBy; | |
1216 | - } | |
1217 | - | |
1218 | - /** | |
1219 | - * @return scaledAt | |
1220 | - */ | |
1221 | - public Date getScaledAt() { | |
1222 | - return scaledAt; | |
1223 | - } | |
1224 | - | |
1225 | - /** | |
1226 | - * @param scaledAt | |
1227 | - */ | |
1228 | - public void setScaledAt(Date scaledAt) { | |
1229 | - this.scaledAt = scaledAt; | |
1230 | - } | |
1231 | - | |
1232 | - /** | |
1233 | - * @return storeCode | |
1234 | - */ | |
1235 | - public String getStoreCode() { | |
1236 | - return storeCode; | |
1237 | - } | |
1238 | - | |
1239 | - /** | |
1240 | - * @param storeCode | |
1241 | - */ | |
1242 | - public void setStoreCode(String storeCode) { | |
1243 | - this.storeCode = storeCode; | |
1244 | - } | |
1245 | 965 | |
1246 | 966 | /** |
1247 | 967 | * 获取拍照图片id |
... | ... |
src/main/java/com/huaheng/pc/shipment/shipmentContainerHeader/service/ShipmentContainerHeaderService.java
... | ... | @@ -23,7 +23,16 @@ public interface ShipmentContainerHeaderService extends IService<ShipmentContain |
23 | 23 | |
24 | 24 | AjaxResult cancelCombinationDetailInner(List<ShipmentContainerDetail> shipmentContainerDetails) ; |
25 | 25 | |
26 | + AjaxResult cancelCombination(List<Integer> shipmentContainerIds) ; | |
27 | + | |
28 | + | |
26 | 29 | AjaxResult autoCombination(String shipmentCode); |
27 | 30 | |
31 | + AjaxResult checkForCancelCombination(List<Integer> shipmentContainerIds); | |
32 | + | |
33 | + AjaxResult createTask(List<Integer> idList); | |
34 | + | |
35 | + | |
36 | + | |
28 | 37 | |
29 | 38 | } |
... | ... |
src/main/java/com/huaheng/pc/shipment/shipmentContainerHeader/service/ShipmentContainerHeaderServiceImpl.java
... | ... | @@ -5,10 +5,11 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
5 | 5 | import com.huaheng.common.exception.service.ServiceException; |
6 | 6 | import com.huaheng.common.utils.security.ShiroUtils; |
7 | 7 | import com.huaheng.framework.web.domain.AjaxResult; |
8 | -import com.huaheng.pc.general.location.domain.Location; | |
9 | -import com.huaheng.pc.general.location.service.LocationService; | |
10 | -import com.huaheng.pc.general.material.domain.Material; | |
11 | -import com.huaheng.pc.general.material.service.MaterialService; | |
8 | +import com.huaheng.framework.web.domain.RetCode; | |
9 | +import com.huaheng.pc.config.location.domain.Location; | |
10 | +import com.huaheng.pc.config.location.service.LocationService; | |
11 | +import com.huaheng.pc.config.material.domain.Material; | |
12 | +import com.huaheng.pc.config.material.service.MaterialService; | |
12 | 13 | import com.huaheng.pc.inventory.inventoryDetail.domain.InventoryDetail; |
13 | 14 | import com.huaheng.pc.inventory.inventoryDetail.service.InventoryDetailService; |
14 | 15 | import com.huaheng.pc.shipment.shipmentContainerDetail.domain.ShipmentContainerDetail; |
... | ... | @@ -16,9 +17,12 @@ import com.huaheng.pc.shipment.shipmentContainerDetail.service.ShipmentContainer |
16 | 17 | import com.huaheng.pc.shipment.shipmentContainerHeader.domain.ShipmentCombinationModel; |
17 | 18 | import com.huaheng.pc.shipment.shipmentDetail.domain.ShipmentDetail; |
18 | 19 | import com.huaheng.pc.shipment.shipmentDetail.service.ShipmentDetailService; |
20 | +import com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentHeader; | |
19 | 21 | import com.huaheng.pc.shipment.shipmentHeader.service.ShipmentHeaderService; |
20 | 22 | import com.huaheng.pc.shipment.shippingCombination.domain.ShippingSearch; |
21 | 23 | import com.huaheng.pc.shipment.shippingCombination.service.ShippingCombinationService; |
24 | +import com.huaheng.pc.task.taskHeader.domain.ShipmentTaskCreateModel; | |
25 | +import com.huaheng.pc.task.taskHeader.service.TaskHeaderService; | |
22 | 26 | import org.springframework.beans.factory.annotation.Autowired; |
23 | 27 | import org.springframework.stereotype.Service; |
24 | 28 | import javax.annotation.Resource; |
... | ... | @@ -30,6 +34,7 @@ import java.util.Map; |
30 | 34 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
31 | 35 | import com.huaheng.pc.shipment.shipmentContainerHeader.domain.ShipmentContainerHeader; |
32 | 36 | import com.huaheng.pc.shipment.shipmentContainerHeader.mapper.ShipmentContainerHeaderMapper; |
37 | +import com.huaheng.pc.shipment.shipmentContainerHeader.service.ShipmentContainerHeaderService; | |
33 | 38 | import org.springframework.transaction.annotation.Transactional; |
34 | 39 | |
35 | 40 | @Service |
... | ... | @@ -51,6 +56,8 @@ public class ShipmentContainerHeaderServiceImpl extends ServiceImpl<ShipmentCont |
51 | 56 | private MaterialService materialService; |
52 | 57 | @Autowired |
53 | 58 | private ShippingCombinationService shippingCombinationService; |
59 | + @Autowired | |
60 | + private TaskHeaderService taskHeaderService; | |
54 | 61 | |
55 | 62 | |
56 | 63 | @Override |
... | ... | @@ -293,6 +300,30 @@ public class ShipmentContainerHeaderServiceImpl extends ServiceImpl<ShipmentCont |
293 | 300 | return AjaxResult.success(""); |
294 | 301 | } |
295 | 302 | |
303 | + /** | |
304 | + * 取消组盘 | |
305 | + * @param shipmentContainerIds | |
306 | + * @return | |
307 | + */ | |
308 | + @Override | |
309 | + public AjaxResult cancelCombination(List<Integer> shipmentContainerIds) { | |
310 | + | |
311 | + AjaxResult result = checkForCancelCombination(shipmentContainerIds); | |
312 | + if(result.getCode()!= RetCode.SUCCESS.getValue()){ | |
313 | + return result; | |
314 | + } | |
315 | + for(int id : shipmentContainerIds){ | |
316 | + LambdaQueryWrapper<ShipmentContainerDetail> lambdaQueryWrapper=Wrappers.lambdaQuery(); | |
317 | + lambdaQueryWrapper.eq(ShipmentContainerDetail::getShippingContainerId,id); | |
318 | + List<ShipmentContainerDetail> shipmentContainerDetails = shipmentContainerDetailService.list(lambdaQueryWrapper); | |
319 | + result = cancelCombinationDetailInner(shipmentContainerDetails); | |
320 | + if(result.hasErr()){ | |
321 | + return result; | |
322 | + } | |
323 | + } | |
324 | + | |
325 | + return AjaxResult.success(""); | |
326 | + } | |
296 | 327 | |
297 | 328 | /** |
298 | 329 | * 出库自动组盘 |
... | ... | @@ -361,4 +392,35 @@ public class ShipmentContainerHeaderServiceImpl extends ServiceImpl<ShipmentCont |
361 | 392 | return AjaxResult.success(""); |
362 | 393 | } |
363 | 394 | |
395 | + /** | |
396 | + * 检查是否可以进行取消配盘 | |
397 | + * @param shipmentContainerIds | |
398 | + * @return | |
399 | + */ | |
400 | + @Override | |
401 | + public AjaxResult checkForCancelCombination(List<Integer> shipmentContainerIds) { | |
402 | + for(int id : shipmentContainerIds){ | |
403 | + ShipmentContainerHeader shipmentContainerHeader = this.getById(id); | |
404 | + if(shipmentContainerHeader.getStatus()>9){ | |
405 | + return AjaxResult.error("存在已生成任务的记录,请先取消任务再取消组盘"); | |
406 | + } | |
407 | + } | |
408 | + return AjaxResult.success(""); | |
409 | + } | |
410 | + | |
411 | + /* 生成任务 */ | |
412 | + @Override | |
413 | + @Transactional | |
414 | + public AjaxResult createTask(List<Integer> idList) { | |
415 | + ShipmentTaskCreateModel shipmentTask = new ShipmentTaskCreateModel(); | |
416 | + for (Integer id : idList) { | |
417 | + shipmentTask.setShipmentContainerHeaderIds(id); | |
418 | +// AjaxResult ajaxResult = taskHeaderService.createTaskFromShipmentContainers(shipmentTask); | |
419 | +// if(ajaxResult.hasErr()){ | |
420 | +// return ajaxResult; | |
421 | +// } | |
422 | + } | |
423 | + return AjaxResult.success("全部生成完毕"); | |
424 | + } | |
425 | + | |
364 | 426 | } |
... | ... |
src/main/java/com/huaheng/pc/shipment/shipmentDetail/service/ShipmentDetailServiceImpl.java
... | ... | @@ -6,8 +6,8 @@ import com.huaheng.common.utils.DataUtils; |
6 | 6 | import com.huaheng.common.utils.StringUtils; |
7 | 7 | import com.huaheng.common.utils.security.ShiroUtils; |
8 | 8 | import com.huaheng.framework.web.domain.AjaxResult; |
9 | -import com.huaheng.pc.general.material.domain.Material; | |
10 | -import com.huaheng.pc.general.material.service.MaterialService; | |
9 | +import com.huaheng.pc.config.material.domain.Material; | |
10 | +import com.huaheng.pc.config.material.service.MaterialService; | |
11 | 11 | import com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentHeader; |
12 | 12 | import com.huaheng.pc.shipment.shipmentHeader.service.ShipmentHeaderService; |
13 | 13 | import org.springframework.beans.factory.annotation.Autowired; |
... | ... | @@ -19,7 +19,6 @@ import java.util.Map; |
19 | 19 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
20 | 20 | import com.huaheng.pc.shipment.shipmentDetail.mapper.ShipmentDetailMapper; |
21 | 21 | import com.huaheng.pc.shipment.shipmentDetail.domain.ShipmentDetail; |
22 | -import com.huaheng.pc.shipment.shipmentDetail.service.ShipmentDetailService; | |
23 | 22 | import org.springframework.transaction.annotation.Transactional; |
24 | 23 | |
25 | 24 | @Service |
... | ... |
src/main/java/com/huaheng/pc/shipment/shippingCombination/controller/ShippingCombinationController.java
... | ... | @@ -8,7 +8,7 @@ import com.huaheng.common.utils.security.ShiroUtils; |
8 | 8 | import com.huaheng.framework.web.controller.BaseController; |
9 | 9 | import com.huaheng.framework.web.domain.AjaxResult; |
10 | 10 | import com.huaheng.framework.web.page.TableDataInfo; |
11 | -import com.huaheng.pc.general.material.service.MaterialServiceImpl; | |
11 | +import com.huaheng.pc.config.material.service.MaterialServiceImpl; | |
12 | 12 | import com.huaheng.pc.inventory.inventoryDetail.domain.InventoryDetail; |
13 | 13 | import com.huaheng.pc.inventory.inventoryDetail.service.InventoryDetailService; |
14 | 14 | import com.huaheng.pc.shipment.shipmentContainerDetail.service.ShipmentContainerDetailService; |
... | ... |
src/main/java/com/huaheng/pc/system/menu/controller/MenuController.java
... | ... | @@ -2,6 +2,8 @@ package com.huaheng.pc.system.menu.controller; |
2 | 2 | |
3 | 3 | import java.util.List; |
4 | 4 | import java.util.Map; |
5 | + | |
6 | +import com.huaheng.common.utils.security.ShiroUtils; | |
5 | 7 | import org.apache.shiro.authz.annotation.RequiresPermissions; |
6 | 8 | import org.springframework.beans.factory.annotation.Autowired; |
7 | 9 | import org.springframework.stereotype.Controller; |
... | ... | @@ -182,4 +184,10 @@ public class MenuController extends BaseController |
182 | 184 | mmap.put("menu", menuService.selectMenuById(id)); |
183 | 185 | return prefix + "/tree"; |
184 | 186 | } |
187 | + | |
188 | + @GetMapping("/getMenuByUserId") | |
189 | + @ResponseBody | |
190 | + public List<Menu> list(){ | |
191 | + return menuService.selectPCMenusByUserId(ShiroUtils.getUserId()); | |
192 | + } | |
185 | 193 | } |
186 | 194 | \ No newline at end of file |
... | ... |
src/main/java/com/huaheng/pc/system/user/controller/IndexController.java
... | ... | @@ -314,6 +314,7 @@ public class IndexController extends BaseController |
314 | 314 | // 根据用户id取出菜单 |
315 | 315 | List<Menu> menus = menuService.selectPCMenusByUserId(user.getId()); |
316 | 316 | mmap.put("menus", menus); |
317 | + System.out.println(menus); | |
317 | 318 | mmap.put("user", user); |
318 | 319 | mmap.put("copyrightYear", huahengConfig.getCopyrightYear()); |
319 | 320 | return "index"; |
... | ... |
src/main/java/com/huaheng/pc/system/user/controller/LoginController.java
1 | 1 | package com.huaheng.pc.system.user.controller; |
2 | 2 | |
3 | -import javax.servlet.http.HttpServletRequest; | |
4 | -import javax.servlet.http.HttpServletResponse; | |
5 | - | |
6 | -import com.huaheng.common.utils.security.ShiroUtils; | |
3 | +import com.huaheng.common.utils.ServletUtils; | |
4 | +import com.huaheng.common.utils.StringUtils; | |
5 | +import com.huaheng.framework.web.controller.BaseController; | |
6 | +import com.huaheng.framework.web.domain.AjaxResult; | |
7 | 7 | import com.huaheng.framework.web.domain.RetCode; |
8 | -import com.huaheng.pc.general.company.domain.Company; | |
9 | -import com.huaheng.pc.general.company.service.CompanyService; | |
10 | -import com.huaheng.pc.system.user.domain.User; | |
11 | 8 | import com.huaheng.pc.system.user.service.IUserService; |
12 | -import org.apache.shiro.SecurityUtils; | |
13 | -import org.apache.shiro.authc.AuthenticationException; | |
14 | -import org.apache.shiro.authc.UsernamePasswordToken; | |
15 | -import org.apache.shiro.subject.Subject; | |
16 | 9 | import org.springframework.beans.factory.annotation.Autowired; |
17 | 10 | import org.springframework.stereotype.Controller; |
18 | 11 | import org.springframework.web.bind.annotation.GetMapping; |
19 | 12 | import org.springframework.web.bind.annotation.PostMapping; |
20 | 13 | import org.springframework.web.bind.annotation.ResponseBody; |
21 | -import com.huaheng.common.utils.ServletUtils; | |
22 | -import com.huaheng.common.utils.StringUtils; | |
23 | -import com.huaheng.framework.web.controller.BaseController; | |
24 | -import com.huaheng.framework.web.domain.AjaxResult; | |
25 | 14 | |
15 | +import javax.servlet.http.HttpServletRequest; | |
16 | +import javax.servlet.http.HttpServletResponse; | |
26 | 17 | import java.util.List; |
27 | 18 | import java.util.Map; |
28 | -import java.util.stream.Collectors; | |
29 | 19 | |
30 | 20 | /** |
31 | 21 | * 登录验证 |
... | ... |
src/main/java/com/huaheng/pc/system/user/controller/UserController.java
... | ... | @@ -2,49 +2,33 @@ package com.huaheng.pc.system.user.controller; |
2 | 2 | |
3 | 3 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
4 | 4 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
5 | -import com.huaheng.common.constant.Constants; | |
6 | -import com.huaheng.common.utils.MessageUtils; | |
7 | -import com.huaheng.common.utils.SystemLogUtils; | |
8 | -import com.huaheng.common.utils.security.ShiroUtils; | |
9 | -import com.huaheng.framework.shiro.web.filter.LogoutFilter; | |
10 | -import com.huaheng.pc.general.company.domain.Company; | |
11 | -import com.huaheng.pc.general.company.service.CompanyService; | |
12 | -import com.huaheng.pc.general.warehouse.domain.Warehouse; | |
13 | -import com.huaheng.pc.general.warehouse.mapper.WarehouseMapper; | |
14 | -import com.huaheng.pc.general.warehouse.service.WarehouseService; | |
15 | -import com.huaheng.pc.system.user.domain.SysUserWarehouse; | |
16 | -import org.apache.shiro.authz.annotation.RequiresPermissions; | |
17 | -import org.apache.shiro.session.SessionException; | |
18 | -import org.apache.shiro.subject.Subject; | |
19 | -import org.springframework.beans.factory.annotation.Autowired; | |
20 | -import org.springframework.boot.web.servlet.server.Session; | |
21 | -import org.springframework.stereotype.Controller; | |
22 | -import org.springframework.transaction.annotation.Transactional; | |
23 | -import org.springframework.ui.ModelMap; | |
24 | -import org.springframework.web.bind.annotation.GetMapping; | |
25 | -import org.springframework.web.bind.annotation.PathVariable; | |
26 | -import org.springframework.web.bind.annotation.PostMapping; | |
27 | -import org.springframework.web.bind.annotation.RequestMapping; | |
28 | -import org.springframework.web.bind.annotation.ResponseBody; | |
29 | 5 | import com.huaheng.common.utils.StringUtils; |
30 | 6 | import com.huaheng.common.utils.poi.ExcelUtil; |
7 | +import com.huaheng.common.utils.security.ShiroUtils; | |
31 | 8 | import com.huaheng.framework.aspectj.lang.annotation.Log; |
32 | 9 | import com.huaheng.framework.aspectj.lang.constant.BusinessType; |
33 | 10 | import com.huaheng.framework.web.controller.BaseController; |
34 | 11 | import com.huaheng.framework.web.domain.AjaxResult; |
35 | 12 | import com.huaheng.framework.web.page.TableDataInfo; |
13 | +import com.huaheng.pc.config.company.domain.Company; | |
14 | +import com.huaheng.pc.config.company.service.CompanyService; | |
15 | +import com.huaheng.pc.config.warehouse.domain.Warehouse; | |
16 | +import com.huaheng.pc.config.warehouse.mapper.WarehouseMapper; | |
17 | +import com.huaheng.pc.config.warehouse.service.WarehouseService; | |
36 | 18 | import com.huaheng.pc.system.role.service.IRoleService; |
37 | 19 | import com.huaheng.pc.system.user.domain.User; |
38 | 20 | import com.huaheng.pc.system.user.service.IUserService; |
21 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | |
22 | +import org.springframework.beans.factory.annotation.Autowired; | |
23 | +import org.springframework.stereotype.Controller; | |
24 | +import org.springframework.transaction.annotation.Transactional; | |
25 | +import org.springframework.ui.ModelMap; | |
26 | +import org.springframework.web.bind.annotation.*; | |
39 | 27 | |
40 | 28 | import javax.annotation.Resource; |
41 | -import javax.servlet.ServletRequest; | |
42 | -import javax.servlet.ServletResponse; | |
43 | 29 | import java.util.List; |
44 | 30 | import java.util.Map; |
45 | 31 | |
46 | -import static javax.security.auth.Subject.getSubject; | |
47 | - | |
48 | 32 | /** |
49 | 33 | * 用户信息 |
50 | 34 | * |
... | ... |
src/main/java/com/huaheng/pc/system/user/service/UserServiceImpl.java
... | ... | @@ -8,11 +8,11 @@ import java.util.stream.Collectors; |
8 | 8 | |
9 | 9 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
10 | 10 | import com.huaheng.framework.web.domain.AjaxResult; |
11 | -import com.huaheng.pc.general.company.domain.Company; | |
12 | -import com.huaheng.pc.general.company.mapper.CompanyMapper; | |
13 | -import com.huaheng.pc.general.company.service.CompanyService; | |
14 | -import com.huaheng.pc.general.warehouse.service.WarehouseService; | |
15 | -import com.huaheng.pc.general.warehouse.domain.Warehouse; | |
11 | +import com.huaheng.pc.config.company.domain.Company; | |
12 | +import com.huaheng.pc.config.company.mapper.CompanyMapper; | |
13 | +import com.huaheng.pc.config.company.service.CompanyService; | |
14 | +import com.huaheng.pc.config.warehouse.domain.Warehouse; | |
15 | +import com.huaheng.pc.config.warehouse.service.WarehouseService; | |
16 | 16 | import com.huaheng.pc.system.user.domain.*; |
17 | 17 | import com.huaheng.pc.system.user.mapper.SysUserWarehouseMapper; |
18 | 18 | import com.huaheng.pc.system.user.mapper.UserCompanyMapper; |
... | ... |
src/main/java/com/huaheng/pc/task/taskDetail/domain/TaskDetail.java
... | ... | @@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.annotation.TableName; |
7 | 7 | import io.swagger.annotations.ApiModel; |
8 | 8 | import io.swagger.annotations.ApiModelProperty; |
9 | 9 | import java.io.Serializable; |
10 | +import java.math.BigDecimal; | |
10 | 11 | import java.util.Date; |
11 | 12 | import lombok.Data; |
12 | 13 | |
... | ... | @@ -64,6 +65,27 @@ public class TaskDetail implements Serializable { |
64 | 65 | private String companyCode; |
65 | 66 | |
66 | 67 | /** |
68 | + * 单据号 | |
69 | + */ | |
70 | + @TableField(value = "billCode") | |
71 | + @ApiModelProperty(value="货主") | |
72 | + private String billCode; | |
73 | + | |
74 | + /** | |
75 | + * 主单Id | |
76 | + */ | |
77 | + @TableField(value = "billId") | |
78 | + @ApiModelProperty(value="货主") | |
79 | + private Integer billId; | |
80 | + | |
81 | + /** | |
82 | + * 子单ID | |
83 | + */ | |
84 | + @TableField(value = "billDetailId") | |
85 | + @ApiModelProperty(value="货主") | |
86 | + private Integer billDetailId; | |
87 | + | |
88 | + /** | |
67 | 89 | * 物料 |
68 | 90 | */ |
69 | 91 | @TableField(value = "materialCode") |
... | ... | @@ -96,7 +118,7 @@ public class TaskDetail implements Serializable { |
96 | 118 | */ |
97 | 119 | @TableField(value = "qty") |
98 | 120 | @ApiModelProperty(value="数量") |
99 | - private Integer qty; | |
121 | + private BigDecimal qty; | |
100 | 122 | |
101 | 123 | /** |
102 | 124 | * 从货位 |
... | ... | @@ -143,9 +165,9 @@ public class TaskDetail implements Serializable { |
143 | 165 | /** |
144 | 166 | * 状态 |
145 | 167 | */ |
146 | - @TableField(value = "enable") | |
168 | + @TableField(value = "status") | |
147 | 169 | @ApiModelProperty(value="状态") |
148 | - private Integer enable; | |
170 | + private Integer status; | |
149 | 171 | |
150 | 172 | /** |
151 | 173 | * 参考单号 |
... | ... | @@ -412,6 +434,13 @@ public class TaskDetail implements Serializable { |
412 | 434 | |
413 | 435 | public static final String COL_COMPANYCODE = "companyCode"; |
414 | 436 | |
437 | + public static final String COL_BILLCODE= "billCode"; | |
438 | + | |
439 | + public static final String COL_BILLID= "billId"; | |
440 | + | |
441 | + public static final String COL_BILLDETAILID= "billDetailId"; | |
442 | + | |
443 | + | |
415 | 444 | public static final String COL_MATERIALCODE = "materialCode"; |
416 | 445 | |
417 | 446 | public static final String COL_MATERIALNAME = "materialName"; |
... | ... | @@ -434,7 +463,7 @@ public class TaskDetail implements Serializable { |
434 | 463 | |
435 | 464 | public static final String COL_ATTRIBUTEID = "attributeId"; |
436 | 465 | |
437 | - public static final String COL_ENABLE = "enable"; | |
466 | + public static final String COL_STATUS= "status"; | |
438 | 467 | |
439 | 468 | public static final String COL_REFERENCECODE = "referenceCode"; |
440 | 469 | |
... | ... |
src/main/java/com/huaheng/pc/task/taskHeader/controller/TaskHeaderController.java
0 → 100644
1 | +package com.huaheng.pc.task.taskHeader.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.utils.StringUtils; | |
8 | +import com.huaheng.framework.aspectj.lang.annotation.Log; | |
9 | +import com.huaheng.framework.aspectj.lang.constant.BusinessType; | |
10 | +import com.huaheng.framework.web.controller.BaseController; | |
11 | +import com.huaheng.framework.web.page.PageDomain; | |
12 | +import com.huaheng.framework.web.page.TableDataInfo; | |
13 | +import com.huaheng.framework.web.page.TableSupport; | |
14 | +import com.huaheng.pc.config.material.service.MaterialService; | |
15 | +import com.huaheng.pc.config.warehouse.domain.Warehouse; | |
16 | +import com.huaheng.pc.task.taskHeader.domain.TaskHeader; | |
17 | +import com.huaheng.pc.task.taskHeader.mapper.TaskHeaderMapper; | |
18 | +import com.huaheng.pc.task.taskHeader.service.TaskHeaderService; | |
19 | +import org.apache.shiro.authz.annotation.RequiresPermissions; | |
20 | +import org.springframework.stereotype.Controller; | |
21 | +import org.springframework.web.bind.annotation.GetMapping; | |
22 | +import org.springframework.web.bind.annotation.PostMapping; | |
23 | +import org.springframework.web.bind.annotation.RequestMapping; | |
24 | +import org.springframework.web.bind.annotation.ResponseBody; | |
25 | + | |
26 | +import javax.annotation.Resource; | |
27 | +import java.util.List; | |
28 | + | |
29 | + | |
30 | +@Controller | |
31 | +@RequestMapping("/task/taskHeader") | |
32 | + | |
33 | + | |
34 | +public class TaskHeaderController extends BaseController { | |
35 | + | |
36 | + private String prefix = "task/taskHeader"; | |
37 | + | |
38 | + @RequiresPermissions("task:taskHeader:view") | |
39 | + @GetMapping() | |
40 | + public String container() { | |
41 | + return prefix + "/taskHeader"; | |
42 | + } | |
43 | + | |
44 | + | |
45 | + @Resource | |
46 | + private TaskHeaderService taskHeaderService; | |
47 | + | |
48 | + | |
49 | + | |
50 | + /** | |
51 | + * 查询任务列表 | |
52 | + */ | |
53 | + @RequiresPermissions("task:taskHeader:list") | |
54 | + @Log(title = "任务-上架任务", operating = "查看任务列表", action = BusinessType.GRANT) | |
55 | + @PostMapping("/list") | |
56 | + @ResponseBody | |
57 | + public TableDataInfo list(TaskHeader taskHeader) { | |
58 | + LambdaQueryWrapper<TaskHeader> lambdaQueryWrapper = Wrappers.lambdaQuery(); | |
59 | + PageDomain pageDomain = TableSupport.buildPageRequest(); | |
60 | + Integer pageNum = pageDomain.getPageNum(); | |
61 | + Integer pageSize = pageDomain.getPageSize(); | |
62 | + /** | |
63 | + * 使用分页查询 | |
64 | + */ | |
65 | + if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)){ | |
66 | + Page<TaskHeader> page = new Page<>(pageNum, pageSize); | |
67 | + IPage<TaskHeader> iPage = taskHeaderService.page(page, lambdaQueryWrapper); | |
68 | + return getMpDataTable(iPage.getRecords(), iPage.getTotal()); | |
69 | + } else { | |
70 | + List<TaskHeader> list = taskHeaderService.list(lambdaQueryWrapper); | |
71 | + return getDataTable(list); | |
72 | + } | |
73 | + } | |
74 | + | |
75 | + | |
76 | + | |
77 | +} | |
... | ... |
src/main/java/com/huaheng/pc/task/taskHeader/domain/ShipmentTaskCreateModel.java
0 → 100644
1 | +package com.huaheng.pc.task.taskHeader.domain; | |
2 | + | |
3 | +/** | |
4 | + * 出库任务创建模型类 | |
5 | + */ | |
6 | +public class ShipmentTaskCreateModel { | |
7 | + /** | |
8 | + * 需要创建任务的出库货箱列表 | |
9 | + */ | |
10 | + private Integer shipmentContainerHeaderIds; | |
11 | + /** | |
12 | + * 是否优先创建整出任务,1,表示可以创建整出就优先创建整出,不能的话就创建拣选出;2,表示只创建拣选出; | |
13 | + */ | |
14 | + private int taskType; | |
15 | + | |
16 | + /** | |
17 | + * 优先级 | |
18 | + */ | |
19 | + private short priority; | |
20 | + | |
21 | + private String companyId; | |
22 | + private String companyCode; | |
23 | + | |
24 | + public short getPriority() { | |
25 | + return priority; | |
26 | + } | |
27 | + | |
28 | + public void setPriority(short priority) { | |
29 | + this.priority = priority; | |
30 | + } | |
31 | + | |
32 | + public Integer getShipmentContainerHeaderIds() { | |
33 | + return shipmentContainerHeaderIds; | |
34 | + } | |
35 | + | |
36 | + public void setShipmentContainerHeaderIds(Integer shipmentContainerHeaderIds) { | |
37 | + this.shipmentContainerHeaderIds = shipmentContainerHeaderIds; | |
38 | + } | |
39 | + | |
40 | + public int getTaskType() { | |
41 | + return taskType; | |
42 | + } | |
43 | + | |
44 | + public void setTaskType(int taskType) { | |
45 | + this.taskType = taskType; | |
46 | + } | |
47 | + | |
48 | + public String getCompanyId() { | |
49 | + return companyId; | |
50 | + } | |
51 | + | |
52 | + public void setCompanyId(String companyId) { | |
53 | + this.companyId = companyId; | |
54 | + } | |
55 | + | |
56 | + public String getCompanyCode() { | |
57 | + return companyCode; | |
58 | + } | |
59 | + | |
60 | + public void setCompanyCode(String companyCode) { | |
61 | + this.companyCode = companyCode; | |
62 | + } | |
63 | +} | |
... | ... |
src/main/java/com/huaheng/pc/task/taskHeader/domain/TaskHeader.java
... | ... | @@ -47,7 +47,7 @@ public class TaskHeader implements Serializable { |
47 | 47 | */ |
48 | 48 | @TableField(value = "taskType") |
49 | 49 | @ApiModelProperty(value="任务类型") |
50 | - private String taskType; | |
50 | + private Integer taskType; | |
51 | 51 | |
52 | 52 | /** |
53 | 53 | * 内部类型 |
... | ... | @@ -87,9 +87,9 @@ public class TaskHeader implements Serializable { |
87 | 87 | /** |
88 | 88 | * 状态 |
89 | 89 | */ |
90 | - @TableField(value = "enable") | |
90 | + @TableField(value = "status") | |
91 | 91 | @ApiModelProperty(value="状态") |
92 | - private Integer enable; | |
92 | + private Integer status; | |
93 | 93 | |
94 | 94 | /** |
95 | 95 | * 波次号 |
... | ... | @@ -115,6 +115,13 @@ public class TaskHeader implements Serializable { |
115 | 115 | /** |
116 | 116 | * 容器号 |
117 | 117 | */ |
118 | + @TableField(value = "locationCode") | |
119 | + @ApiModelProperty(value="容器号") | |
120 | + private String locationCode; | |
121 | + | |
122 | + /** | |
123 | + * 容器号 | |
124 | + */ | |
118 | 125 | @TableField(value = "containerCode") |
119 | 126 | @ApiModelProperty(value="容器号") |
120 | 127 | private String containerCode; |
... | ... | @@ -337,7 +344,7 @@ public class TaskHeader implements Serializable { |
337 | 344 | |
338 | 345 | public static final String COL_CONFIRMEDBY = "confirmedBy"; |
339 | 346 | |
340 | - public static final String COL_ENABLE = "enable"; | |
347 | + public static final String COL_STATUS = "status"; | |
341 | 348 | |
342 | 349 | public static final String COL_WAVEID = "waveId"; |
343 | 350 | |
... | ... | @@ -345,6 +352,8 @@ public class TaskHeader implements Serializable { |
345 | 352 | |
346 | 353 | public static final String COL_PICKINGCARTPOS = "pickingCartPos"; |
347 | 354 | |
355 | + public static final String COL_LOCATIONCODE = "locationCode"; | |
356 | + | |
348 | 357 | public static final String COL_CONTAINERCODE = "containerCode"; |
349 | 358 | |
350 | 359 | public static final String COL_STARTPICKDATETIME = "startPickDateTime"; |
... | ... |
src/main/java/com/huaheng/pc/task/taskHeader/service/TaskHeaderService.java
1 | 1 | package com.huaheng.pc.task.taskHeader.service; |
2 | 2 | |
3 | +import com.huaheng.framework.web.domain.AjaxResult; | |
4 | +import com.huaheng.pc.task.taskHeader.domain.ShipmentTaskCreateModel; | |
3 | 5 | import com.huaheng.pc.task.taskHeader.domain.TaskHeader; |
4 | 6 | import com.baomidou.mybatisplus.extension.service.IService; |
5 | 7 | public interface TaskHeaderService extends IService<TaskHeader>{ |
6 | 8 | |
7 | 9 | |
10 | + AjaxResult createTaskFromShipmentContainers(ShipmentTaskCreateModel shipmentTaskCreateModel) ; | |
11 | + | |
8 | 12 | } |
... | ... |
src/main/java/com/huaheng/pc/task/taskHeader/service/TaskHeaderServiceImpl.java
1 | 1 | package com.huaheng.pc.task.taskHeader.service; |
2 | 2 | |
3 | +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | |
4 | +import com.baomidou.mybatisplus.core.toolkit.Wrappers; | |
5 | +import com.huaheng.common.utils.security.ShiroUtils; | |
6 | +import com.huaheng.framework.web.domain.AjaxResult; | |
7 | +import com.huaheng.pc.config.location.domain.Location; | |
8 | +import com.huaheng.pc.config.location.service.LocationService; | |
9 | +import com.huaheng.pc.inventory.inventoryDetail.domain.InventoryDetail; | |
10 | +import com.huaheng.pc.inventory.inventoryDetail.service.InventoryDetailService; | |
11 | +import com.huaheng.pc.shipment.shipmentContainerDetail.domain.ShipmentContainerDetail; | |
12 | +import com.huaheng.pc.shipment.shipmentContainerDetail.service.ShipmentContainerDetailService; | |
13 | +import com.huaheng.pc.shipment.shipmentContainerHeader.domain.ShipmentContainerHeader; | |
14 | +import com.huaheng.pc.shipment.shipmentContainerHeader.service.ShipmentContainerHeaderService; | |
15 | +import com.huaheng.pc.task.taskDetail.domain.TaskDetail; | |
16 | +import com.huaheng.pc.task.taskDetail.service.TaskDetailService; | |
17 | +import com.huaheng.pc.task.taskHeader.domain.ShipmentTaskCreateModel; | |
18 | +import org.springframework.beans.factory.annotation.Autowired; | |
3 | 19 | import org.springframework.stereotype.Service; |
4 | -import javax.annotation.Resource; | |
20 | +import java.math.BigDecimal; | |
21 | +import java.util.Date; | |
5 | 22 | import java.util.List; |
6 | 23 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
7 | 24 | import com.huaheng.pc.task.taskHeader.domain.TaskHeader; |
8 | 25 | import com.huaheng.pc.task.taskHeader.mapper.TaskHeaderMapper; |
9 | 26 | import com.huaheng.pc.task.taskHeader.service.TaskHeaderService; |
27 | +import org.springframework.transaction.annotation.Transactional; | |
28 | + | |
10 | 29 | @Service |
11 | 30 | public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHeader> implements TaskHeaderService{ |
12 | 31 | |
32 | + @Autowired | |
33 | + private ShipmentContainerHeaderService shipmentContainerHeaderService; | |
34 | + @Autowired | |
35 | + private ShipmentContainerDetailService shipmentContainerDetailService; | |
36 | + @Autowired | |
37 | + private LocationService locationService; | |
38 | + @Autowired | |
39 | + private InventoryDetailService inventoryDetailService; | |
40 | + @Autowired | |
41 | + private TaskDetailService taskDetailService; | |
42 | + | |
43 | + /** | |
44 | + * 生成出库任务 | |
45 | + * @param shipmentTaskCreateModel | |
46 | + * @return | |
47 | + */ | |
48 | + @Override | |
49 | + @Transactional | |
50 | + public AjaxResult createTaskFromShipmentContainers(ShipmentTaskCreateModel shipmentTaskCreateModel) { | |
51 | + Integer shipmentContainerHeaderId = shipmentTaskCreateModel.getShipmentContainerHeaderIds(); | |
52 | + //获取表头 | |
53 | + ShipmentContainerHeader shipmentContainerHeader = shipmentContainerHeaderService.getById(shipmentContainerHeaderId); | |
54 | + if(shipmentContainerHeader == null){ | |
55 | + return AjaxResult.error("出库货箱" + shipmentContainerHeaderId + "未找到,操作中止"); | |
56 | + } | |
57 | + if(shipmentContainerHeader.getStatus() > 9){ | |
58 | + return AjaxResult.error("出库货箱" + shipmentContainerHeader.getContainerCode() + "已经生成任务,请不要重复生成,操作中止"); | |
59 | + } | |
60 | + //获取所有子货箱 | |
61 | + LambdaQueryWrapper<ShipmentContainerDetail> lambdaQueryWrapper= Wrappers.lambdaQuery(); | |
62 | + lambdaQueryWrapper.eq(ShipmentContainerDetail::getShippingContainerId,shipmentContainerHeader.getId()); | |
63 | + List<ShipmentContainerDetail> shipmentContainerDetails = shipmentContainerDetailService.list(lambdaQueryWrapper); | |
64 | + if(shipmentContainerDetails==null||shipmentContainerDetails.size()==0){ | |
65 | + return AjaxResult.error("货箱" + shipmentContainerHeader.getContainerCode() + "没有子任务,操作中止"); | |
66 | + } | |
67 | + //检测库位 | |
68 | + LambdaQueryWrapper<Location> locationLambdaQueryWrapper=Wrappers.lambdaQuery(); | |
69 | + locationLambdaQueryWrapper.eq(Location::getCode,shipmentContainerHeader.getLocationCode()) | |
70 | + .eq(Location::getWarehouseCode,ShiroUtils.getWarehouseCode()) | |
71 | + .eq(Location::getDeleted,false); | |
72 | + Location location = locationService.getOne(locationLambdaQueryWrapper); | |
73 | + if (location == null) { | |
74 | + return AjaxResult.error("库位禁用或不存在!"); | |
75 | + } | |
76 | + //创建任务头 | |
77 | + TaskHeader task = new TaskHeader(); | |
78 | + //分拣出库 | |
79 | + task.setTaskType(400); | |
80 | + task.setLocationCode(shipmentContainerHeader.getLocationCode()); | |
81 | + //判断是否整出任务,钱柜和AGV不能整出 | |
82 | + if(shipmentContainerHeader.getStatus().intValue() == 300){ | |
83 | + //表示整出优先 | |
84 | + //判断当前子货箱所有数量是否等于该托盘对应的所有库存的数量, | |
85 | + //这里必须与库存的在库数量对比,后期可能存在一个配盘在执行任务,后一个配盘又在配这个的情况(这个时候不能整出) | |
86 | + // 如果相等,则说明这个货箱包含了所有的数量,则可以整出,否则,创建拣选任务; | |
87 | + //查询所有库存 | |
88 | + InventoryDetail inventoryCondition = new InventoryDetail(); | |
89 | + LambdaQueryWrapper<InventoryDetail> inventoryDetailLambdaQueryWrapper=Wrappers.lambdaQuery(); | |
90 | + inventoryDetailLambdaQueryWrapper.eq(InventoryDetail::getLocationCode,shipmentContainerHeader.getLocationCode()) | |
91 | + .eq(InventoryDetail::getWarehouseCode,ShiroUtils.getWarehouseCode()); | |
92 | + List<InventoryDetail> inventories = inventoryDetailService.list(inventoryDetailLambdaQueryWrapper); | |
93 | + BigDecimal inventoryTotal=new BigDecimal("0"); | |
94 | + for(InventoryDetail item : inventories){ | |
95 | + inventoryTotal = inventoryTotal.add(item.getQty()); | |
96 | + } | |
97 | + BigDecimal containerTotal = new BigDecimal("0"); | |
98 | + for(ShipmentContainerDetail item: shipmentContainerDetails){ | |
99 | + containerTotal = containerTotal.add(item.getQty()); | |
100 | + } | |
101 | + if(inventoryTotal.compareTo(containerTotal) == 0){ | |
102 | + task.setTaskType(300);//整盘出库 | |
103 | + task.setLocationCode(""); | |
104 | + } | |
105 | + } | |
106 | + task.setWarehouseCode(shipmentContainerHeader.getWarehouseCode()); | |
107 | + task.setCompanyCode(shipmentContainerHeader.getCompanyCode()); | |
108 | + task.setInternalTaskType(""); | |
109 | + task.setAssignedUser(ShiroUtils.getLoginName()); | |
110 | + task.setConfirmedBy(ShiroUtils.getLoginName()); | |
111 | + task.setStatus(1); | |
112 | + task.setContainerCode(shipmentContainerHeader.getContainerCode()); | |
113 | + task.setCreatedBy(ShiroUtils.getLoginName()); | |
114 | + task.setCreated(new Date()); | |
115 | + task.setLastUpdatedBy(ShiroUtils.getLoginName()); | |
116 | + task.setLastUpdated(null); | |
117 | + this.save(task); | |
118 | + //遍历子货箱创建子任务 | |
119 | + for(ShipmentContainerDetail shipmentContainerDetail : shipmentContainerDetails){ | |
120 | + TaskDetail taskDetail = new TaskDetail(); | |
121 | + taskDetail.setTaskId(task.getId()); | |
122 | + taskDetail.setWarehouseCode(task.getWarehouseCode()); | |
123 | + taskDetail.setCompanyCode(task.getCompanyCode()); | |
124 | + taskDetail.setTaskType("s"); | |
125 | + taskDetail.setBillCode(shipmentContainerDetail.getShipmentCode()); | |
126 | + taskDetail.setBillId(shipmentContainerDetail.getShipmentId()); | |
127 | + taskDetail.setBillDetailId(shipmentContainerDetail.getShipmentDetailId()); | |
128 | + taskDetail.setMaterialCode(shipmentContainerDetail.getMaterialCode()); | |
129 | + taskDetail.setMaterialName(shipmentContainerDetail.getMaterialName()); | |
130 | + taskDetail.setFromInventoryId(shipmentContainerDetail.getInventoryId()); | |
131 | + taskDetail.setQty(shipmentContainerDetail.getQty()); | |
132 | + taskDetail.setContainerCode(task.getContainerCode()); | |
133 | + taskDetail.setFromLocation(task.getLocationCode()); | |
134 | + taskDetail.setToLocation(task.getLocationCode()); | |
135 | + taskDetail.setStatus(1); | |
136 | + taskDetail.setTaskType("s"); | |
137 | + taskDetail.setLastUpdatedBy(ShiroUtils.getLoginName()); | |
138 | + taskDetail.setLastUpdated(null); | |
139 | + taskDetailService.save(taskDetail); | |
140 | + } | |
141 | + //更新货位状态 | |
142 | + ShipmentContainerHeader record = new ShipmentContainerHeader(); | |
143 | + record.setId(shipmentContainerHeaderId); | |
144 | + record.setStatus(10); | |
145 | + record.setStatus(task.getTaskType());//实际出库类型 | |
146 | + shipmentContainerHeaderService.saveOrUpdate(record); | |
147 | + return AjaxResult.success(task.getId()); | |
148 | + | |
149 | + } | |
13 | 150 | } |
... | ... |
src/main/resources/mybatis/config/AlarmLevelMapper.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | +<mapper namespace="com.huaheng.pc.config.alarmLevel.mapper.AlarmLevelMapper"> | |
4 | + <resultMap id="BaseResultMap" type="com.huaheng.pc.config.alarmLevel.domain.AlarmLevel"> | |
5 | + <!--@mbg.generated--> | |
6 | + <id column="id" jdbcType="INTEGER" property="id" /> | |
7 | + <result column="type" jdbcType="INTEGER" property="type" /> | |
8 | + <result column="level" jdbcType="INTEGER" property="level" /> | |
9 | + <result column="timeThreshold" jdbcType="INTEGER" property="timeThreshold" /> | |
10 | + <result column="created" jdbcType="TIMESTAMP" property="created" /> | |
11 | + <result column="createdBy" jdbcType="VARCHAR" property="createdBy" /> | |
12 | + <result column="lastUpdate" jdbcType="TIMESTAMP" property="lastUpdate" /> | |
13 | + <result column="lastUpdateBy" jdbcType="VARCHAR" property="lastUpdateBy" /> | |
14 | + <result column="enable" jdbcType="BIT" property="enable" /> | |
15 | + <result column="userDef1" jdbcType="VARCHAR" property="userDef1" /> | |
16 | + </resultMap> | |
17 | + <sql id="Base_Column_List"> | |
18 | + <!--@mbg.generated--> | |
19 | + id, `type`, `level`, timeThreshold, created, createdBy, lastUpdate, lastUpdateBy, | |
20 | + `enable`, userDef1 | |
21 | + </sql> | |
22 | +</mapper> | |
0 | 23 | \ No newline at end of file |
... | ... |
src/main/resources/mybatis/general/BomDetailMapper.xml renamed to src/main/resources/mybatis/config/BomDetailMapper.xml
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
3 | -<mapper namespace="com.huaheng.pc.general.bom.mapper.BomDetailMapper"> | |
4 | - <resultMap id="BaseResultMap" type="com.huaheng.pc.general.bom.domain.BomDetail"> | |
3 | +<mapper namespace="com.huaheng.pc.config.bom.mapper.BomDetailMapper"> | |
4 | + <resultMap id="BaseResultMap" type="com.huaheng.pc.config.bom.domain.BomDetail"> | |
5 | 5 | <!--@mbg.generated--> |
6 | 6 | <id column="id" jdbcType="INTEGER" property="id" /> |
7 | 7 | <result column="warehouseCode" jdbcType="VARCHAR" property="warehouseCode" /> |
... | ... |
src/main/resources/mybatis/general/BomHeaderMapper.xml renamed to src/main/resources/mybatis/config/BomHeaderMapper.xml
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
3 | -<mapper namespace="com.huaheng.pc.general.bom.mapper.BomHeaderMapper"> | |
4 | - <resultMap id="BaseResultMap" type="com.huaheng.pc.general.bom.domain.BomHeader"> | |
3 | +<mapper namespace="com.huaheng.pc.config.bom.mapper.BomHeaderMapper"> | |
4 | + <resultMap id="BaseResultMap" type="com.huaheng.pc.config.bom.domain.BomHeader"> | |
5 | 5 | <!--@mbg.generated--> |
6 | 6 | <id column="id" jdbcType="INTEGER" property="id" /> |
7 | 7 | <result column="companyCode" jdbcType="VARCHAR" property="companyCode" /> |
... | ... |
src/main/resources/mybatis/general/CarrierMapper.xml renamed to src/main/resources/mybatis/config/CarrierMapper.xml
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
3 | -<mapper namespace="com.huaheng.pc.general.carrier.mapper.CarrierMapper"> | |
4 | - <resultMap id="BaseResultMap" type="com.huaheng.pc.general.carrier.domain.Carrier"> | |
3 | +<mapper namespace="com.huaheng.pc.config.carrier.mapper.CarrierMapper"> | |
4 | + <resultMap id="BaseResultMap" type="com.huaheng.pc.config.carrier.domain.Carrier"> | |
5 | 5 | <!--@mbg.generated--> |
6 | 6 | <id column="id" jdbcType="INTEGER" property="id" /> |
7 | 7 | <result column="code" jdbcType="VARCHAR" property="code" /> |
... | ... |
src/main/resources/mybatis/general/CompanyMapper.xml renamed to src/main/resources/mybatis/config/CompanyMapper.xml
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
3 | -<mapper namespace="com.huaheng.pc.general.company.mapper.CompanyMapper"> | |
4 | - <resultMap id="BaseResultMap" type="com.huaheng.pc.general.company.domain.Company"> | |
3 | +<mapper namespace="com.huaheng.pc.config.company.mapper.CompanyMapper"> | |
4 | + <resultMap id="BaseResultMap" type="com.huaheng.pc.config.company.domain.Company"> | |
5 | 5 | <!--@mbg.generated--> |
6 | 6 | <id column="id" jdbcType="INTEGER" property="id" /> |
7 | 7 | <result column="code" jdbcType="VARCHAR" property="code" /> |
... | ... | @@ -47,13 +47,13 @@ |
47 | 47 | processStamp |
48 | 48 | </sql> |
49 | 49 | |
50 | - <select id="selectCompanyByUserId" resultType="com.huaheng.pc.general.company.domain.Company"> | |
50 | + <select id="selectCompanyByUserId" resultType="com.huaheng.pc.config.company.domain.Company"> | |
51 | 51 | SELECT c.id, c.name, c.code |
52 | 52 | FROM sys_user_company suc |
53 | 53 | INNER JOIN company c ON suc.companyId = c.id AND suc.userId = #{userId} |
54 | 54 | INNER JOIN warehouse_company wc ON wc.companyId=c.id AND wc.warehouseCode = #{warehouseCode} |
55 | 55 | </select> |
56 | - <select id="selectByWarehouseCode" resultType="com.huaheng.pc.general.company.domain.Company"> | |
56 | + <select id="selectByWarehouseCode" resultType="com.huaheng.pc.config.company.domain.Company"> | |
57 | 57 | select company.id from company INNER JOIN warehouse_company ON company.id = warehouse_company.companyId |
58 | 58 | where company.warehouseCode = #{warehouseCode} |
59 | 59 | </select> |
... | ... |
src/main/resources/mybatis/general/ContainerMapper.xml renamed to src/main/resources/mybatis/config/ContainerMapper.xml
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
3 | -<mapper namespace="com.huaheng.pc.general.container.mapper.ContainerMapper"> | |
4 | - <resultMap id="BaseResultMap" type="com.huaheng.pc.general.container.domain.Container"> | |
3 | +<mapper namespace="com.huaheng.pc.config.container.mapper.ContainerMapper"> | |
4 | + <resultMap id="BaseResultMap" type="com.huaheng.pc.config.container.domain.Container"> | |
5 | 5 | <!--@mbg.generated--> |
6 | 6 | <id column="id" jdbcType="INTEGER" property="id" /> |
7 | 7 | <result column="name" jdbcType="VARCHAR" property="name" /> |
... | ... |
src/main/resources/mybatis/general/CustomerMapper.xml renamed to src/main/resources/mybatis/config/CustomerMapper.xml
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
3 | -<mapper namespace="com.huaheng.pc.general.customer.mapper.CustomerMapper"> | |
4 | - <resultMap id="BaseResultMap" type="com.huaheng.pc.general.customer.domain.Customer"> | |
3 | +<mapper namespace="com.huaheng.pc.config.customer.mapper.CustomerMapper"> | |
4 | + <resultMap id="BaseResultMap" type="com.huaheng.pc.config.customer.domain.Customer"> | |
5 | 5 | <!--@mbg.generated--> |
6 | 6 | <id column="id" jdbcType="INTEGER" property="id" /> |
7 | 7 | <result column="code" jdbcType="VARCHAR" property="code" /> |
... | ... |
src/main/resources/mybatis/general/LocationMapper.xml renamed to src/main/resources/mybatis/config/LocationMapper.xml
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
3 | -<mapper namespace="com.huaheng.pc.general.location.mapper.LocationMapper"> | |
4 | - <resultMap id="BaseResultMap" type="com.huaheng.pc.general.location.domain.Location"> | |
3 | +<mapper namespace="com.huaheng.pc.config.location.mapper.LocationMapper"> | |
4 | + <resultMap id="BaseResultMap" type="com.huaheng.pc.config.location.domain.Location"> | |
5 | 5 | <!--@mbg.generated--> |
6 | 6 | <id column="id" jdbcType="INTEGER" property="id" /> |
7 | 7 | <result column="code" jdbcType="VARCHAR" property="code" /> |
... | ... |
src/main/resources/mybatis/general/MaterialMapper.xml renamed to src/main/resources/mybatis/config/MaterialMapper.xml
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
3 | -<mapper namespace="com.huaheng.pc.general.material.mapper.MaterialMapper"> | |
4 | - <resultMap id="BaseResultMap" type="com.huaheng.pc.general.material.domain.Material"> | |
3 | +<mapper namespace="com.huaheng.pc.config.material.mapper.MaterialMapper"> | |
4 | + <resultMap id="BaseResultMap" type="com.huaheng.pc.config.material.domain.Material"> | |
5 | 5 | <!--@mbg.generated--> |
6 | 6 | <id column="id" jdbcType="INTEGER" property="id" /> |
7 | 7 | <result column="code" jdbcType="VARCHAR" property="code" /> |
... | ... |