Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8e10861c
authored
Jul 31, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
1 parent
0850b8f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessLayerServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessLayerServiceImpl.java
View file @
8e10861
...
@@ -12,7 +12,6 @@ import com.dituhui.pea.order.dto.BusinessCustomLayerRespDTO;
...
@@ -12,7 +12,6 @@ import com.dituhui.pea.order.dto.BusinessCustomLayerRespDTO;
import
com.dituhui.pea.order.dto.BusinessCustomLayersRespDTO
;
import
com.dituhui.pea.order.dto.BusinessCustomLayersRespDTO
;
import
com.dituhui.pea.order.entity.*
;
import
com.dituhui.pea.order.entity.*
;
import
com.dituhui.pea.order.feign.ISaaSRemoteService
;
import
com.dituhui.pea.order.feign.ISaaSRemoteService
;
import
com.dituhui.pea.order.feign.dto.LayerDTO
;
import
com.dituhui.pea.order.service.BusinessLayerService
;
import
com.dituhui.pea.order.service.BusinessLayerService
;
import
com.dituhui.pea.order.utils.TypeUtils
;
import
com.dituhui.pea.order.utils.TypeUtils
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -142,6 +141,11 @@ public class BusinessLayerServiceImpl implements BusinessLayerService {
...
@@ -142,6 +141,11 @@ public class BusinessLayerServiceImpl implements BusinessLayerService {
@Override
@Override
public
Result
<?>
businessCustomLayerAdd
(
String
branchId
,
String
layerName
,
String
layerDesc
,
List
<
String
>
skillCodes
)
{
public
Result
<?>
businessCustomLayerAdd
(
String
branchId
,
String
layerName
,
String
layerDesc
,
List
<
String
>
skillCodes
)
{
if
(
orgBranchMPDao
.
getByBranchId
(
branchId
)
==
null
)
{
throw
new
BusinessException
(
"分部参数错误,请联系管理员/研发"
);
}
/*
// 同步创建saas图层,返回layerId
// 同步创建saas图层,返回layerId
String result = saasRemoteService.addLayer(ak, layerName, 1, 1);
String result = saasRemoteService.addLayer(ak, layerName, 1, 1);
log.info("addLayer params:{} result:{}", layerName, result);
log.info("addLayer params:{} result:{}", layerName, result);
...
@@ -149,7 +153,11 @@ public class BusinessLayerServiceImpl implements BusinessLayerService {
...
@@ -149,7 +153,11 @@ public class BusinessLayerServiceImpl implements BusinessLayerService {
if (!ResultEnum.SUCCESS.getCode().equals(saasResult.getCode())) {
if (!ResultEnum.SUCCESS.getCode().equals(saasResult.getCode())) {
return Result.failure(saasResult.getMessage());
return Result.failure(saasResult.getMessage());
}
}
String
layerId
=
saasResult
.
getResult
().
getId
();
// 存入pea
*/
// TODO 临时生成,正式使用^
//String layerId = saasResult.getResult().getId();// 存入pea
String
layerId
=
UUID
.
randomUUID
().
toString
().
replace
(
"-"
,
""
);
// 入库保存
// 入库保存
MapLayerCustomize
m
=
new
MapLayerCustomize
();
MapLayerCustomize
m
=
new
MapLayerCustomize
();
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment