Commit 71a9eee6 by 吕明尚

日志增加用户信息

parent 4e69ec0f
...@@ -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.BalanceLog; import share.system.domain.BalanceLog;
import share.system.domain.vo.BalanceLogVo;
import share.system.service.BalanceLogService; import share.system.service.BalanceLogService;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -32,9 +33,9 @@ public class BalanceLogController extends BaseController { ...@@ -32,9 +33,9 @@ public class BalanceLogController extends BaseController {
*/ */
@PreAuthorize("@ss.hasPermi('system:balanceLog:list')") @PreAuthorize("@ss.hasPermi('system:balanceLog:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(BalanceLog balanceLog) { public TableDataInfo list(BalanceLogVo balanceLog) {
startPage(); startPage();
List<BalanceLog> list = balanceLogService.selectBalanceLogList(balanceLog); List<BalanceLogVo> list = balanceLogService.selectBalanceLogList(balanceLog);
return getDataTable(list); return getDataTable(list);
} }
...@@ -44,9 +45,9 @@ public class BalanceLogController extends BaseController { ...@@ -44,9 +45,9 @@ public class BalanceLogController extends BaseController {
@PreAuthorize("@ss.hasPermi('system:balanceLog:export')") @PreAuthorize("@ss.hasPermi('system:balanceLog:export')")
@Log(title = "余额日志", businessType = BusinessType.EXPORT) @Log(title = "余额日志", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, BalanceLog balanceLog) { public void export(HttpServletResponse response, BalanceLogVo balanceLog) {
List<BalanceLog> list = balanceLogService.selectBalanceLogList(balanceLog); List<BalanceLogVo> list = balanceLogService.selectBalanceLogList(balanceLog);
ExcelUtil<BalanceLog> util = new ExcelUtil<BalanceLog>(BalanceLog.class); ExcelUtil<BalanceLogVo> util = new ExcelUtil<BalanceLogVo>(BalanceLogVo.class);
util.exportExcel(response, list, "余额日志数据"); util.exportExcel(response, list, "余额日志数据");
} }
......
...@@ -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.DurationLog; import share.system.domain.DurationLog;
import share.system.domain.vo.DurationLogVo;
import share.system.service.DurationLogService; import share.system.service.DurationLogService;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -32,9 +33,9 @@ public class DurationLogController extends BaseController { ...@@ -32,9 +33,9 @@ public class DurationLogController extends BaseController {
*/ */
@PreAuthorize("@ss.hasPermi('system:durationLog:list')") @PreAuthorize("@ss.hasPermi('system:durationLog:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(DurationLog durationLog) { public TableDataInfo list(DurationLogVo durationLog) {
startPage(); startPage();
List<DurationLog> list = durationLogService.selectDurationLogList(durationLog); List<DurationLogVo> list = durationLogService.selectDurationLogList(durationLog);
return getDataTable(list); return getDataTable(list);
} }
...@@ -44,9 +45,9 @@ public class DurationLogController extends BaseController { ...@@ -44,9 +45,9 @@ public class DurationLogController extends BaseController {
@PreAuthorize("@ss.hasPermi('system:durationLog:export')") @PreAuthorize("@ss.hasPermi('system:durationLog:export')")
@Log(title = "时长日志", businessType = BusinessType.EXPORT) @Log(title = "时长日志", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, DurationLog durationLog) { public void export(HttpServletResponse response, DurationLogVo durationLog) {
List<DurationLog> list = durationLogService.selectDurationLogList(durationLog); List<DurationLogVo> list = durationLogService.selectDurationLogList(durationLog);
ExcelUtil<DurationLog> util = new ExcelUtil<DurationLog>(DurationLog.class); ExcelUtil<DurationLogVo> util = new ExcelUtil<DurationLogVo>(DurationLogVo.class);
util.exportExcel(response, list, "时长日志数据"); util.exportExcel(response, list, "时长日志数据");
} }
......
...@@ -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.IntegralLog; import share.system.domain.IntegralLog;
import share.system.domain.vo.IntegralLogVo;
import share.system.service.IntegralLogService; import share.system.service.IntegralLogService;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -32,9 +33,9 @@ public class IntegralLogController extends BaseController { ...@@ -32,9 +33,9 @@ public class IntegralLogController extends BaseController {
*/ */
@PreAuthorize("@ss.hasPermi('system:integralLog:list')") @PreAuthorize("@ss.hasPermi('system:integralLog:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(IntegralLog integralLog) { public TableDataInfo list(IntegralLogVo integralLog) {
startPage(); startPage();
List<IntegralLog> list = integralLogService.selectIntegralLogList(integralLog); List<IntegralLogVo> list = integralLogService.selectIntegralLogList(integralLog);
return getDataTable(list); return getDataTable(list);
} }
...@@ -44,9 +45,9 @@ public class IntegralLogController extends BaseController { ...@@ -44,9 +45,9 @@ public class IntegralLogController extends BaseController {
@PreAuthorize("@ss.hasPermi('system:integralLog:export')") @PreAuthorize("@ss.hasPermi('system:integralLog:export')")
@Log(title = "积分日志", businessType = BusinessType.EXPORT) @Log(title = "积分日志", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, IntegralLog integralLog) { public void export(HttpServletResponse response, IntegralLogVo integralLog) {
List<IntegralLog> list = integralLogService.selectIntegralLogList(integralLog); List<IntegralLogVo> list = integralLogService.selectIntegralLogList(integralLog);
ExcelUtil<IntegralLog> util = new ExcelUtil<IntegralLog>(IntegralLog.class); ExcelUtil<IntegralLogVo> util = new ExcelUtil<IntegralLogVo>(IntegralLogVo.class);
util.exportExcel(response, list, "积分日志数据"); util.exportExcel(response, list, "积分日志数据");
} }
......
...@@ -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.MemberProgressLog; import share.system.domain.MemberProgressLog;
import share.system.domain.vo.MemberProgressLogVo;
import share.system.service.MemberProgressLogService; import share.system.service.MemberProgressLogService;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -32,9 +33,9 @@ public class MemberProgressLogController extends BaseController { ...@@ -32,9 +33,9 @@ public class MemberProgressLogController extends BaseController {
*/ */
@PreAuthorize("@ss.hasPermi('system:memberProgressLog:list')") @PreAuthorize("@ss.hasPermi('system:memberProgressLog:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(MemberProgressLog memberProgressLog) { public TableDataInfo list(MemberProgressLogVo memberProgressLog) {
startPage(); startPage();
List<MemberProgressLog> list = memberProgressLogService.selectMemberProgressLogList(memberProgressLog); List<MemberProgressLogVo> list = memberProgressLogService.selectMemberProgressLogList(memberProgressLog);
return getDataTable(list); return getDataTable(list);
} }
...@@ -44,9 +45,9 @@ public class MemberProgressLogController extends BaseController { ...@@ -44,9 +45,9 @@ public class MemberProgressLogController extends BaseController {
@PreAuthorize("@ss.hasPermi('system:memberProgressLog:export')") @PreAuthorize("@ss.hasPermi('system:memberProgressLog:export')")
@Log(title = "会员进度日志", businessType = BusinessType.EXPORT) @Log(title = "会员进度日志", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, MemberProgressLog memberProgressLog) { public void export(HttpServletResponse response, MemberProgressLogVo memberProgressLog) {
List<MemberProgressLog> list = memberProgressLogService.selectMemberProgressLogList(memberProgressLog); List<MemberProgressLogVo> list = memberProgressLogService.selectMemberProgressLogList(memberProgressLog);
ExcelUtil<MemberProgressLog> util = new ExcelUtil<MemberProgressLog>(MemberProgressLog.class); ExcelUtil<MemberProgressLogVo> util = new ExcelUtil<MemberProgressLogVo>(MemberProgressLogVo.class);
util.exportExcel(response, list, "会员进度日志数据"); util.exportExcel(response, list, "会员进度日志数据");
} }
......
...@@ -9,6 +9,7 @@ import share.common.core.page.TableDataInfo; ...@@ -9,6 +9,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.BalanceLog; import share.system.domain.BalanceLog;
import share.system.domain.vo.BalanceLogVo;
import share.system.service.BalanceLogService; import share.system.service.BalanceLogService;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -30,9 +31,9 @@ public class BalanceLogController extends BaseController { ...@@ -30,9 +31,9 @@ public class BalanceLogController extends BaseController {
* 查询余额日志列表 * 查询余额日志列表
*/ */
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(BalanceLog balanceLog) { public TableDataInfo list(BalanceLogVo balanceLog) {
startPage(); startPage();
List<BalanceLog> list = balanceLogService.selectBalanceLogList(balanceLog); List<BalanceLogVo> list = balanceLogService.selectBalanceLogList(balanceLog);
return getDataTable(list); return getDataTable(list);
} }
...@@ -41,9 +42,9 @@ public class BalanceLogController extends BaseController { ...@@ -41,9 +42,9 @@ public class BalanceLogController extends BaseController {
*/ */
@Log(title = "余额日志", businessType = BusinessType.EXPORT) @Log(title = "余额日志", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, BalanceLog balanceLog) { public void export(HttpServletResponse response, BalanceLogVo balanceLog) {
List<BalanceLog> list = balanceLogService.selectBalanceLogList(balanceLog); List<BalanceLogVo> list = balanceLogService.selectBalanceLogList(balanceLog);
ExcelUtil<BalanceLog> util = new ExcelUtil<BalanceLog>(BalanceLog.class); ExcelUtil<BalanceLogVo> util = new ExcelUtil<BalanceLogVo>(BalanceLogVo.class);
util.exportExcel(response, list, "余额日志数据"); util.exportExcel(response, list, "余额日志数据");
} }
......
...@@ -9,6 +9,7 @@ import share.common.core.page.TableDataInfo; ...@@ -9,6 +9,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.DurationLog; import share.system.domain.DurationLog;
import share.system.domain.vo.DurationLogVo;
import share.system.service.DurationLogService; import share.system.service.DurationLogService;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -30,9 +31,9 @@ public class DurationLogController extends BaseController { ...@@ -30,9 +31,9 @@ public class DurationLogController extends BaseController {
* 查询时长日志列表 * 查询时长日志列表
*/ */
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(DurationLog durationLog) { public TableDataInfo list(DurationLogVo durationLog) {
startPage(); startPage();
List<DurationLog> list = durationLogService.selectDurationLogList(durationLog); List<DurationLogVo> list = durationLogService.selectDurationLogList(durationLog);
return getDataTable(list); return getDataTable(list);
} }
...@@ -41,9 +42,9 @@ public class DurationLogController extends BaseController { ...@@ -41,9 +42,9 @@ public class DurationLogController extends BaseController {
*/ */
@Log(title = "时长日志", businessType = BusinessType.EXPORT) @Log(title = "时长日志", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, DurationLog durationLog) { public void export(HttpServletResponse response, DurationLogVo durationLog) {
List<DurationLog> list = durationLogService.selectDurationLogList(durationLog); List<DurationLogVo> list = durationLogService.selectDurationLogList(durationLog);
ExcelUtil<DurationLog> util = new ExcelUtil<DurationLog>(DurationLog.class); ExcelUtil<DurationLogVo> util = new ExcelUtil<DurationLogVo>(DurationLogVo.class);
util.exportExcel(response, list, "时长日志数据"); util.exportExcel(response, list, "时长日志数据");
} }
......
...@@ -93,7 +93,6 @@ public class EquityMembersOrderController extends BaseController { ...@@ -93,7 +93,6 @@ public class EquityMembersOrderController extends BaseController {
return toAjax(equityMembersOrderService.deleteEquityMembersOrderByIds(ids)); return toAjax(equityMembersOrderService.deleteEquityMembersOrderByIds(ids));
} }
@Log(title = "权益会员下单", businessType = BusinessType.INSERT)
@PostMapping("/createEquityMembers") @PostMapping("/createEquityMembers")
public R<RechargePayResultResponse> createOrder(@RequestBody @Validated CreateEquityMembersRequest request) { public R<RechargePayResultResponse> createOrder(@RequestBody @Validated CreateEquityMembersRequest request) {
if ("1".equals(redisUtil.frontInOutLogSwitch())) { if ("1".equals(redisUtil.frontInOutLogSwitch())) {
......
...@@ -9,6 +9,7 @@ import share.common.core.page.TableDataInfo; ...@@ -9,6 +9,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.IntegralLog; import share.system.domain.IntegralLog;
import share.system.domain.vo.IntegralLogVo;
import share.system.service.IntegralLogService; import share.system.service.IntegralLogService;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
...@@ -30,9 +31,9 @@ public class IntegralLogController extends BaseController { ...@@ -30,9 +31,9 @@ public class IntegralLogController extends BaseController {
* 查询积分日志列表 * 查询积分日志列表
*/ */
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(IntegralLog integralLog) { public TableDataInfo list(IntegralLogVo integralLog) {
startPage(); startPage();
List<IntegralLog> list = integralLogService.selectIntegralLogList(integralLog); List<IntegralLogVo> list = integralLogService.selectIntegralLogList(integralLog);
return getDataTable(list); return getDataTable(list);
} }
...@@ -41,9 +42,9 @@ public class IntegralLogController extends BaseController { ...@@ -41,9 +42,9 @@ public class IntegralLogController extends BaseController {
*/ */
@Log(title = "积分日志", businessType = BusinessType.EXPORT) @Log(title = "积分日志", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, IntegralLog integralLog) { public void export(HttpServletResponse response, IntegralLogVo integralLog) {
List<IntegralLog> list = integralLogService.selectIntegralLogList(integralLog); List<IntegralLogVo> list = integralLogService.selectIntegralLogList(integralLog);
ExcelUtil<IntegralLog> util = new ExcelUtil<IntegralLog>(IntegralLog.class); ExcelUtil<IntegralLogVo> util = new ExcelUtil<IntegralLogVo>(IntegralLogVo.class);
util.exportExcel(response, list, "积分日志数据"); util.exportExcel(response, list, "积分日志数据");
} }
......
...@@ -92,7 +92,6 @@ public class RechargeController extends BaseController { ...@@ -92,7 +92,6 @@ public class RechargeController extends BaseController {
return toAjax(rechargeService.deleteRechargeByIds(ids)); return toAjax(rechargeService.deleteRechargeByIds(ids));
} }
@Log(title = "充值下单", businessType = BusinessType.INSERT)
@PostMapping("/createRecharge") @PostMapping("/createRecharge")
public R<RechargePayResultResponse> createOrder(@RequestBody @Validated CreateRechargeRequest request) { public R<RechargePayResultResponse> createOrder(@RequestBody @Validated CreateRechargeRequest request) {
if ("1".equals(redisUtil.frontInOutLogSwitch())) { if ("1".equals(redisUtil.frontInOutLogSwitch())) {
......
...@@ -2,6 +2,7 @@ package share.system.domain; ...@@ -2,6 +2,7 @@ package share.system.domain;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
...@@ -19,6 +20,7 @@ import java.util.Date; ...@@ -19,6 +20,7 @@ import java.util.Date;
* @date 2024-06-24 * @date 2024-06-24
*/ */
@Data @Data
@TableName(value = "s_duration_log")
public class DurationLog extends BaseEntity { public class DurationLog extends BaseEntity {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
package share.system.domain.vo;
import lombok.Data;
import share.system.domain.BalanceLog;
@Data
public class BalanceLogVo extends BalanceLog {
private String nickName;
private String avatar;
private String phone;
}
package share.system.domain.vo;
import lombok.Data;
import share.system.domain.DurationLog;
@Data
public class DurationLogVo extends DurationLog {
private String nickName;
private String avatar;
private String phone;
}
package share.system.domain.vo;
import lombok.Data;
import share.system.domain.IntegralLog;
@Data
public class IntegralLogVo extends IntegralLog {
private String nickName;
private String avatar;
private String phone;
}
package share.system.domain.vo;
import lombok.Data;
import share.system.domain.MemberProgressLog;
@Data
public class MemberProgressLogVo extends MemberProgressLog {
private String nickName;
private String avatar;
private String phone;
}
...@@ -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.BalanceLog; import share.system.domain.BalanceLog;
import share.system.domain.vo.BalanceLogVo;
import java.util.List; import java.util.List;
...@@ -26,7 +27,7 @@ public interface BalanceLogMapper extends BaseMapper<BalanceLog> { ...@@ -26,7 +27,7 @@ public interface BalanceLogMapper extends BaseMapper<BalanceLog> {
* @param balanceLog 余额日志 * @param balanceLog 余额日志
* @return 余额日志集合 * @return 余额日志集合
*/ */
public List<BalanceLog> selectBalanceLogList(BalanceLog balanceLog); public List<BalanceLogVo> selectBalanceLogList(BalanceLogVo balanceLog);
/** /**
* 新增余额日志 * 新增余额日志
......
...@@ -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.DurationLog; import share.system.domain.DurationLog;
import share.system.domain.vo.DurationLogVo;
import java.util.List; import java.util.List;
...@@ -26,7 +27,7 @@ public interface DurationLogMapper extends BaseMapper<DurationLog> { ...@@ -26,7 +27,7 @@ public interface DurationLogMapper extends BaseMapper<DurationLog> {
* @param durationLog 时长日志 * @param durationLog 时长日志
* @return 时长日志集合 * @return 时长日志集合
*/ */
public List<DurationLog> selectDurationLogList(DurationLog durationLog); public List<DurationLogVo> selectDurationLogList(DurationLogVo durationLog);
/** /**
* 新增时长日志 * 新增时长日志
......
...@@ -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.IntegralLog; import share.system.domain.IntegralLog;
import share.system.domain.vo.IntegralLogVo;
import java.util.List; import java.util.List;
...@@ -26,7 +27,7 @@ public interface IntegralLogMapper extends BaseMapper<IntegralLog> { ...@@ -26,7 +27,7 @@ public interface IntegralLogMapper extends BaseMapper<IntegralLog> {
* @param integralLog 积分日志 * @param integralLog 积分日志
* @return 积分日志集合 * @return 积分日志集合
*/ */
public List<IntegralLog> selectIntegralLogList(IntegralLog integralLog); public List<IntegralLogVo> selectIntegralLogList(IntegralLogVo integralLog);
/** /**
* 新增积分日志 * 新增积分日志
......
...@@ -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.MemberProgressLog; import share.system.domain.MemberProgressLog;
import share.system.domain.vo.MemberProgressLogVo;
import java.util.List; import java.util.List;
...@@ -26,7 +27,7 @@ public interface MemberProgressLogMapper extends BaseMapper<MemberProgressLog> { ...@@ -26,7 +27,7 @@ public interface MemberProgressLogMapper extends BaseMapper<MemberProgressLog> {
* @param memberProgressLog 会员进度日志 * @param memberProgressLog 会员进度日志
* @return 会员进度日志集合 * @return 会员进度日志集合
*/ */
public List<MemberProgressLog> selectMemberProgressLogList(MemberProgressLog memberProgressLog); public List<MemberProgressLogVo> selectMemberProgressLogList(MemberProgressLogVo memberProgressLog);
/** /**
* 新增会员进度日志 * 新增会员进度日志
......
...@@ -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.BalanceLog; import share.system.domain.BalanceLog;
import share.system.domain.vo.BalanceLogVo;
import java.util.List; import java.util.List;
...@@ -26,7 +27,7 @@ public interface BalanceLogService extends IService<BalanceLog> { ...@@ -26,7 +27,7 @@ public interface BalanceLogService extends IService<BalanceLog> {
* @param balanceLog 余额日志 * @param balanceLog 余额日志
* @return 余额日志集合 * @return 余额日志集合
*/ */
public List<BalanceLog> selectBalanceLogList(BalanceLog balanceLog); public List<BalanceLogVo> selectBalanceLogList(BalanceLogVo balanceLog);
/** /**
* 新增余额日志 * 新增余额日志
......
...@@ -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.DurationLog; import share.system.domain.DurationLog;
import share.system.domain.vo.DurationLogVo;
import java.util.List; import java.util.List;
...@@ -26,7 +27,7 @@ public interface DurationLogService extends IService<DurationLog> { ...@@ -26,7 +27,7 @@ public interface DurationLogService extends IService<DurationLog> {
* @param durationLog 时长日志 * @param durationLog 时长日志
* @return 时长日志集合 * @return 时长日志集合
*/ */
public List<DurationLog> selectDurationLogList(DurationLog durationLog); public List<DurationLogVo> selectDurationLogList(DurationLogVo durationLog);
/** /**
* 新增时长日志 * 新增时长日志
......
...@@ -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.IntegralLog; import share.system.domain.IntegralLog;
import share.system.domain.vo.IntegralLogVo;
import java.util.List; import java.util.List;
...@@ -26,7 +27,7 @@ public interface IntegralLogService extends IService<IntegralLog> { ...@@ -26,7 +27,7 @@ public interface IntegralLogService extends IService<IntegralLog> {
* @param integralLog 积分日志 * @param integralLog 积分日志
* @return 积分日志集合 * @return 积分日志集合
*/ */
public List<IntegralLog> selectIntegralLogList(IntegralLog integralLog); public List<IntegralLogVo> selectIntegralLogList(IntegralLogVo integralLog);
/** /**
* 新增积分日志 * 新增积分日志
......
...@@ -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.MemberProgressLog; import share.system.domain.MemberProgressLog;
import share.system.domain.vo.MemberProgressLogVo;
import java.util.List; import java.util.List;
...@@ -26,7 +27,7 @@ public interface MemberProgressLogService extends IService<MemberProgressLog> { ...@@ -26,7 +27,7 @@ public interface MemberProgressLogService extends IService<MemberProgressLog> {
* @param memberProgressLog 会员进度日志 * @param memberProgressLog 会员进度日志
* @return 会员进度日志集合 * @return 会员进度日志集合
*/ */
public List<MemberProgressLog> selectMemberProgressLogList(MemberProgressLog memberProgressLog); public List<MemberProgressLogVo> selectMemberProgressLogList(MemberProgressLogVo memberProgressLog);
/** /**
* 新增会员进度日志 * 新增会员进度日志
......
...@@ -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.BalanceLog; import share.system.domain.BalanceLog;
import share.system.domain.vo.BalanceLogVo;
import share.system.mapper.BalanceLogMapper; import share.system.mapper.BalanceLogMapper;
import share.system.service.BalanceLogService; import share.system.service.BalanceLogService;
...@@ -39,7 +40,7 @@ public class BalanceLogServiceImpl extends ServiceImpl<BalanceLogMapper, Balance ...@@ -39,7 +40,7 @@ public class BalanceLogServiceImpl extends ServiceImpl<BalanceLogMapper, Balance
* @return 余额日志 * @return 余额日志
*/ */
@Override @Override
public List<BalanceLog> selectBalanceLogList(BalanceLog balanceLog) { public List<BalanceLogVo> selectBalanceLogList(BalanceLogVo balanceLog) {
return balanceLogMapper.selectBalanceLogList(balanceLog); return balanceLogMapper.selectBalanceLogList(balanceLog);
} }
......
...@@ -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.DurationLog; import share.system.domain.DurationLog;
import share.system.domain.vo.DurationLogVo;
import share.system.mapper.DurationLogMapper; import share.system.mapper.DurationLogMapper;
import share.system.service.DurationLogService; import share.system.service.DurationLogService;
...@@ -39,7 +40,7 @@ public class DurationLogServiceImpl extends ServiceImpl<DurationLogMapper, Durat ...@@ -39,7 +40,7 @@ public class DurationLogServiceImpl extends ServiceImpl<DurationLogMapper, Durat
* @return 时长日志 * @return 时长日志
*/ */
@Override @Override
public List<DurationLog> selectDurationLogList(DurationLog durationLog) { public List<DurationLogVo> selectDurationLogList(DurationLogVo durationLog) {
return durationLogMapper.selectDurationLogList(durationLog); return durationLogMapper.selectDurationLogList(durationLog);
} }
......
...@@ -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.IntegralLog; import share.system.domain.IntegralLog;
import share.system.domain.vo.IntegralLogVo;
import share.system.mapper.IntegralLogMapper; import share.system.mapper.IntegralLogMapper;
import share.system.service.IntegralLogService; import share.system.service.IntegralLogService;
...@@ -39,7 +40,7 @@ public class IntegralLogServiceImpl extends ServiceImpl<IntegralLogMapper, Integ ...@@ -39,7 +40,7 @@ public class IntegralLogServiceImpl extends ServiceImpl<IntegralLogMapper, Integ
* @return 积分日志 * @return 积分日志
*/ */
@Override @Override
public List<IntegralLog> selectIntegralLogList(IntegralLog integralLog) { public List<IntegralLogVo> selectIntegralLogList(IntegralLogVo integralLog) {
return integralLogMapper.selectIntegralLogList(integralLog); return integralLogMapper.selectIntegralLogList(integralLog);
} }
......
...@@ -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.MemberProgressLog; import share.system.domain.MemberProgressLog;
import share.system.domain.vo.MemberProgressLogVo;
import share.system.mapper.MemberProgressLogMapper; import share.system.mapper.MemberProgressLogMapper;
import share.system.service.MemberProgressLogService; import share.system.service.MemberProgressLogService;
...@@ -39,7 +40,7 @@ public class MemberProgressLogServiceImpl extends ServiceImpl<MemberProgressLogM ...@@ -39,7 +40,7 @@ public class MemberProgressLogServiceImpl extends ServiceImpl<MemberProgressLogM
* @return 会员进度日志 * @return 会员进度日志
*/ */
@Override @Override
public List<MemberProgressLog> selectMemberProgressLogList(MemberProgressLog memberProgressLog) { public List<MemberProgressLogVo> selectMemberProgressLogList(MemberProgressLogVo memberProgressLog) {
return memberProgressLogMapper.selectMemberProgressLogList(memberProgressLog); return memberProgressLogMapper.selectMemberProgressLogList(memberProgressLog);
} }
......
...@@ -4,9 +4,12 @@ ...@@ -4,9 +4,12 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="share.system.mapper.BalanceLogMapper"> <mapper namespace="share.system.mapper.BalanceLogMapper">
<resultMap type="BalanceLog" id="BalanceLogResult"> <resultMap type="BalanceLogVo" id="BalanceLogResult">
<result property="id" column="id"/> <result property="id" column="id"/>
<result property="consumerId" column="consumer_id"/> <result property="consumerId" column="consumer_id"/>
<result property="nickName" column="nick_name"/>
<result property="phone" column="phone"/>
<result property="avatar" column="avatar"/>
<result property="variableAmount" column="variable_amount"/> <result property="variableAmount" column="variable_amount"/>
<result property="currentBalance" column="current_balance"/> <result property="currentBalance" column="current_balance"/>
<result property="operationType" column="operation_type"/> <result property="operationType" column="operation_type"/>
...@@ -35,15 +38,34 @@ ...@@ -35,15 +38,34 @@
from s_balance_log from s_balance_log
</sql> </sql>
<select id="selectBalanceLogList" parameterType="BalanceLog" resultMap="BalanceLogResult"> <select id="selectBalanceLogList" parameterType="BalanceLogVo" resultMap="BalanceLogResult">
<include refid="selectBalanceLogVo"/> select b.id,
b.consumer_id,
c.nick_name,
c.phone,
c.avatar,
b.variable_amount,
b.current_balance,
b.operation_type,
b.operation_time,
b. is_delete,
b. create_by,
b. create_time,
b. update_by,
b.update_time,
b. remark
from s_balance_log b join s_consumer c on b.consumer_id = c.id
<where> <where>
<if test="consumerId != null ">and consumer_id = #{consumerId}</if> <if test="nickName != null and nickName != ''">and c.nick_name like concat('%', #{nickName},'%')
<if test="variableAmount != null ">and variable_amount = #{variableAmount}</if> </if>
<if test="currentBalance != null ">and current_balance = #{currentBalance}</if> <if test="phone != null and phone != ''">and c.phone like concat('%', #{phone},'%')
<if test="operationType != null ">and operation_type = #{operationType}</if> </if>
<if test="operationTime != null ">and operation_time = #{operationTime}</if> <if test="consumerId != null ">and b.consumer_id = #{consumerId}</if>
<if test="isDelete != null ">and is_delete = #{isDelete}</if> <if test="variableAmount != null ">and b.variable_amount = #{variableAmount}</if>
<if test="currentBalance != null ">and b.current_balance = #{currentBalance}</if>
<if test="operationType != null ">and b.operation_type = #{operationType}</if>
<if test="operationTime != null ">and b.operation_time = #{operationTime}</if>
<if test="isDelete != null ">and b.is_delete = #{isDelete}</if>
</where> </where>
</select> </select>
......
...@@ -4,9 +4,12 @@ ...@@ -4,9 +4,12 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="share.system.mapper.DurationLogMapper"> <mapper namespace="share.system.mapper.DurationLogMapper">
<resultMap type="DurationLog" id="DurationLogResult"> <resultMap type="DurationLogVo" id="DurationLogResult">
<result property="id" column="id"/> <result property="id" column="id"/>
<result property="consumerId" column="consumer_id"/> <result property="consumerId" column="consumer_id"/>
<result property="nickName" column="nick_name"/>
<result property="phone" column="phone"/>
<result property="avatar" column="avatar"/>
<result property="variableDuration" column="variable_duration"/> <result property="variableDuration" column="variable_duration"/>
<result property="currentDuration" column="current_duration"/> <result property="currentDuration" column="current_duration"/>
<result property="operationType" column="operation_type"/> <result property="operationType" column="operation_type"/>
...@@ -35,15 +38,34 @@ ...@@ -35,15 +38,34 @@
from s_duration_log from s_duration_log
</sql> </sql>
<select id="selectDurationLogList" parameterType="DurationLog" resultMap="DurationLogResult"> <select id="selectDurationLogList" parameterType="DurationLogVo" resultMap="DurationLogResult">
<include refid="selectDurationLogVo"/> select d.id,
d.consumer_id,
c.nick_name,
c.phone,
c.avatar,
d.variable_duration,
d.current_duration,
d.operation_type,
d.operation_time,
d.is_delete,
d.create_by,
d.create_time,
d.update_by,
d.update_time,
d.remark
from s_duration_log d join s_consumer c on d.consumer_id = c.id
<where> <where>
<if test="consumerId != null ">and consumer_id = #{consumerId}</if> <if test="nickName != null and nickName != ''">and c.nick_name like concat('%', #{nickName},'%')
<if test="variableDuration != null ">and variable_duration = #{variableDuration}</if> </if>
<if test="currentDuration != null ">and current_duration = #{currentDuration}</if> <if test="phone != null and phone != ''">and c.phone like concat('%', #{phone},'%')
<if test="operationType != null ">and operation_type = #{operationType}</if> </if>
<if test="operationTime != null ">and operation_time = #{operationTime}</if> <if test="consumerId != null ">and d.consumer_id = #{consumerId}</if>
<if test="isDelete != null ">and is_delete = #{isDelete}</if> <if test="variableDuration != null ">and d.variable_duration = #{variableDuration}</if>
<if test="currentDuration != null ">and d.current_duration = #{currentDuration}</if>
<if test="operationType != null ">and d.operation_type = #{operationType}</if>
<if test="operationTime != null ">and d.operation_time = #{operationTime}</if>
<if test="isDelete != null ">and d.is_delete = #{isDelete}</if>
</where> </where>
</select> </select>
......
...@@ -4,9 +4,12 @@ ...@@ -4,9 +4,12 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="share.system.mapper.IntegralLogMapper"> <mapper namespace="share.system.mapper.IntegralLogMapper">
<resultMap type="IntegralLog" id="IntegralLogResult"> <resultMap type="IntegralLogVo" id="IntegralLogResult">
<result property="id" column="id"/> <result property="id" column="id"/>
<result property="consumerId" column="consumer_id"/> <result property="consumerId" column="consumer_id"/>
<result property="nickName" column="nick_name"/>
<result property="phone" column="phone"/>
<result property="avatar" column="avatar"/>
<result property="variableIntegral" column="variable_integral"/> <result property="variableIntegral" column="variable_integral"/>
<result property="currentIntegral" column="current_integral"/> <result property="currentIntegral" column="current_integral"/>
<result property="operationType" column="operation_type"/> <result property="operationType" column="operation_type"/>
...@@ -36,14 +39,33 @@ ...@@ -36,14 +39,33 @@
</sql> </sql>
<select id="selectIntegralLogList" parameterType="IntegralLog" resultMap="IntegralLogResult"> <select id="selectIntegralLogList" parameterType="IntegralLog" resultMap="IntegralLogResult">
<include refid="selectIntegralLogVo"/> select i.id,
i. consumer_id,
c.nick_name,
c.phone,
c.avatar,
i.variable_integral,
i.current_integral,
i.operation_type,
i.operation_time,
i.is_delete,
i.create_by,
i.create_time,
i.update_by,
i.update_time,
i.remark
from s_integral_log i join s_consumer c on i.consumer_id = c.id
<where> <where>
<if test="consumerId != null ">and consumer_id = #{consumerId}</if> <if test="nickName != null and nickName != ''">and c.nick_name like concat('%', #{nickName},'%')
<if test="variableIntegral != null ">and variable_integral = #{variableIntegral}</if> </if>
<if test="currentIntegral != null ">and current_integral = #{currentIntegral}</if> <if test="phone != null and phone != ''">and c.phone like concat('%', #{phone},'%')
<if test="operationType != null ">and operation_type = #{operationType}</if> </if>
<if test="operationTime != null ">and operation_time = #{operationTime}</if> <if test="consumerId != null ">and i.consumer_id = #{consumerId}</if>
<if test="isDelete != null ">and is_delete = #{isDelete}</if> <if test="variableIntegral != null ">and i.variable_integral = #{variableIntegral}</if>
<if test="currentIntegral != null ">and i.current_integral = #{currentIntegral}</if>
<if test="operationType != null ">and i.operation_type = #{operationType}</if>
<if test="operationTime != null ">and i.operation_time = #{operationTime}</if>
<if test="isDelete != null ">and i.is_delete = #{isDelete}</if>
</where> </where>
</select> </select>
......
...@@ -4,9 +4,12 @@ ...@@ -4,9 +4,12 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="share.system.mapper.MemberProgressLogMapper"> <mapper namespace="share.system.mapper.MemberProgressLogMapper">
<resultMap type="MemberProgressLog" id="MemberProgressLogResult"> <resultMap type="MemberProgressLogVo" id="MemberProgressLogResult">
<result property="id" column="id"/> <result property="id" column="id"/>
<result property="consumerId" column="consumer_id"/> <result property="consumerId" column="consumer_id"/>
<result property="nickName" column="nick_name"/>
<result property="phone" column="phone"/>
<result property="avatar" column="avatar"/>
<result property="variableProgress" column="variable_progress"/> <result property="variableProgress" column="variable_progress"/>
<result property="currentProgress" column="current_progress"/> <result property="currentProgress" column="current_progress"/>
<result property="operationType" column="operation_type"/> <result property="operationType" column="operation_type"/>
...@@ -35,15 +38,34 @@ ...@@ -35,15 +38,34 @@
from s_member_progress_log from s_member_progress_log
</sql> </sql>
<select id="selectMemberProgressLogList" parameterType="MemberProgressLog" resultMap="MemberProgressLogResult"> <select id="selectMemberProgressLogList" parameterType="MemberProgressLogVo" resultMap="MemberProgressLogResult">
<include refid="selectMemberProgressLogVo"/> select m.id,
m.consumer_id,
c.nick_name,
c.phone,
c.avatar,
m.variable_progress,
m.current_progress,
m.operation_type,
m.operation_time,
m.is_delete,
m.create_by,
m.create_time,
m.update_by,
m.update_time,
m.remark
from s_member_progress_log m join s_consumer c on m.consumer_id = c.id
<where> <where>
<if test="consumerId != null ">and consumer_id = #{consumerId}</if> <if test="nickName != null and nickName != ''">and c.nick_name like concat('%', #{nickName},'%')
<if test="variableProgress != null ">and variable_progress = #{variableProgress}</if> </if>
<if test="currentProgress != null ">and current_progress = #{currentProgress}</if> <if test="phone != null and phone != ''">and c.phone like concat('%', #{phone},'%')
<if test="operationType != null ">and operation_type = #{operationType}</if> </if>
<if test="operationTime != null ">and operation_time = #{operationTime}</if> <if test="consumerId != null ">and m.consumer_id = #{consumerId}</if>
<if test="isDelete != null ">and is_delete = #{isDelete}</if> <if test="variableProgress != null ">and m.variable_progress = #{variableProgress}</if>
<if test="currentProgress != null ">and m.current_progress = #{currentProgress}</if>
<if test="operationType != null ">and m.operation_type = #{operationType}</if>
<if test="operationTime != null ">and m.operation_time = #{operationTime}</if>
<if test="isDelete != null ">and m.is_delete = #{isDelete}</if>
</where> </where>
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment