Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
d286341b
Commit
d286341b
authored
Aug 19, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改用户登录,权限分配等
parent
1ac6ae4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
...a/com/mortals/xhx/module/device/web/DeviceController.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/module/product/web/ProductController.java
...com/mortals/xhx/module/product/web/ProductController.java
+9
-1
No files found.
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceController.java
View file @
d286341b
...
@@ -112,7 +112,7 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
...
@@ -112,7 +112,7 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
Rest
<
RespData
<
List
<
SkinBasePdu
>>>
resp
=
skinBaseFeign
.
list
(
new
SkinBasePdu
());
Rest
<
RespData
<
List
<
SkinBasePdu
>>>
resp
=
skinBaseFeign
.
list
(
new
SkinBasePdu
());
log
.
info
(
"skinBaseFeignResp:{}"
,
JSON
.
toJSONString
(
resp
));
log
.
info
(
"skinBaseFeignResp:{}"
,
JSON
.
toJSONString
(
resp
));
if
(
resp
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
if
(
resp
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
Map
<
String
,
Map
<
String
,
String
>>
skinProductCodeMap
=
resp
.
getData
().
getData
().
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getProductCode
(),
Collectors
.
toMap
(
a
->
a
.
getImageResolution
()==
null
?
""
:
a
.
getImageResolution
(),
b
->
b
.
getImageResolutionValue
(),(
o
,
n
)->
n
)));
Map
<
String
,
Map
<
String
,
String
>>
skinProductCodeMap
=
resp
.
getData
().
getData
().
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getProductCode
(),
Collectors
.
toMap
(
a
->
a
.
getImageResolution
()==
null
?
""
:
a
.
getImageResolution
(),
b
->
b
.
getImageResolutionValue
()
==
null
?
""
:
b
.
getImageResolutionValue
()
,(
o
,
n
)->
n
)));
this
.
addDict
(
model
,
"skinProductCodeMap"
,
skinProductCodeMap
);
this
.
addDict
(
model
,
"skinProductCodeMap"
,
skinProductCodeMap
);
}
}
super
.
init
(
model
,
context
);
super
.
init
(
model
,
context
);
...
...
device-manager/src/main/java/com/mortals/xhx/module/product/web/ProductController.java
View file @
d286341b
package
com.mortals.xhx.module.product.web
;
package
com.mortals.xhx.module.product.web
;
import
cn.hutool.core.util.IdUtil
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.Context
;
...
@@ -45,7 +46,7 @@ public class ProductController extends BaseCRUDJsonBodyMappingController<Product
...
@@ -45,7 +46,7 @@ public class ProductController extends BaseCRUDJsonBodyMappingController<Product
//获取所有产品皮肤 分组显示
//获取所有产品皮肤 分组显示
Rest
<
RespData
<
List
<
SkinBasePdu
>>>
resp
=
skinBaseFeign
.
list
(
new
SkinBasePdu
());
Rest
<
RespData
<
List
<
SkinBasePdu
>>>
resp
=
skinBaseFeign
.
list
(
new
SkinBasePdu
());
if
(
resp
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
if
(
resp
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
Map
<
String
,
Map
<
String
,
String
>>
skinProductCodeMap
=
resp
.
getData
().
getData
().
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getProductCode
(),
Collectors
.
toMap
(
a
->
a
.
getImageResolution
()==
null
?
""
:
a
.
getImageResolution
(),
b
->
b
.
getImageResolutionValue
(),(
o
,
n
)->
n
)));
Map
<
String
,
Map
<
String
,
String
>>
skinProductCodeMap
=
resp
.
getData
().
getData
().
stream
().
collect
(
Collectors
.
groupingBy
(
x
->
x
.
getProductCode
(),
Collectors
.
toMap
(
a
->
a
.
getImageResolution
()==
null
?
""
:
a
.
getImageResolution
(),
b
->
b
.
getImageResolutionValue
()
==
null
?
""
:
b
.
getImageResolutionValue
()
,(
o
,
n
)->
n
)));
this
.
addDict
(
model
,
"skinProductCodeMap"
,
skinProductCodeMap
);
this
.
addDict
(
model
,
"skinProductCodeMap"
,
skinProductCodeMap
);
}
}
...
@@ -55,4 +56,11 @@ public class ProductController extends BaseCRUDJsonBodyMappingController<Product
...
@@ -55,4 +56,11 @@ public class ProductController extends BaseCRUDJsonBodyMappingController<Product
}
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
IdUtil
.
objectId
());
System
.
out
.
println
(
IdUtil
.
fastSimpleUUID
());
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment