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
e74cc1db
Commit
e74cc1db
authored
Nov 02, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加房间修改套餐连接表
parent
88ee2160
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
PackController.java
...main/java/share/web/controller/system/PackController.java
+12
-1
IPackService.java
...stem/src/main/java/share/system/service/IPackService.java
+2
-0
PackServiceImpl.java
.../main/java/share/system/service/impl/PackServiceImpl.java
+10
-3
No files found.
share-admin/src/main/java/share/web/controller/system/PackController.java
View file @
e74cc1db
...
...
@@ -82,10 +82,11 @@ public class PackController extends BaseController {
@PreAuthorize
(
"@ss.hasPermi('system:pack:add')"
)
@Log
(
title
=
"套餐"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
SPack
SPack
)
{
public
AjaxResult
insert
(
@RequestBody
SPack
SPack
)
{
return
toAjax
(
packService
.
insertPack
(
SPack
));
}
/**
* 修改套餐
*/
...
...
@@ -105,4 +106,14 @@ public class PackController extends BaseController {
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
packService
.
deletePackByIds
(
ids
));
}
/**
* 新增套餐
*/
@PreAuthorize
(
"@ss.hasPermi('system:pack:add')"
)
@Log
(
title
=
"套餐"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
(
"/add"
)
public
R
<
Long
>
add
(
@RequestBody
SPack
SPack
)
{
return
R
.
ok
(
packService
.
addPack
(
SPack
));
}
}
share-system/src/main/java/share/system/service/IPackService.java
View file @
e74cc1db
...
...
@@ -61,4 +61,6 @@ public interface IPackService extends IService<SPack> {
public
int
deletePackById
(
Long
id
);
List
<
SPack
>
selectPackListByIds
(
List
<
Long
>
packIds
);
Long
addPack
(
SPack
sPack
);
}
share-system/src/main/java/share/system/service/impl/PackServiceImpl.java
View file @
e74cc1db
...
...
@@ -51,9 +51,9 @@ public class PackServiceImpl extends ServiceImpl<PackMapper, SPack> implements I
* @return 结果
*/
@Override
public
int
insertPack
(
SPack
S
Pack
)
{
S
Pack
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
packMapper
.
insertPack
(
S
Pack
);
public
int
insertPack
(
SPack
s
Pack
)
{
s
Pack
.
setCreateTime
(
DateUtils
.
getNowDate
());
return
packMapper
.
insertPack
(
s
Pack
);
}
/**
...
...
@@ -96,4 +96,11 @@ public class PackServiceImpl extends ServiceImpl<PackMapper, SPack> implements I
queryWrapper
.
in
(
SPack:
:
getId
,
packIds
);
return
packMapper
.
selectList
(
queryWrapper
);
}
@Override
public
Long
addPack
(
SPack
sPack
)
{
sPack
.
setCreateTime
(
DateUtils
.
getNowDate
());
packMapper
.
insertPack
(
sPack
);
return
sPack
.
getId
();
}
}
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