Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
8eaa3406
Commit
8eaa3406
authored
Oct 31, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加根据套餐id查房间id集合
parent
f0f22a27
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
RoomPackController.java
.../java/share/web/controller/system/RoomPackController.java
+10
-0
IRoomPackService.java
.../src/main/java/share/system/service/IRoomPackService.java
+2
-0
RoomPackServiceImpl.java
...n/java/share/system/service/impl/RoomPackServiceImpl.java
+8
-0
No files found.
share-admin/src/main/java/share/web/controller/system/RoomPackController.java
View file @
8eaa3406
...
...
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.domain.R
;
import
share.common.enums.BusinessType
;
import
share.system.domain.SRoomPack
;
import
share.system.service.IRoomPackService
;
...
...
@@ -95,4 +96,13 @@ public class RoomPackController extends BaseController {
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
roomPackService
.
deleteRoomPackByIds
(
ids
));
}
/**
* 获取包房套餐关系详细信息
*/
@PreAuthorize
(
"@ss.hasPermi('system:pack:query')"
)
@GetMapping
(
value
=
"/getPackId/{id}"
)
public
R
<
List
<
SRoomPack
>>
getPackId
(
@PathVariable
(
"id"
)
Long
id
)
{
return
R
.
ok
(
roomPackService
.
selectRoomPackByPackId
(
id
));
}
}
share-system/src/main/java/share/system/service/IRoomPackService.java
View file @
8eaa3406
...
...
@@ -63,4 +63,6 @@ public interface IRoomPackService extends IService<SRoomPack> {
List
<
Long
>
selectPackListByRoomId
(
Long
id
);
int
deleteRoomPackByRoomId
(
Long
id
);
List
<
SRoomPack
>
selectRoomPackByPackId
(
Long
id
);
}
share-system/src/main/java/share/system/service/impl/RoomPackServiceImpl.java
View file @
8eaa3406
...
...
@@ -101,4 +101,12 @@ public class RoomPackServiceImpl extends ServiceImpl<RoomPackMapper, SRoomPack>
queryWrapper
.
eq
(
SRoomPack:
:
getRoomId
,
id
);
return
roomPackMapper
.
delete
(
queryWrapper
);
}
@Override
public
List
<
SRoomPack
>
selectRoomPackByPackId
(
Long
id
)
{
LambdaQueryWrapper
<
SRoomPack
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
SRoomPack:
:
getPackId
,
id
);
return
roomPackMapper
.
selectList
(
queryWrapper
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment