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 e55d5fa6
authored
Jul 26, 2023
by
王力
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_bussiness_layer0726' into 'develop'
Dev bussiness layer0726 See merge request !281
2 parents
d4588167
8422abf0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
project-order/src/main/java/com/dituhui/pea/order/dao/MapBlockInfoMPDao.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/dao/MapBlockInfoMPDao.java
View file @
e55d5fa
...
@@ -3,7 +3,11 @@ package com.dituhui.pea.order.dao;
...
@@ -3,7 +3,11 @@ package com.dituhui.pea.order.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.dituhui.pea.order.entity.MapBlockInfo
;
import
com.dituhui.pea.order.entity.MapBlockInfo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Select
;
@Mapper
@Mapper
public
interface
MapBlockInfoMPDao
extends
BaseMapper
<
MapBlockInfo
>
{
public
interface
MapBlockInfoMPDao
extends
BaseMapper
<
MapBlockInfo
>
{
@Select
(
"select * from map_block_info where block_id=#{blockId}"
)
MapBlockInfo
getByBlockId
(
String
blockId
);
}
}
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessBlockServiceImpl.java
View file @
e55d5fa
...
@@ -2,6 +2,7 @@ package com.dituhui.pea.order.service.impl;
...
@@ -2,6 +2,7 @@ package com.dituhui.pea.order.service.impl;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.dituhui.pea.common.BusinessException
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.order.common.ListUtils
;
import
com.dituhui.pea.order.common.ListUtils
;
import
com.dituhui.pea.order.common.TimeUtils
;
import
com.dituhui.pea.order.common.TimeUtils
;
...
@@ -112,12 +113,25 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
...
@@ -112,12 +113,25 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
}
}
@Override
@Override
public
Result
<?>
businessServiceBlockDelete
(
String
blockId
)
{
public
Result
<?>
businessServiceBlockDelete
(
String
blockId
)
throws
BusinessException
{
return
null
;
MapBlockInfo
block
=
mapBlockInfoMPDao
.
getByBlockId
(
blockId
);
if
(
block
==
null
)
{
throw
new
BusinessException
(
"区块不存在"
);
}
block
.
setStatus
(
0
);
mapBlockInfoMPDao
.
updateById
(
block
);
return
Result
.
success
(
null
);
}
}
@Override
@Override
public
Result
<?>
saasBaseDataLayerUrl
(
String
blockId
)
{
public
Result
<?>
saasBaseDataLayerUrl
(
String
blockId
)
throws
BusinessException
{
return
null
;
MapBlockInfo
block
=
mapBlockInfoMPDao
.
getByBlockId
(
blockId
);
if
(
block
==
null
)
{
throw
new
BusinessException
(
"区块不存在"
);
}
// 跳转规则: TODO
HashMap
<
String
,
String
>
res
=
new
HashMap
<>();
res
.
put
(
"url"
,
"https://pea-test.bshg.com.cn/mlAutoLogin?userAccount=WVyjhzcOeIUc5rl74hdaqw==&password=qjOHxpQPXLnJP+Jq1CZGBQ==&jump=basedata&navHidden=true"
);
return
Result
.
success
(
res
);
}
}
}
}
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