Commit 5a18eab2 authored by linruibiao's avatar linruibiao

接口编写

parent 8da001c9
......@@ -14,5 +14,5 @@ import javax.servlet.http.HttpServletRequest;
**/
public interface InstrumentPanelInitService extends IService<InstrumentPanel> {
String initOnePanel(String appId, HttpServletRequest request);
String initOnePanel(String appId,String token, HttpServletRequest request);
}
package com.syc.slm.slmbi.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.google.common.collect.Lists;
......@@ -65,10 +64,10 @@ public class InstrumentPanelInitServiceImpl extends ServiceImpl<InstrumentPanelM
@Override
@Transactional(rollbackFor = Exception.class)
public String initOnePanel(String appId, HttpServletRequest request) {
public String initOnePanel(String appId, String token,HttpServletRequest request) {
CurrentUser currentUser = new CurrentUser();
request.setAttribute(IdWorker.get32UUID(),SlmConstants.gson.toJson(currentUser));
request.setAttribute(token,SlmConstants.gson.toJson(currentUser));
LambdaQueryWrapper<InstrumentPanelGroup> groupWhere = new LambdaQueryWrapper<>();
groupWhere.eq(InstrumentPanelGroup::getName, initGroupName);
groupWhere.eq(BaseEntity::getRecordStatus, SlmConstants.DATA_VALID);
......
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