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 07fe2ea0
authored
Jul 26, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善注释
1 parent
8b882547
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
12 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/BusinessBlockController.java
project-order/src/main/java/com/dituhui/pea/order/controller/BusinessBlockController.java
View file @
07fe2ea
package
com
.
dituhui
.
pea
.
order
.
controller
;
import
com.dituhui.pea.common.BusinessException
;
import
com.dituhui.pea.common.Result
;
import
com.dituhui.pea.order.service.BusinessBlockService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.*
;
@Controller
@RequestMapping
(
"/pea-order"
)
public
class
BusinessBlockController
{
@Autowired
private
BusinessBlockService
businessBlockService
;
/**
* 获取服务区块列表
*
* @param levelType 组织层级类型
* @param levelValue 组织层级值
* @param page 分页-页数
* @param size 分页-页大小
* @param layerId 图层ID(筛选项)
* @param teamId 小队ID(筛选项)
* @return
*/
@GetMapping
(
"/business/service/block/list"
)
public
Result
<?>
businessSeverBlocks
()
{
// 服务范围列表
return
null
;
public
Result
<?>
businessSeverBlocks
(
@RequestParam
String
levelType
,
@RequestParam
String
levelValue
,
@RequestParam
int
page
,
@RequestParam
int
size
,
@RequestParam
(
required
=
false
)
String
layerId
,
@RequestParam
(
required
=
false
)
String
teamId
)
{
Result
<?>
res
=
null
;
try
{
res
=
businessBlockService
.
businessServerBlocks
(
levelType
,
levelValue
,
page
,
size
,
layerId
,
teamId
);
}
catch
(
BusinessException
e
){
return
Result
.
failed
(
e
.
getMessage
());
}
return
res
;
}
/**
* 新增服务区块
*
* @param layerId 图层ID
* @param teamId 小队ID
* @return
*/
@PostMapping
(
"/business/service/block/add"
)
public
Result
<?>
businessServiceBlockAdd
()
{
public
Result
<?>
businessServiceBlockAdd
(
@RequestParam
String
layerId
,
@RequestParam
String
teamId
)
{
// 新增服务范围
return
null
;
Result
<?>
res
=
null
;
try
{
res
=
businessBlockService
.
businessServiceBlockAdd
(
layerId
,
teamId
);
}
catch
(
BusinessException
e
){
return
Result
.
failed
(
e
.
getMessage
());
}
return
res
;
}
/**
* 新增服务区块
*
* @param id 服务区块ID
* @return
*/
@PostMapping
(
"/business/service/block/delete"
)
public
Result
<?>
businessServiceBlockDelete
()
{
public
Result
<?>
businessServiceBlockDelete
(
@RequestParam
String
id
)
{
// 删除服务范围
return
null
;
Result
<?>
res
=
null
;
try
{
res
=
businessBlockService
.
businessServiceBlockDelete
(
id
);
}
catch
(
BusinessException
e
){
return
Result
.
failed
(
e
.
getMessage
());
}
return
res
;
}
/**
* 获取跳转saas绘制服务返回的url
*
* @param id 服务区块ID
* @return
*/
@GetMapping
(
"/saas/baseData/layer/getUrl"
)
public
Result
<?>
saasBaseDataLayerUrl
()
{
return
null
;
public
Result
<?>
saasBaseDataLayerUrl
(
@RequestParam
String
id
)
{
Result
<?>
res
=
null
;
try
{
res
=
businessBlockService
.
saasBaseDataLayerUrl
(
id
);
}
catch
(
BusinessException
e
){
return
Result
.
failed
(
e
.
getMessage
());
}
return
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