Commit 53ce39f3 authored by 赵啸非's avatar 赵啸非

修改用户登录,权限分配等

parent 9b45e7bd
package com.mortals.xhx.base.system.message.impl;
import cn.hutool.core.exceptions.ExceptionUtil;
import cn.hutool.core.util.IdUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
......@@ -179,4 +180,21 @@ public class MessageServiceImpl implements MessageService {
sendTaskThreadPool.execute(sendTask);
}
public static void main(String[] args) {
try {
Integer a = 1;
Integer b = 0;
int i = a / b;
} catch (Exception e) {
String stacktrace = ExceptionUtil.stacktraceToString(e.fillInStackTrace());
System.out.println(stacktrace);
}
}
}
\ No newline at end of file
......@@ -110,6 +110,7 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
//返回产品列表及其样式
//productService.find(new ProductEntity()).stream().collect(Collectors.toMap(x -> x.getId().toString(), y -> y.getProductName())).
Rest<RespData<List<SkinBasePdu>>> resp = skinBaseFeign.list(new SkinBasePdu());
log.info("skinBaseFeignResp:{}",JSON.toJSONString(resp));
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(), b -> b.getImageResolutionValue(),(o,n)->n)));
this.addDict(model, "skinProductCodeMap", skinProductCodeMap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment