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
7b02730d
Commit
7b02730d
authored
Jun 27, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加会员,活动功能
parent
c0ce1a0b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
1157 additions
and
9 deletions
+1157
-9
ActivityController.java
.../java/share/web/controller/system/ActivityController.java
+84
-0
BalanceLogController.java
...ava/share/web/controller/system/BalanceLogController.java
+84
-0
ConsumerMemberController.java
...share/web/controller/system/ConsumerMemberController.java
+85
-0
ConsumerWalletController.java
...share/web/controller/system/ConsumerWalletController.java
+85
-0
DurationLogController.java
...va/share/web/controller/system/DurationLogController.java
+84
-0
EquityMembersOrderConfigController.java
...controller/system/EquityMembersOrderConfigController.java
+84
-0
EquityMembersOrderController.java
...e/web/controller/system/EquityMembersOrderController.java
+85
-0
IntegralLogController.java
...va/share/web/controller/system/IntegralLogController.java
+84
-0
MemberConfigController.java
...a/share/web/controller/system/MemberConfigController.java
+90
-0
RechargeConfController.java
...a/share/web/controller/system/RechargeConfController.java
+84
-0
RechargeController.java
.../java/share/web/controller/system/RechargeController.java
+84
-0
RechargeCouponConfController.java
...e/web/controller/system/RechargeCouponConfController.java
+84
-0
RechargeRefundController.java
...share/web/controller/system/RechargeRefundController.java
+84
-0
pom.xml
share-system/pom.xml
+6
-0
Activity.java
share-system/src/main/java/share/system/domain/Activity.java
+2
-0
BalanceLog.java
...-system/src/main/java/share/system/domain/BalanceLog.java
+2
-0
ConsumerMember.java
...tem/src/main/java/share/system/domain/ConsumerMember.java
+2
-0
ConsumerWallet.java
...tem/src/main/java/share/system/domain/ConsumerWallet.java
+2
-0
EquityMembersOrder.java
...src/main/java/share/system/domain/EquityMembersOrder.java
+2
-0
EquityMembersOrderConfig.java
...in/java/share/system/domain/EquityMembersOrderConfig.java
+2
-0
IntegralLog.java
...system/src/main/java/share/system/domain/IntegralLog.java
+2
-0
MemberConfig.java
...ystem/src/main/java/share/system/domain/MemberConfig.java
+2
-0
Recharge.java
share-system/src/main/java/share/system/domain/Recharge.java
+2
-0
RechargeConf.java
...ystem/src/main/java/share/system/domain/RechargeConf.java
+2
-0
RechargeCouponConf.java
...src/main/java/share/system/domain/RechargeCouponConf.java
+2
-0
RechargeRefund.java
...tem/src/main/java/share/system/domain/RechargeRefund.java
+2
-0
SConsumerVo.java
...tem/src/main/java/share/system/domain/vo/SConsumerVo.java
+6
-0
ComputedOrderPriceResponse.java
...ava/share/system/response/ComputedOrderPriceResponse.java
+6
-2
ActivityServiceImpl.java
...n/java/share/system/service/impl/ActivityServiceImpl.java
+6
-0
SConsumerServiceImpl.java
.../java/share/system/service/impl/SConsumerServiceImpl.java
+8
-7
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+0
-0
No files found.
share-front/src/main/java/share/web/controller/system/ActivityController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.Activity
;
import
share.system.service.ActivityService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 活动Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/activity"
)
public
class
ActivityController
extends
BaseController
{
@Autowired
private
ActivityService
activityService
;
/**
* 查询活动列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
Activity
activity
)
{
startPage
();
List
<
Activity
>
list
=
activityService
.
selectActivityList
(
activity
);
return
getDataTable
(
list
);
}
/**
* 导出活动列表
*/
@Log
(
title
=
"活动"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
Activity
activity
)
{
List
<
Activity
>
list
=
activityService
.
selectActivityList
(
activity
);
ExcelUtil
<
Activity
>
util
=
new
ExcelUtil
<
Activity
>(
Activity
.
class
);
util
.
exportExcel
(
response
,
list
,
"活动数据"
);
}
/**
* 获取活动详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
activityService
.
selectActivityById
(
id
));
}
/**
* 新增活动
*/
@Log
(
title
=
"活动"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
Activity
activity
)
{
return
toAjax
(
activityService
.
insertActivity
(
activity
));
}
/**
* 修改活动
*/
@Log
(
title
=
"活动"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
Activity
activity
)
{
return
toAjax
(
activityService
.
updateActivity
(
activity
));
}
/**
* 删除活动
*/
@Log
(
title
=
"活动"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
activityService
.
deleteActivityByIds
(
ids
));
}
}
share-front/src/main/java/share/web/controller/system/BalanceLogController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.BalanceLog
;
import
share.system.service.BalanceLogService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 余额日志Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/balanceLog"
)
public
class
BalanceLogController
extends
BaseController
{
@Autowired
private
BalanceLogService
balanceLogService
;
/**
* 查询余额日志列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
BalanceLog
balanceLog
)
{
startPage
();
List
<
BalanceLog
>
list
=
balanceLogService
.
selectBalanceLogList
(
balanceLog
);
return
getDataTable
(
list
);
}
/**
* 导出余额日志列表
*/
@Log
(
title
=
"余额日志"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
BalanceLog
balanceLog
)
{
List
<
BalanceLog
>
list
=
balanceLogService
.
selectBalanceLogList
(
balanceLog
);
ExcelUtil
<
BalanceLog
>
util
=
new
ExcelUtil
<
BalanceLog
>(
BalanceLog
.
class
);
util
.
exportExcel
(
response
,
list
,
"余额日志数据"
);
}
/**
* 获取余额日志详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
balanceLogService
.
selectBalanceLogById
(
id
));
}
/**
* 新增余额日志
*/
@Log
(
title
=
"余额日志"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
BalanceLog
balanceLog
)
{
return
toAjax
(
balanceLogService
.
insertBalanceLog
(
balanceLog
));
}
/**
* 修改余额日志
*/
@Log
(
title
=
"余额日志"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
BalanceLog
balanceLog
)
{
return
toAjax
(
balanceLogService
.
updateBalanceLog
(
balanceLog
));
}
/**
* 删除余额日志
*/
@Log
(
title
=
"余额日志"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
balanceLogService
.
deleteBalanceLogByIds
(
ids
));
}
}
share-front/src/main/java/share/web/controller/system/ConsumerMemberController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.ConsumerMember
;
import
share.system.domain.vo.ConsumerMemberVo
;
import
share.system.service.ConsumerMemberService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 会员用户Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/member"
)
public
class
ConsumerMemberController
extends
BaseController
{
@Autowired
private
ConsumerMemberService
consumerMemberService
;
/**
* 查询会员用户列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
ConsumerMemberVo
consumerMember
)
{
startPage
();
List
<
ConsumerMemberVo
>
list
=
consumerMemberService
.
selectConsumerMemberList
(
consumerMember
);
return
getDataTable
(
list
);
}
/**
* 导出会员用户列表
*/
@Log
(
title
=
"会员用户"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
ConsumerMemberVo
consumerMember
)
{
List
<
ConsumerMemberVo
>
list
=
consumerMemberService
.
selectConsumerMemberList
(
consumerMember
);
ExcelUtil
<
ConsumerMemberVo
>
util
=
new
ExcelUtil
<>(
ConsumerMemberVo
.
class
);
util
.
exportExcel
(
response
,
list
,
"会员用户数据"
);
}
/**
* 获取会员用户详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
consumerMemberService
.
selectConsumerMemberById
(
id
));
}
/**
* 新增会员用户
*/
@Log
(
title
=
"会员用户"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
ConsumerMember
consumerMember
)
{
return
toAjax
(
consumerMemberService
.
insertConsumerMember
(
consumerMember
));
}
/**
* 修改会员用户
*/
@Log
(
title
=
"会员用户"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
ConsumerMember
consumerMember
)
{
return
toAjax
(
consumerMemberService
.
updateConsumerMember
(
consumerMember
));
}
/**
* 删除会员用户
*/
@Log
(
title
=
"会员用户"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
consumerMemberService
.
deleteConsumerMemberByIds
(
ids
));
}
}
share-front/src/main/java/share/web/controller/system/ConsumerWalletController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.ConsumerWallet
;
import
share.system.domain.vo.ConsumerWalletVo
;
import
share.system.service.ConsumerWalletService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 会员钱包Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/wallet"
)
public
class
ConsumerWalletController
extends
BaseController
{
@Autowired
private
ConsumerWalletService
consumerWalletService
;
/**
* 查询会员钱包列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
ConsumerWalletVo
consumerWallet
)
{
startPage
();
List
<
ConsumerWalletVo
>
list
=
consumerWalletService
.
selectConsumerWalletList
(
consumerWallet
);
return
getDataTable
(
list
);
}
/**
* 导出会员钱包列表
*/
@Log
(
title
=
"会员钱包"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
ConsumerWalletVo
consumerWallet
)
{
List
<
ConsumerWalletVo
>
list
=
consumerWalletService
.
selectConsumerWalletList
(
consumerWallet
);
ExcelUtil
<
ConsumerWalletVo
>
util
=
new
ExcelUtil
<
ConsumerWalletVo
>(
ConsumerWalletVo
.
class
);
util
.
exportExcel
(
response
,
list
,
"会员钱包数据"
);
}
/**
* 获取会员钱包详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
consumerWalletService
.
selectConsumerWalletById
(
id
));
}
/**
* 新增会员钱包
*/
@Log
(
title
=
"会员钱包"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
ConsumerWallet
consumerWallet
)
{
return
toAjax
(
consumerWalletService
.
insertConsumerWallet
(
consumerWallet
));
}
/**
* 修改会员钱包
*/
@Log
(
title
=
"会员钱包"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
ConsumerWallet
consumerWallet
)
{
return
toAjax
(
consumerWalletService
.
updateConsumerWallet
(
consumerWallet
));
}
/**
* 删除会员钱包
*/
@Log
(
title
=
"会员钱包"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
consumerWalletService
.
deleteConsumerWalletByIds
(
ids
));
}
}
share-front/src/main/java/share/web/controller/system/DurationLogController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.DurationLog
;
import
share.system.service.DurationLogService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 时长日志Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/durationLog"
)
public
class
DurationLogController
extends
BaseController
{
@Autowired
private
DurationLogService
durationLogService
;
/**
* 查询时长日志列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
DurationLog
durationLog
)
{
startPage
();
List
<
DurationLog
>
list
=
durationLogService
.
selectDurationLogList
(
durationLog
);
return
getDataTable
(
list
);
}
/**
* 导出时长日志列表
*/
@Log
(
title
=
"时长日志"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
DurationLog
durationLog
)
{
List
<
DurationLog
>
list
=
durationLogService
.
selectDurationLogList
(
durationLog
);
ExcelUtil
<
DurationLog
>
util
=
new
ExcelUtil
<
DurationLog
>(
DurationLog
.
class
);
util
.
exportExcel
(
response
,
list
,
"时长日志数据"
);
}
/**
* 获取时长日志详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
durationLogService
.
selectDurationLogById
(
id
));
}
/**
* 新增时长日志
*/
@Log
(
title
=
"时长日志"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
DurationLog
durationLog
)
{
return
toAjax
(
durationLogService
.
insertDurationLog
(
durationLog
));
}
/**
* 修改时长日志
*/
@Log
(
title
=
"时长日志"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
DurationLog
durationLog
)
{
return
toAjax
(
durationLogService
.
updateDurationLog
(
durationLog
));
}
/**
* 删除时长日志
*/
@Log
(
title
=
"时长日志"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
durationLogService
.
deleteDurationLogByIds
(
ids
));
}
}
share-front/src/main/java/share/web/controller/system/EquityMembersOrderConfigController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.EquityMembersOrderConfig
;
import
share.system.service.EquityMembersOrderConfigService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 权益会员订单配置Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/equityMembersOrderConfig"
)
public
class
EquityMembersOrderConfigController
extends
BaseController
{
@Autowired
private
EquityMembersOrderConfigService
equityMembersOrderConfigService
;
/**
* 查询权益会员订单配置列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
EquityMembersOrderConfig
equityMembersOrderConfig
)
{
startPage
();
List
<
EquityMembersOrderConfig
>
list
=
equityMembersOrderConfigService
.
selectEquityMembersOrderConfigList
(
equityMembersOrderConfig
);
return
getDataTable
(
list
);
}
/**
* 导出权益会员订单配置列表
*/
@Log
(
title
=
"权益会员订单配置"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
EquityMembersOrderConfig
equityMembersOrderConfig
)
{
List
<
EquityMembersOrderConfig
>
list
=
equityMembersOrderConfigService
.
selectEquityMembersOrderConfigList
(
equityMembersOrderConfig
);
ExcelUtil
<
EquityMembersOrderConfig
>
util
=
new
ExcelUtil
<
EquityMembersOrderConfig
>(
EquityMembersOrderConfig
.
class
);
util
.
exportExcel
(
response
,
list
,
"权益会员订单配置数据"
);
}
/**
* 获取权益会员订单配置详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
equityMembersOrderConfigService
.
selectEquityMembersOrderConfigById
(
id
));
}
/**
* 新增权益会员订单配置
*/
@Log
(
title
=
"权益会员订单配置"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
EquityMembersOrderConfig
equityMembersOrderConfig
)
{
return
toAjax
(
equityMembersOrderConfigService
.
insertEquityMembersOrderConfig
(
equityMembersOrderConfig
));
}
/**
* 修改权益会员订单配置
*/
@Log
(
title
=
"权益会员订单配置"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
EquityMembersOrderConfig
equityMembersOrderConfig
)
{
return
toAjax
(
equityMembersOrderConfigService
.
updateEquityMembersOrderConfig
(
equityMembersOrderConfig
));
}
/**
* 删除权益会员订单配置
*/
@Log
(
title
=
"权益会员订单配置"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
equityMembersOrderConfigService
.
deleteEquityMembersOrderConfigByIds
(
ids
));
}
}
share-front/src/main/java/share/web/controller/system/EquityMembersOrderController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.EquityMembersOrder
;
import
share.system.domain.vo.EquityMembersOrderVo
;
import
share.system.service.EquityMembersOrderService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 权益会员订单Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/equityMembersOrder"
)
public
class
EquityMembersOrderController
extends
BaseController
{
@Autowired
private
EquityMembersOrderService
equityMembersOrderService
;
/**
* 查询权益会员订单列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
EquityMembersOrderVo
equityMembersOrder
)
{
startPage
();
List
<
EquityMembersOrderVo
>
list
=
equityMembersOrderService
.
selectEquityMembersOrderList
(
equityMembersOrder
);
return
getDataTable
(
list
);
}
/**
* 导出权益会员订单列表
*/
@Log
(
title
=
"权益会员订单"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
EquityMembersOrderVo
equityMembersOrder
)
{
List
<
EquityMembersOrderVo
>
list
=
equityMembersOrderService
.
selectEquityMembersOrderList
(
equityMembersOrder
);
ExcelUtil
<
EquityMembersOrderVo
>
util
=
new
ExcelUtil
<
EquityMembersOrderVo
>(
EquityMembersOrderVo
.
class
);
util
.
exportExcel
(
response
,
list
,
"权益会员订单数据"
);
}
/**
* 获取权益会员订单详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
equityMembersOrderService
.
selectEquityMembersOrderById
(
id
));
}
/**
* 新增权益会员订单
*/
@Log
(
title
=
"权益会员订单"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
EquityMembersOrder
equityMembersOrder
)
{
return
toAjax
(
equityMembersOrderService
.
insertEquityMembersOrder
(
equityMembersOrder
));
}
/**
* 修改权益会员订单
*/
@Log
(
title
=
"权益会员订单"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
EquityMembersOrder
equityMembersOrder
)
{
return
toAjax
(
equityMembersOrderService
.
updateEquityMembersOrder
(
equityMembersOrder
));
}
/**
* 删除权益会员订单
*/
@Log
(
title
=
"权益会员订单"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
equityMembersOrderService
.
deleteEquityMembersOrderByIds
(
ids
));
}
}
share-front/src/main/java/share/web/controller/system/IntegralLogController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.IntegralLog
;
import
share.system.service.IntegralLogService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 积分日志Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/integralLog"
)
public
class
IntegralLogController
extends
BaseController
{
@Autowired
private
IntegralLogService
integralLogService
;
/**
* 查询积分日志列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
IntegralLog
integralLog
)
{
startPage
();
List
<
IntegralLog
>
list
=
integralLogService
.
selectIntegralLogList
(
integralLog
);
return
getDataTable
(
list
);
}
/**
* 导出积分日志列表
*/
@Log
(
title
=
"积分日志"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
IntegralLog
integralLog
)
{
List
<
IntegralLog
>
list
=
integralLogService
.
selectIntegralLogList
(
integralLog
);
ExcelUtil
<
IntegralLog
>
util
=
new
ExcelUtil
<
IntegralLog
>(
IntegralLog
.
class
);
util
.
exportExcel
(
response
,
list
,
"积分日志数据"
);
}
/**
* 获取积分日志详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
integralLogService
.
selectIntegralLogById
(
id
));
}
/**
* 新增积分日志
*/
@Log
(
title
=
"积分日志"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
IntegralLog
integralLog
)
{
return
toAjax
(
integralLogService
.
insertIntegralLog
(
integralLog
));
}
/**
* 修改积分日志
*/
@Log
(
title
=
"积分日志"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
IntegralLog
integralLog
)
{
return
toAjax
(
integralLogService
.
updateIntegralLog
(
integralLog
));
}
/**
* 删除积分日志
*/
@Log
(
title
=
"积分日志"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
integralLogService
.
deleteIntegralLogByIds
(
ids
));
}
}
share-front/src/main/java/share/web/controller/system/MemberConfigController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
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.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.MemberConfig
;
import
share.system.service.MemberConfigService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 会员配置Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/memberConfig"
)
public
class
MemberConfigController
extends
BaseController
{
@Autowired
private
MemberConfigService
memberConfigService
;
/**
* 查询会员配置列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
MemberConfig
memberConfig
)
{
startPage
();
List
<
MemberConfig
>
list
=
memberConfigService
.
selectMemberConfigList
(
memberConfig
);
return
getDataTable
(
list
);
}
@GetMapping
(
"/query"
)
public
R
<
List
<
MemberConfig
>>
query
(
MemberConfig
memberConfig
)
{
return
R
.
ok
(
memberConfigService
.
selectMemberConfigList
(
memberConfig
));
}
/**
* 导出会员配置列表
*/
@Log
(
title
=
"会员配置"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
MemberConfig
memberConfig
)
{
List
<
MemberConfig
>
list
=
memberConfigService
.
selectMemberConfigList
(
memberConfig
);
ExcelUtil
<
MemberConfig
>
util
=
new
ExcelUtil
<
MemberConfig
>(
MemberConfig
.
class
);
util
.
exportExcel
(
response
,
list
,
"会员配置数据"
);
}
/**
* 获取会员配置详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
memberConfigService
.
selectMemberConfigById
(
id
));
}
/**
* 新增会员配置
*/
@Log
(
title
=
"会员配置"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
MemberConfig
memberConfig
)
{
return
toAjax
(
memberConfigService
.
insertMemberConfig
(
memberConfig
));
}
/**
* 修改会员配置
*/
@Log
(
title
=
"会员配置"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
MemberConfig
memberConfig
)
{
return
toAjax
(
memberConfigService
.
updateMemberConfig
(
memberConfig
));
}
/**
* 删除会员配置
*/
@Log
(
title
=
"会员配置"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
memberConfigService
.
deleteMemberConfigByIds
(
ids
));
}
}
share-front/src/main/java/share/web/controller/system/RechargeConfController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.RechargeConf
;
import
share.system.service.RechargeConfService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 充值配置Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/rechargeConf"
)
public
class
RechargeConfController
extends
BaseController
{
@Autowired
private
RechargeConfService
rechargeConfService
;
/**
* 查询充值配置列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
RechargeConf
rechargeConf
)
{
startPage
();
List
<
RechargeConf
>
list
=
rechargeConfService
.
selectRechargeConfList
(
rechargeConf
);
return
getDataTable
(
list
);
}
/**
* 导出充值配置列表
*/
@Log
(
title
=
"充值配置"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
RechargeConf
rechargeConf
)
{
List
<
RechargeConf
>
list
=
rechargeConfService
.
selectRechargeConfList
(
rechargeConf
);
ExcelUtil
<
RechargeConf
>
util
=
new
ExcelUtil
<
RechargeConf
>(
RechargeConf
.
class
);
util
.
exportExcel
(
response
,
list
,
"充值配置数据"
);
}
/**
* 获取充值配置详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
rechargeConfService
.
selectRechargeConfById
(
id
));
}
/**
* 新增充值配置
*/
@Log
(
title
=
"充值配置"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
RechargeConf
rechargeConf
)
{
return
toAjax
(
rechargeConfService
.
insertRechargeConf
(
rechargeConf
));
}
/**
* 修改充值配置
*/
@Log
(
title
=
"充值配置"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
RechargeConf
rechargeConf
)
{
return
toAjax
(
rechargeConfService
.
updateRechargeConf
(
rechargeConf
));
}
/**
* 删除充值配置
*/
@Log
(
title
=
"充值配置"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
rechargeConfService
.
deleteRechargeConfByIds
(
ids
));
}
}
share-front/src/main/java/share/web/controller/system/RechargeController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.Recharge
;
import
share.system.service.RechargeService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 充值记录Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/recharge"
)
public
class
RechargeController
extends
BaseController
{
@Autowired
private
RechargeService
rechargeService
;
/**
* 查询充值记录列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
Recharge
recharge
)
{
startPage
();
List
<
Recharge
>
list
=
rechargeService
.
selectRechargeList
(
recharge
);
return
getDataTable
(
list
);
}
/**
* 导出充值记录列表
*/
@Log
(
title
=
"充值记录"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
Recharge
recharge
)
{
List
<
Recharge
>
list
=
rechargeService
.
selectRechargeList
(
recharge
);
ExcelUtil
<
Recharge
>
util
=
new
ExcelUtil
<
Recharge
>(
Recharge
.
class
);
util
.
exportExcel
(
response
,
list
,
"充值记录数据"
);
}
/**
* 获取充值记录详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
rechargeService
.
selectRechargeById
(
id
));
}
/**
* 新增充值记录
*/
@Log
(
title
=
"充值记录"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
Recharge
recharge
)
{
return
toAjax
(
rechargeService
.
insertRecharge
(
recharge
));
}
/**
* 修改充值记录
*/
@Log
(
title
=
"充值记录"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
Recharge
recharge
)
{
return
toAjax
(
rechargeService
.
updateRecharge
(
recharge
));
}
/**
* 删除充值记录
*/
@Log
(
title
=
"充值记录"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
rechargeService
.
deleteRechargeByIds
(
ids
));
}
}
share-front/src/main/java/share/web/controller/system/RechargeCouponConfController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.RechargeCouponConf
;
import
share.system.service.RechargeCouponConfService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 充值优惠券配置Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/rechargeCouponConf"
)
public
class
RechargeCouponConfController
extends
BaseController
{
@Autowired
private
RechargeCouponConfService
rechargeCouponConfService
;
/**
* 查询充值优惠券配置列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
RechargeCouponConf
rechargeCouponConf
)
{
startPage
();
List
<
RechargeCouponConf
>
list
=
rechargeCouponConfService
.
selectRechargeCouponConfList
(
rechargeCouponConf
);
return
getDataTable
(
list
);
}
/**
* 导出充值优惠券配置列表
*/
@Log
(
title
=
"充值优惠券配置"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
RechargeCouponConf
rechargeCouponConf
)
{
List
<
RechargeCouponConf
>
list
=
rechargeCouponConfService
.
selectRechargeCouponConfList
(
rechargeCouponConf
);
ExcelUtil
<
RechargeCouponConf
>
util
=
new
ExcelUtil
<
RechargeCouponConf
>(
RechargeCouponConf
.
class
);
util
.
exportExcel
(
response
,
list
,
"充值优惠券配置数据"
);
}
/**
* 获取充值优惠券配置详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
rechargeCouponConfService
.
selectRechargeCouponConfById
(
id
));
}
/**
* 新增充值优惠券配置
*/
@Log
(
title
=
"充值优惠券配置"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
RechargeCouponConf
rechargeCouponConf
)
{
return
toAjax
(
rechargeCouponConfService
.
insertRechargeCouponConf
(
rechargeCouponConf
));
}
/**
* 修改充值优惠券配置
*/
@Log
(
title
=
"充值优惠券配置"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
RechargeCouponConf
rechargeCouponConf
)
{
return
toAjax
(
rechargeCouponConfService
.
updateRechargeCouponConf
(
rechargeCouponConf
));
}
/**
* 删除充值优惠券配置
*/
@Log
(
title
=
"充值优惠券配置"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
rechargeCouponConfService
.
deleteRechargeCouponConfByIds
(
ids
));
}
}
share-front/src/main/java/share/web/controller/system/RechargeRefundController.java
0 → 100644
View file @
7b02730d
package
share
.
web
.
controller
.
system
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
share.common.annotation.Log
;
import
share.common.core.controller.BaseController
;
import
share.common.core.domain.AjaxResult
;
import
share.common.core.page.TableDataInfo
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.RechargeRefund
;
import
share.system.service.RechargeRefundService
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
/**
* 充值退款申请Controller
*
* @author wuwenlong
* @date 2024-06-24
*/
@RestController
@RequestMapping
(
"/system/rechargeRefund"
)
public
class
RechargeRefundController
extends
BaseController
{
@Autowired
private
RechargeRefundService
rechargeRefundService
;
/**
* 查询充值退款申请列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
RechargeRefund
rechargeRefund
)
{
startPage
();
List
<
RechargeRefund
>
list
=
rechargeRefundService
.
selectRechargeRefundList
(
rechargeRefund
);
return
getDataTable
(
list
);
}
/**
* 导出充值退款申请列表
*/
@Log
(
title
=
"充值退款申请"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
RechargeRefund
rechargeRefund
)
{
List
<
RechargeRefund
>
list
=
rechargeRefundService
.
selectRechargeRefundList
(
rechargeRefund
);
ExcelUtil
<
RechargeRefund
>
util
=
new
ExcelUtil
<
RechargeRefund
>(
RechargeRefund
.
class
);
util
.
exportExcel
(
response
,
list
,
"充值退款申请数据"
);
}
/**
* 获取充值退款申请详细信息
*/
@GetMapping
(
value
=
"/{id}"
)
public
AjaxResult
getInfo
(
@PathVariable
(
"id"
)
Long
id
)
{
return
success
(
rechargeRefundService
.
selectRechargeRefundById
(
id
));
}
/**
* 新增充值退款申请
*/
@Log
(
title
=
"充值退款申请"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
RechargeRefund
rechargeRefund
)
{
return
toAjax
(
rechargeRefundService
.
insertRechargeRefund
(
rechargeRefund
));
}
/**
* 修改充值退款申请
*/
@Log
(
title
=
"充值退款申请"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
RechargeRefund
rechargeRefund
)
{
return
toAjax
(
rechargeRefundService
.
updateRechargeRefund
(
rechargeRefund
));
}
/**
* 删除充值退款申请
*/
@Log
(
title
=
"充值退款申请"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{ids}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
ids
)
{
return
toAjax
(
rechargeRefundService
.
deleteRechargeRefundByIds
(
ids
));
}
}
share-system/pom.xml
View file @
7b02730d
...
...
@@ -151,5 +151,10 @@
<scope>
system
</scope>
<systemPath>
${project.basedir}/src/lib/saobei-open-sdk-1.1.8.jar
</systemPath>
</dependency>
<dependency>
<groupId>
com.cronutils
</groupId>
<artifactId>
cron-utils
</artifactId>
<version>
9.1.3
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
share-system/src/main/java/share/system/domain/Activity.java
View file @
7b02730d
...
...
@@ -2,6 +2,7 @@ package share.system.domain;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
...
@@ -17,6 +18,7 @@ import java.math.BigDecimal;
* @date 2024-06-24
*/
@Data
@TableName
(
value
=
"s_activity"
)
public
class
Activity
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
share-system/src/main/java/share/system/domain/BalanceLog.java
View file @
7b02730d
...
...
@@ -2,6 +2,7 @@ package share.system.domain;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
...
...
@@ -19,6 +20,7 @@ import java.util.Date;
* @date 2024-06-24
*/
@Data
@TableName
(
value
=
"s_balance_log"
)
public
class
BalanceLog
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
share-system/src/main/java/share/system/domain/ConsumerMember.java
View file @
7b02730d
...
...
@@ -2,6 +2,7 @@ package share.system.domain;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
...
...
@@ -18,6 +19,7 @@ import java.util.Date;
* @date 2024-06-24
*/
@Data
@TableName
(
value
=
"s_consumer_member"
)
public
class
ConsumerMember
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
share-system/src/main/java/share/system/domain/ConsumerWallet.java
View file @
7b02730d
...
...
@@ -2,6 +2,7 @@ package share.system.domain;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
...
@@ -17,6 +18,7 @@ import java.math.BigDecimal;
* @date 2024-06-24
*/
@Data
@TableName
(
value
=
"s_consumer_wallet"
)
public
class
ConsumerWallet
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
share-system/src/main/java/share/system/domain/EquityMembersOrder.java
View file @
7b02730d
...
...
@@ -2,6 +2,7 @@ package share.system.domain;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
...
...
@@ -19,6 +20,7 @@ import java.util.Date;
* @date 2024-06-24
*/
@Data
@TableName
(
value
=
"s_equity_members_order"
)
public
class
EquityMembersOrder
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
share-system/src/main/java/share/system/domain/EquityMembersOrderConfig.java
View file @
7b02730d
...
...
@@ -2,6 +2,7 @@ package share.system.domain;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
...
@@ -17,6 +18,7 @@ import java.math.BigDecimal;
* @date 2024-06-24
*/
@Data
@TableName
(
value
=
"s_equity_members_order_config"
)
public
class
EquityMembersOrderConfig
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
share-system/src/main/java/share/system/domain/IntegralLog.java
View file @
7b02730d
...
...
@@ -2,6 +2,7 @@ package share.system.domain;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
...
...
@@ -19,6 +20,7 @@ import java.util.Date;
* @date 2024-06-24
*/
@Data
@TableName
(
value
=
"s_integral_log"
)
public
class
IntegralLog
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
share-system/src/main/java/share/system/domain/MemberConfig.java
View file @
7b02730d
...
...
@@ -2,6 +2,7 @@ package share.system.domain;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
...
@@ -17,6 +18,7 @@ import java.math.BigDecimal;
* @date 2024-06-24
*/
@Data
@TableName
(
value
=
"s_member_config"
)
public
class
MemberConfig
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
share-system/src/main/java/share/system/domain/Recharge.java
View file @
7b02730d
...
...
@@ -2,6 +2,7 @@ package share.system.domain;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableLogic
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
...
...
@@ -19,6 +20,7 @@ import java.util.Date;
* @date 2024-06-24
*/
@Data
@TableName
(
value
=
"s_recharge"
)
public
class
Recharge
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
share-system/src/main/java/share/system/domain/RechargeConf.java
View file @
7b02730d
package
share
.
system
.
domain
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
...
@@ -15,6 +16,7 @@ import java.math.BigDecimal;
* @date 2024-06-24
*/
@Data
@TableName
(
value
=
"s_recharge_conf"
)
public
class
RechargeConf
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
share-system/src/main/java/share/system/domain/RechargeCouponConf.java
View file @
7b02730d
package
share
.
system
.
domain
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
...
...
@@ -15,6 +16,7 @@ import java.math.BigDecimal;
* @date 2024-06-24
*/
@Data
@TableName
(
value
=
"s_recharge_coupon_conf"
)
public
class
RechargeCouponConf
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
share-system/src/main/java/share/system/domain/RechargeRefund.java
View file @
7b02730d
package
share
.
system
.
domain
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
...
...
@@ -17,6 +18,7 @@ import java.util.Date;
* @date 2024-06-24
*/
@Data
@TableName
(
value
=
"s_recharge_refund"
)
public
class
RechargeRefund
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
share-system/src/main/java/share/system/domain/vo/SConsumerVo.java
View file @
7b02730d
package
share
.
system
.
domain
.
vo
;
import
lombok.Data
;
import
share.system.domain.ConsumerMember
;
import
share.system.domain.ConsumerWallet
;
import
share.system.domain.SConsumer
;
/**
...
...
@@ -26,4 +28,8 @@ public class SConsumerVo extends SConsumer {
private
Integer
gating
;
private
ConsumerMember
consumerMember
;
private
ConsumerWallet
consumerWallet
;
}
share-system/src/main/java/share/system/response/ComputedOrderPriceResponse.java
View file @
7b02730d
...
...
@@ -6,10 +6,8 @@ import lombok.Data;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* @Author wwl
...
...
@@ -32,5 +30,11 @@ public class ComputedOrderPriceResponse implements Serializable {
@ApiModelProperty
(
value
=
"总金额"
)
private
BigDecimal
totalFee
;
@ApiModelProperty
(
value
=
"优惠金额"
)
private
BigDecimal
discountFee
;
@ApiModelProperty
(
value
=
"折扣比例"
)
private
BigDecimal
discountRatio
;
}
share-system/src/main/java/share/system/service/impl/ActivityServiceImpl.java
View file @
7b02730d
...
...
@@ -5,10 +5,13 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
share.common.utils.DateUtils
;
import
share.system.domain.Activity
;
import
share.system.domain.SStore
;
import
share.system.mapper.ActivityMapper
;
import
share.system.service.ActivityService
;
import
share.system.service.ISStoreService
;
import
java.util.List
;
import
java.util.stream.Collectors
;
/**
* 活动Service业务层处理
...
...
@@ -20,6 +23,8 @@ import java.util.List;
public
class
ActivityServiceImpl
extends
ServiceImpl
<
ActivityMapper
,
Activity
>
implements
ActivityService
{
@Autowired
private
ActivityMapper
activityMapper
;
@Autowired
private
ISStoreService
storeService
;
/**
* 查询活动
...
...
@@ -52,6 +57,7 @@ public class ActivityServiceImpl extends ServiceImpl<ActivityMapper, Activity> i
@Override
public
int
insertActivity
(
Activity
activity
)
{
activity
.
setCreateTime
(
DateUtils
.
getNowDate
());
activity
.
setStoreIds
(
storeService
.
list
().
stream
().
map
(
SStore:
:
getId
).
collect
(
Collectors
.
toList
()).
stream
().
map
(
String:
:
valueOf
).
collect
(
Collectors
.
joining
(
","
)));
return
activityMapper
.
insertActivity
(
activity
);
}
...
...
share-system/src/main/java/share/system/service/impl/SConsumerServiceImpl.java
View file @
7b02730d
...
...
@@ -18,18 +18,13 @@ import share.common.enums.RoleTypeEnum;
import
share.common.exception.base.BaseException
;
import
share.common.utils.BaseUtil
;
import
share.common.utils.DateUtil
;
import
share.system.domain.SConsumer
;
import
share.system.domain.SConsumerCoupon
;
import
share.system.domain.SConsumerToken
;
import
share.system.domain.SStoreConsumer
;
import
share.system.domain.*
;
import
share.system.domain.vo.FrontTokenComponent
;
import
share.system.domain.vo.SConsumerVo
;
import
share.system.mapper.SConsumerMapper
;
import
share.system.mapper.SStoreConsumerMapper
;
import
share.system.request.RegisterThirdSConsumerRequest
;
import
share.system.service.ISConsumerCouponService
;
import
share.system.service.SConsumerService
;
import
share.system.service.SConsumerTokenService
;
import
share.system.service.*
;
import
java.util.List
;
...
...
@@ -51,6 +46,10 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer
private
SStoreConsumerMapper
storeConsumerMapper
;
@Autowired
private
SConsumerTokenService
sConsumerTokenService
;
@Autowired
private
ConsumerWalletService
consumerWalletService
;
@Autowired
private
ConsumerMemberService
consumerMemberService
;
/**
* 查询会员用户
...
...
@@ -188,6 +187,8 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer
}
SConsumerVo
vo
=
new
SConsumerVo
();
BeanUtils
.
copyProperties
(
currentUser
,
vo
);
vo
.
setConsumerMember
(
consumerMemberService
.
getOne
(
new
LambdaQueryWrapper
<
ConsumerMember
>().
eq
(
ConsumerMember:
:
getConsumerId
,
currentUser
.
getId
())));
vo
.
setConsumerWallet
(
consumerWalletService
.
getOne
(
new
LambdaQueryWrapper
<
ConsumerWallet
>().
eq
(
ConsumerWallet:
:
getConsumerId
,
currentUser
.
getId
())));
List
<
Long
>
longList
=
storeConsumerMapper
.
selectByConsumerId
(
currentUser
.
getId
(),
PositionEnum
.
CLEANER
.
getCode
());
if
(
CollectionUtils
.
isEmpty
(
longList
))
{
vo
.
setIsCleaner
(
false
);
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
7b02730d
This diff is collapsed.
Click to expand it.
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