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
5a723c63
Commit
5a723c63
authored
Aug 26, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改次卡后台管理系统
parent
d214bc24
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
81 additions
and
34 deletions
+81
-34
SecondaryCardLogController.java
...are/web/controller/system/SecondaryCardLogController.java
+6
-5
SecondaryCardOrderController.java
...e/web/controller/system/SecondaryCardOrderController.java
+6
-5
SecondaryCardLogController.java
...are/web/controller/system/SecondaryCardLogController.java
+3
-3
SecondaryCardOrderController.java
...e/web/controller/system/SecondaryCardOrderController.java
+3
-3
SecondaryCardLogVo.java
.../main/java/share/system/domain/vo/SecondaryCardLogVo.java
+4
-0
SecondaryCardLogMapper.java
...main/java/share/system/mapper/SecondaryCardLogMapper.java
+2
-1
SecondaryCardOrderMapper.java
...in/java/share/system/mapper/SecondaryCardOrderMapper.java
+2
-1
SecondaryCardLogService.java
...in/java/share/system/service/SecondaryCardLogService.java
+2
-1
SecondaryCardOrderService.java
.../java/share/system/service/SecondaryCardOrderService.java
+2
-1
SecondaryCardLogServiceImpl.java
...hare/system/service/impl/SecondaryCardLogServiceImpl.java
+2
-1
SecondaryCardOrderServiceImpl.java
...re/system/service/impl/SecondaryCardOrderServiceImpl.java
+2
-1
SecondaryCardConfMapper.xml
.../main/resources/mapper/system/SecondaryCardConfMapper.xml
+5
-6
SecondaryCardLogMapper.xml
...c/main/resources/mapper/system/SecondaryCardLogMapper.xml
+10
-4
SecondaryCardOrderMapper.xml
...main/resources/mapper/system/SecondaryCardOrderMapper.xml
+32
-2
No files found.
share-admin/src/main/java/share/web/controller/system/SecondaryCardLogController.java
View file @
5a723c63
...
@@ -10,6 +10,7 @@ import share.common.core.page.TableDataInfo;
...
@@ -10,6 +10,7 @@ import share.common.core.page.TableDataInfo;
import
share.common.enums.BusinessType
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.SecondaryCardLog
;
import
share.system.domain.SecondaryCardLog
;
import
share.system.domain.vo.SecondaryCardLogVo
;
import
share.system.service.SecondaryCardLogService
;
import
share.system.service.SecondaryCardLogService
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -32,9 +33,9 @@ public class SecondaryCardLogController extends BaseController {
...
@@ -32,9 +33,9 @@ public class SecondaryCardLogController extends BaseController {
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:secondaryCardLog:list')"
)
@PreAuthorize
(
"@ss.hasPermi('system:secondaryCardLog:list')"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SecondaryCardLog
secondaryCardLog
)
{
public
TableDataInfo
list
(
SecondaryCardLog
Vo
secondaryCardLog
)
{
startPage
();
startPage
();
List
<
SecondaryCardLog
>
list
=
secondaryCardLogService
.
selectSecondaryCardLogList
(
secondaryCardLog
);
List
<
SecondaryCardLog
Vo
>
list
=
secondaryCardLogService
.
selectSecondaryCardLogList
(
secondaryCardLog
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
...
@@ -44,9 +45,9 @@ public class SecondaryCardLogController extends BaseController {
...
@@ -44,9 +45,9 @@ public class SecondaryCardLogController extends BaseController {
@PreAuthorize
(
"@ss.hasPermi('system:secondaryCardLog:export')"
)
@PreAuthorize
(
"@ss.hasPermi('system:secondaryCardLog:export')"
)
@Log
(
title
=
"次卡使用记录"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"次卡使用记录"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SecondaryCardLog
secondaryCardLog
)
{
public
void
export
(
HttpServletResponse
response
,
SecondaryCardLog
Vo
secondaryCardLog
)
{
List
<
SecondaryCardLog
>
list
=
secondaryCardLogService
.
selectSecondaryCardLogList
(
secondaryCardLog
);
List
<
SecondaryCardLog
Vo
>
list
=
secondaryCardLogService
.
selectSecondaryCardLogList
(
secondaryCardLog
);
ExcelUtil
<
SecondaryCardLog
>
util
=
new
ExcelUtil
<
SecondaryCardLog
>(
SecondaryCardLog
.
class
);
ExcelUtil
<
SecondaryCardLog
Vo
>
util
=
new
ExcelUtil
<
SecondaryCardLogVo
>(
SecondaryCardLogVo
.
class
);
util
.
exportExcel
(
response
,
list
,
"次卡使用记录数据"
);
util
.
exportExcel
(
response
,
list
,
"次卡使用记录数据"
);
}
}
...
...
share-admin/src/main/java/share/web/controller/system/SecondaryCardOrderController.java
View file @
5a723c63
...
@@ -10,6 +10,7 @@ import share.common.core.page.TableDataInfo;
...
@@ -10,6 +10,7 @@ import share.common.core.page.TableDataInfo;
import
share.common.enums.BusinessType
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.SecondaryCardOrder
;
import
share.system.domain.SecondaryCardOrder
;
import
share.system.domain.vo.SecondaryCardOrderVo
;
import
share.system.service.SecondaryCardOrderService
;
import
share.system.service.SecondaryCardOrderService
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -32,9 +33,9 @@ public class SecondaryCardOrderController extends BaseController {
...
@@ -32,9 +33,9 @@ public class SecondaryCardOrderController extends BaseController {
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:secondaryCardOrder:list')"
)
@PreAuthorize
(
"@ss.hasPermi('system:secondaryCardOrder:list')"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SecondaryCardOrder
secondaryCardOrder
)
{
public
TableDataInfo
list
(
SecondaryCardOrder
Vo
secondaryCardOrder
)
{
startPage
();
startPage
();
List
<
SecondaryCardOrder
>
list
=
secondaryCardOrderService
.
selectSecondaryCardOrderList
(
secondaryCardOrder
);
List
<
SecondaryCardOrder
Vo
>
list
=
secondaryCardOrderService
.
selectSecondaryCardOrderList
(
secondaryCardOrder
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
...
@@ -44,9 +45,9 @@ public class SecondaryCardOrderController extends BaseController {
...
@@ -44,9 +45,9 @@ public class SecondaryCardOrderController extends BaseController {
@PreAuthorize
(
"@ss.hasPermi('system:secondaryCardOrder:export')"
)
@PreAuthorize
(
"@ss.hasPermi('system:secondaryCardOrder:export')"
)
@Log
(
title
=
"次卡购买记录"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"次卡购买记录"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SecondaryCardOrder
secondaryCardOrder
)
{
public
void
export
(
HttpServletResponse
response
,
SecondaryCardOrder
Vo
secondaryCardOrder
)
{
List
<
SecondaryCardOrder
>
list
=
secondaryCardOrderService
.
selectSecondaryCardOrderList
(
secondaryCardOrder
);
List
<
SecondaryCardOrder
Vo
>
list
=
secondaryCardOrderService
.
selectSecondaryCardOrderList
(
secondaryCardOrder
);
ExcelUtil
<
SecondaryCardOrder
>
util
=
new
ExcelUtil
<
SecondaryCardOrder
>(
SecondaryCardOrder
.
class
);
ExcelUtil
<
SecondaryCardOrder
Vo
>
util
=
new
ExcelUtil
<
SecondaryCardOrderVo
>(
SecondaryCardOrderVo
.
class
);
util
.
exportExcel
(
response
,
list
,
"次卡购买记录数据"
);
util
.
exportExcel
(
response
,
list
,
"次卡购买记录数据"
);
}
}
...
...
share-front/src/main/java/share/web/controller/system/SecondaryCardLogController.java
View file @
5a723c63
...
@@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
share.common.core.controller.BaseController
;
import
share.common.core.controller.BaseController
;
import
share.common.core.page.TableDataInfo
;
import
share.common.core.page.TableDataInfo
;
import
share.system.domain.
SecondaryCardLog
;
import
share.system.domain.
vo.SecondaryCardLogVo
;
import
share.system.service.SecondaryCardLogService
;
import
share.system.service.SecondaryCardLogService
;
import
java.util.List
;
import
java.util.List
;
...
@@ -27,9 +27,9 @@ public class SecondaryCardLogController extends BaseController {
...
@@ -27,9 +27,9 @@ public class SecondaryCardLogController extends BaseController {
* 查询次卡使用记录列表
* 查询次卡使用记录列表
*/
*/
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SecondaryCardLog
secondaryCardLog
)
{
public
TableDataInfo
list
(
SecondaryCardLog
Vo
secondaryCardLog
)
{
startPage
();
startPage
();
List
<
SecondaryCardLog
>
list
=
secondaryCardLogService
.
selectSecondaryCardLogList
(
secondaryCardLog
);
List
<
SecondaryCardLog
Vo
>
list
=
secondaryCardLogService
.
selectSecondaryCardLogList
(
secondaryCardLog
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
...
...
share-front/src/main/java/share/web/controller/system/SecondaryCardOrderController.java
View file @
5a723c63
...
@@ -9,7 +9,7 @@ import share.common.core.domain.R;
...
@@ -9,7 +9,7 @@ import share.common.core.domain.R;
import
share.common.core.page.TableDataInfo
;
import
share.common.core.page.TableDataInfo
;
import
share.common.core.redis.RedisUtil
;
import
share.common.core.redis.RedisUtil
;
import
share.common.utils.JsonConvertUtil
;
import
share.common.utils.JsonConvertUtil
;
import
share.system.domain.
SecondaryCardOrder
;
import
share.system.domain.
vo.SecondaryCardOrderVo
;
import
share.system.request.SecondaryCardOrderRequest
;
import
share.system.request.SecondaryCardOrderRequest
;
import
share.system.response.SecondaryCardOrderPayResultResponse
;
import
share.system.response.SecondaryCardOrderPayResultResponse
;
import
share.system.service.SecondaryCardOrderService
;
import
share.system.service.SecondaryCardOrderService
;
...
@@ -35,9 +35,9 @@ public class SecondaryCardOrderController extends BaseController {
...
@@ -35,9 +35,9 @@ public class SecondaryCardOrderController extends BaseController {
* 查询次卡购买记录列表
* 查询次卡购买记录列表
*/
*/
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
SecondaryCardOrder
secondaryCardOrder
)
{
public
TableDataInfo
list
(
SecondaryCardOrder
Vo
secondaryCardOrder
)
{
startPage
();
startPage
();
List
<
SecondaryCardOrder
>
list
=
secondaryCardOrderService
.
selectSecondaryCardOrderList
(
secondaryCardOrder
);
List
<
SecondaryCardOrder
Vo
>
list
=
secondaryCardOrderService
.
selectSecondaryCardOrderList
(
secondaryCardOrder
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
...
...
share-system/src/main/java/share/system/domain/vo/SecondaryCardLogVo.java
View file @
5a723c63
...
@@ -15,4 +15,8 @@ public class SecondaryCardLogVo extends SecondaryCardLog {
...
@@ -15,4 +15,8 @@ public class SecondaryCardLogVo extends SecondaryCardLog {
private
String
packName
;
private
String
packName
;
//套餐金额
//套餐金额
private
BigDecimal
packPrice
;
private
BigDecimal
packPrice
;
//配置名称
private
String
confName
;
//次卡金额
private
BigDecimal
confAmount
;
}
}
share-system/src/main/java/share/system/mapper/SecondaryCardLogMapper.java
View file @
5a723c63
...
@@ -2,6 +2,7 @@ package share.system.mapper;
...
@@ -2,6 +2,7 @@ package share.system.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
share.system.domain.SecondaryCardLog
;
import
share.system.domain.SecondaryCardLog
;
import
share.system.domain.vo.SecondaryCardLogVo
;
import
java.util.List
;
import
java.util.List
;
...
@@ -26,7 +27,7 @@ public interface SecondaryCardLogMapper extends BaseMapper<SecondaryCardLog> {
...
@@ -26,7 +27,7 @@ public interface SecondaryCardLogMapper extends BaseMapper<SecondaryCardLog> {
* @param secondaryCardLog 次卡使用记录
* @param secondaryCardLog 次卡使用记录
* @return 次卡使用记录集合
* @return 次卡使用记录集合
*/
*/
public
List
<
SecondaryCardLog
>
selectSecondaryCardLogList
(
SecondaryCardLog
secondaryCardLog
);
public
List
<
SecondaryCardLog
Vo
>
selectSecondaryCardLogList
(
SecondaryCardLogVo
secondaryCardLog
);
/**
/**
* 新增次卡使用记录
* 新增次卡使用记录
...
...
share-system/src/main/java/share/system/mapper/SecondaryCardOrderMapper.java
View file @
5a723c63
...
@@ -2,6 +2,7 @@ package share.system.mapper;
...
@@ -2,6 +2,7 @@ package share.system.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
share.system.domain.SecondaryCardOrder
;
import
share.system.domain.SecondaryCardOrder
;
import
share.system.domain.vo.SecondaryCardOrderVo
;
import
java.util.List
;
import
java.util.List
;
...
@@ -26,7 +27,7 @@ public interface SecondaryCardOrderMapper extends BaseMapper<SecondaryCardOrder>
...
@@ -26,7 +27,7 @@ public interface SecondaryCardOrderMapper extends BaseMapper<SecondaryCardOrder>
* @param secondaryCardOrder 次卡购买记录
* @param secondaryCardOrder 次卡购买记录
* @return 次卡购买记录集合
* @return 次卡购买记录集合
*/
*/
public
List
<
SecondaryCardOrder
>
selectSecondaryCardOrderList
(
SecondaryCardOrder
secondaryCardOrder
);
public
List
<
SecondaryCardOrder
Vo
>
selectSecondaryCardOrderList
(
SecondaryCardOrderVo
secondaryCardOrder
);
/**
/**
* 新增次卡购买记录
* 新增次卡购买记录
...
...
share-system/src/main/java/share/system/service/SecondaryCardLogService.java
View file @
5a723c63
...
@@ -2,6 +2,7 @@ package share.system.service;
...
@@ -2,6 +2,7 @@ package share.system.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
share.system.domain.SecondaryCardLog
;
import
share.system.domain.SecondaryCardLog
;
import
share.system.domain.vo.SecondaryCardLogVo
;
import
java.util.List
;
import
java.util.List
;
...
@@ -26,7 +27,7 @@ public interface SecondaryCardLogService extends IService<SecondaryCardLog> {
...
@@ -26,7 +27,7 @@ public interface SecondaryCardLogService extends IService<SecondaryCardLog> {
* @param secondaryCardLog 次卡使用记录
* @param secondaryCardLog 次卡使用记录
* @return 次卡使用记录集合
* @return 次卡使用记录集合
*/
*/
public
List
<
SecondaryCardLog
>
selectSecondaryCardLogList
(
SecondaryCardLog
secondaryCardLog
);
public
List
<
SecondaryCardLog
Vo
>
selectSecondaryCardLogList
(
SecondaryCardLogVo
secondaryCardLog
);
/**
/**
* 新增次卡使用记录
* 新增次卡使用记录
...
...
share-system/src/main/java/share/system/service/SecondaryCardOrderService.java
View file @
5a723c63
...
@@ -2,6 +2,7 @@ package share.system.service;
...
@@ -2,6 +2,7 @@ package share.system.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
share.system.domain.SecondaryCardOrder
;
import
share.system.domain.SecondaryCardOrder
;
import
share.system.domain.vo.SecondaryCardOrderVo
;
import
share.system.request.SecondaryCardOrderRequest
;
import
share.system.request.SecondaryCardOrderRequest
;
import
share.system.response.SecondaryCardOrderPayResultResponse
;
import
share.system.response.SecondaryCardOrderPayResultResponse
;
...
@@ -28,7 +29,7 @@ public interface SecondaryCardOrderService extends IService<SecondaryCardOrder>
...
@@ -28,7 +29,7 @@ public interface SecondaryCardOrderService extends IService<SecondaryCardOrder>
* @param secondaryCardOrder 次卡购买记录
* @param secondaryCardOrder 次卡购买记录
* @return 次卡购买记录集合
* @return 次卡购买记录集合
*/
*/
public
List
<
SecondaryCardOrder
>
selectSecondaryCardOrderList
(
SecondaryCardOrder
secondaryCardOrder
);
public
List
<
SecondaryCardOrder
Vo
>
selectSecondaryCardOrderList
(
SecondaryCardOrderVo
secondaryCardOrder
);
/**
/**
* 新增次卡购买记录
* 新增次卡购买记录
...
...
share-system/src/main/java/share/system/service/impl/SecondaryCardLogServiceImpl.java
View file @
5a723c63
...
@@ -5,6 +5,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -5,6 +5,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
share.common.utils.DateUtils
;
import
share.common.utils.DateUtils
;
import
share.system.domain.SecondaryCardLog
;
import
share.system.domain.SecondaryCardLog
;
import
share.system.domain.vo.SecondaryCardLogVo
;
import
share.system.mapper.SecondaryCardLogMapper
;
import
share.system.mapper.SecondaryCardLogMapper
;
import
share.system.service.SecondaryCardLogService
;
import
share.system.service.SecondaryCardLogService
;
...
@@ -39,7 +40,7 @@ public class SecondaryCardLogServiceImpl extends ServiceImpl<SecondaryCardLogMap
...
@@ -39,7 +40,7 @@ public class SecondaryCardLogServiceImpl extends ServiceImpl<SecondaryCardLogMap
* @return 次卡使用记录
* @return 次卡使用记录
*/
*/
@Override
@Override
public
List
<
SecondaryCardLog
>
selectSecondaryCardLogList
(
SecondaryCardLog
secondaryCardLog
)
{
public
List
<
SecondaryCardLog
Vo
>
selectSecondaryCardLogList
(
SecondaryCardLogVo
secondaryCardLog
)
{
return
secondaryCardLogMapper
.
selectSecondaryCardLogList
(
secondaryCardLog
);
return
secondaryCardLogMapper
.
selectSecondaryCardLogList
(
secondaryCardLog
);
}
}
...
...
share-system/src/main/java/share/system/service/impl/SecondaryCardOrderServiceImpl.java
View file @
5a723c63
...
@@ -15,6 +15,7 @@ import share.system.domain.SConsumer;
...
@@ -15,6 +15,7 @@ import share.system.domain.SConsumer;
import
share.system.domain.SecondaryCardConf
;
import
share.system.domain.SecondaryCardConf
;
import
share.system.domain.SecondaryCardOrder
;
import
share.system.domain.SecondaryCardOrder
;
import
share.system.domain.vo.FrontTokenComponent
;
import
share.system.domain.vo.FrontTokenComponent
;
import
share.system.domain.vo.SecondaryCardOrderVo
;
import
share.system.mapper.SecondaryCardOrderMapper
;
import
share.system.mapper.SecondaryCardOrderMapper
;
import
share.system.request.SecondaryCardOrderRequest
;
import
share.system.request.SecondaryCardOrderRequest
;
import
share.system.response.SecondaryCardOrderPayResultResponse
;
import
share.system.response.SecondaryCardOrderPayResultResponse
;
...
@@ -60,7 +61,7 @@ public class SecondaryCardOrderServiceImpl extends ServiceImpl<SecondaryCardOrde
...
@@ -60,7 +61,7 @@ public class SecondaryCardOrderServiceImpl extends ServiceImpl<SecondaryCardOrde
* @return 次卡购买记录
* @return 次卡购买记录
*/
*/
@Override
@Override
public
List
<
SecondaryCardOrder
>
selectSecondaryCardOrderList
(
SecondaryCardOrder
secondaryCardOrder
)
{
public
List
<
SecondaryCardOrder
Vo
>
selectSecondaryCardOrderList
(
SecondaryCardOrderVo
secondaryCardOrder
)
{
return
secondaryCardOrderMapper
.
selectSecondaryCardOrderList
(
secondaryCardOrder
);
return
secondaryCardOrderMapper
.
selectSecondaryCardOrderList
(
secondaryCardOrder
);
}
}
...
...
share-system/src/main/resources/mapper/system/SecondaryCardConfMapper.xml
View file @
5a723c63
...
@@ -54,12 +54,11 @@
...
@@ -54,12 +54,11 @@
c.remark
c.remark
from s_secondary_card_conf c join s_pack p on c.pack_id = p.id
from s_secondary_card_conf c join s_pack p on c.pack_id = p.id
<where>
<where>
<if
test=
"name != null and name != ''"
>
and name like concat('%', #{name}, '%')
</if>
<if
test=
"name != null and name != ''"
>
and c.name like concat('%', #{name}, '%')
</if>
<if
test=
"secondaryCardAmount != null "
>
and secondary_card_amount = #{secondaryCardAmount}
</if>
<if
test=
"secondaryCardAmount != null "
>
and c.secondary_card_amount = #{secondaryCardAmount}
</if>
<if
test=
"packId != null "
>
and pack_id = #{packId}
</if>
<if
test=
"packId != null "
>
and c.pack_id = #{packId}
</if>
<if
test=
"validityPeriod != null "
>
and validity_period = #{validityPeriod}
</if>
<if
test=
"validityPeriod != null "
>
and c.validity_period = #{validityPeriod}
</if>
<if
test=
"number != null "
>
and number = #{number}
</if>
<if
test=
"number != null "
>
and c.number = #{number}
</if>
<if
test=
"isDelete != null "
>
and is_delete = #{isDelete}
</if>
</where>
</where>
</select>
</select>
...
...
share-system/src/main/resources/mapper/system/SecondaryCardLogMapper.xml
View file @
5a723c63
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
<resultMap
type=
"SecondaryCardLogVo"
id=
"SecondaryCardLogResult"
>
<resultMap
type=
"SecondaryCardLogVo"
id=
"SecondaryCardLogResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"id"
column=
"id"
/>
<result
property=
"consumerSecondaryCardId"
column=
"consumer_secondary_card_id"
/>
<result
property=
"consumerSecondaryCardId"
column=
"consumer_secondary_card_id"
/>
<result
property=
"confName"
column=
"conf_name"
/>
<result
property=
"confAmount"
column=
"conf_amount"
/>
<result
property=
"consumerId"
column=
"consumer_id"
/>
<result
property=
"consumerId"
column=
"consumer_id"
/>
<result
property=
"nickName"
column=
"nick_name"
/>
<result
property=
"nickName"
column=
"nick_name"
/>
<result
property=
"avatar"
column=
"avatar"
/>
<result
property=
"avatar"
column=
"avatar"
/>
...
@@ -41,16 +43,18 @@
...
@@ -41,16 +43,18 @@
from s_secondary_card_log
from s_secondary_card_log
</sql>
</sql>
<select
id=
"selectSecondaryCardLogList"
parameterType=
"SecondaryCardLog"
resultMap=
"SecondaryCardLogResult"
>
<select
id=
"selectSecondaryCardLogList"
parameterType=
"SecondaryCardLog
Vo
"
resultMap=
"SecondaryCardLogResult"
>
select l.id,
select l.id,
l.consumer_secondary_card_id,
l.consumer_secondary_card_id,
c1.name as 'conf_name',
c1.secondary_card_amount as 'conf_amount',
l. consumer_id,
l. consumer_id,
c.n
ame as nick_name
,
c.n
ick_name as 'nick_name'
,
c.avatar,
c.avatar,
l.phone,
l.phone,
l.pack_id,
l.pack_id,
p.name as
pack_name
,
p.name as
'pack_name'
,
p.price as
pack_price
,
p.price as
'pack_price'
,
l.usage_count,
l.usage_count,
l.residue_count,
l.residue_count,
l.is_delete,
l.is_delete,
...
@@ -60,6 +64,8 @@
...
@@ -60,6 +64,8 @@
l.update_time,
l.update_time,
l.remark
l.remark
from s_secondary_card_log l join s_pack p on l.pack_id = p.id join s_consumer c on l.consumer_id = c.id
from s_secondary_card_log l join s_pack p on l.pack_id = p.id join s_consumer c on l.consumer_id = c.id
join s_consumer_secondary_card s on l.consumer_secondary_card_id = s.id join s_secondary_card_conf c1 on
s.secondary_card_conf_id = c1.id
<where>
<where>
<if
test=
"consumerSecondaryCardId != null "
>
and l.consumer_secondary_card_id = #{consumerSecondaryCardId}
<if
test=
"consumerSecondaryCardId != null "
>
and l.consumer_secondary_card_id = #{consumerSecondaryCardId}
</if>
</if>
...
...
share-system/src/main/resources/mapper/system/SecondaryCardOrderMapper.xml
View file @
5a723c63
...
@@ -4,15 +4,21 @@
...
@@ -4,15 +4,21 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"share.system.mapper.SecondaryCardOrderMapper"
>
<mapper
namespace=
"share.system.mapper.SecondaryCardOrderMapper"
>
<resultMap
type=
"SecondaryCardOrder"
id=
"SecondaryCardOrderResult"
>
<resultMap
type=
"SecondaryCardOrder
Vo
"
id=
"SecondaryCardOrderResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"id"
column=
"id"
/>
<result
property=
"secondaryCardNo"
column=
"secondary_card_no"
/>
<result
property=
"secondaryCardNo"
column=
"secondary_card_no"
/>
<result
property=
"outTradeNo"
column=
"out_trade_no"
/>
<result
property=
"outTradeNo"
column=
"out_trade_no"
/>
<result
property=
"terminalTrace"
column=
"terminal_trace"
/>
<result
property=
"terminalTrace"
column=
"terminal_trace"
/>
<result
property=
"secondaryCardAmount"
column=
"secondary_card_amount"
/>
<result
property=
"secondaryCardAmount"
column=
"secondary_card_amount"
/>
<result
property=
"secondaryCardConfId"
column=
"secondary_card_conf_id"
/>
<result
property=
"secondaryCardConfId"
column=
"secondary_card_conf_id"
/>
<result
property=
"confName"
column=
"conf_name"
/>
<result
property=
"confAmount"
column=
"conf_amount"
/>
<result
property=
"consumerId"
column=
"consumer_id"
/>
<result
property=
"consumerId"
column=
"consumer_id"
/>
<result
property=
"nickName"
column=
"nick_name"
/>
<result
property=
"avatar"
column=
"avatar"
/>
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"packName"
column=
"pack_name"
/>
<result
property=
"packPrice"
column=
"pack_price"
/>
<result
property=
"payType"
column=
"pay_type"
/>
<result
property=
"payType"
column=
"pay_type"
/>
<result
property=
"payStatus"
column=
"pay_status"
/>
<result
property=
"payStatus"
column=
"pay_status"
/>
<result
property=
"payTime"
column=
"pay_time"
/>
<result
property=
"payTime"
column=
"pay_time"
/>
...
@@ -46,7 +52,31 @@
...
@@ -46,7 +52,31 @@
</sql>
</sql>
<select
id=
"selectSecondaryCardOrderList"
parameterType=
"SecondaryCardOrder"
resultMap=
"SecondaryCardOrderResult"
>
<select
id=
"selectSecondaryCardOrderList"
parameterType=
"SecondaryCardOrder"
resultMap=
"SecondaryCardOrderResult"
>
<include
refid=
"selectSecondaryCardOrderVo"
/>
select o.id,
o.secondary_card_no,
o.out_trade_no,
o.terminal_trace,
o. secondary_card_amount,
o. secondary_card_conf_id,
c.name as 'conf_name',
c.secondary_card_amount as 'conf_amount',
p.name as pack_name,
p.price as pack_price,
o. consumer_id,
c1.nick_name as 'nick_name',
c1.avatar,
o. phone,
o. pay_type,
o. pay_status,
o. pay_time,
o. is_delete,
o. create_by,
o. create_time,
o. update_by,
o. update_time,
o. remark
from s_secondary_card_order o join s_secondary_card_conf c on o.secondary_card_conf_id = c.id
join s_consumer c1 on o.consumer_id = c1.id join s_pack p on p.id = c.pack_id
<where>
<where>
<if
test=
"secondaryCardNo != null and secondaryCardNo != ''"
>
and secondary_card_no = #{secondaryCardNo}
<if
test=
"secondaryCardNo != null and secondaryCardNo != ''"
>
and secondary_card_no = #{secondaryCardNo}
</if>
</if>
...
...
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