|
|
@ -9,10 +9,14 @@ |
|
|
|
package com.digiwin.athena.app.provider.impl; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
|
|
|
import com.digiwin.app.service.DWServiceContext; |
|
|
|
import com.digiwin.athena.app.infra.entity.LayoutConfig; |
|
|
|
import com.digiwin.athena.app.infra.service.LayoutConfigService; |
|
|
|
import com.digiwin.athena.app.provider.BasicApiService; |
|
|
|
import com.digiwin.athena.app.service.basic.LoginService; |
|
|
|
import com.digiwin.athena.opt.common.eai.service.EAIServiceContext; |
|
|
|
import org.apache.commons.lang.StringUtils; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.util.HashMap; |
|
|
@ -32,6 +36,9 @@ public class BasicApiServiceImpl implements BasicApiService { |
|
|
|
@Resource |
|
|
|
LoginService loginService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
LayoutConfigService layoutConfigService; |
|
|
|
|
|
|
|
@Override |
|
|
|
public String helloWord(String name) throws Exception { |
|
|
|
return "hello ," + name; |
|
|
@ -63,4 +70,21 @@ public class BasicApiServiceImpl implements BasicApiService { |
|
|
|
return "ok"; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Object layoutConfig(LayoutConfig layoutConfig) throws Exception { |
|
|
|
return layoutConfigService.saveOrUpdate(layoutConfig); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Object layoutConfig(String userId, String tenantId, String sysId) throws Exception { |
|
|
|
|
|
|
|
LambdaQueryChainWrapper<LayoutConfig> lambdaQuery = layoutConfigService.lambdaQuery(); |
|
|
|
lambdaQuery.eq(LayoutConfig::getUserId, userId); |
|
|
|
lambdaQuery.eq(LayoutConfig::getTenantId, tenantId); |
|
|
|
if (StringUtils.isNotBlank(sysId)) { |
|
|
|
lambdaQuery.eq(LayoutConfig::getSysId, sysId); |
|
|
|
} |
|
|
|
return lambdaQuery.list(); |
|
|
|
} |
|
|
|
|
|
|
|
} |