Commit 53383770 by 吕明尚

Merge branch 'refs/heads/dev' into test

parents ecdce917 36d97a0a
...@@ -21,7 +21,7 @@ import java.util.List; ...@@ -21,7 +21,7 @@ import java.util.List;
* @date 2024-06-24 * @date 2024-06-24
*/ */
@RestController @RestController
@RequestMapping("/system/durationLog") @RequestMapping("/durationLog")
public class DurationLogController extends BaseController { public class DurationLogController extends BaseController {
@Autowired @Autowired
private DurationLogService durationLogService; private DurationLogService durationLogService;
......
...@@ -12,6 +12,7 @@ import share.common.core.domain.R; ...@@ -12,6 +12,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.enums.BusinessType; import share.common.enums.BusinessType;
import share.common.enums.YesNoEnum;
import share.common.utils.JsonConvertUtil; import share.common.utils.JsonConvertUtil;
import share.system.domain.SConsumer; import share.system.domain.SConsumer;
import share.system.domain.vo.EquityMembersOrderVo; import share.system.domain.vo.EquityMembersOrderVo;
...@@ -45,6 +46,7 @@ public class EquityMembersOrderController extends BaseController { ...@@ -45,6 +46,7 @@ public class EquityMembersOrderController extends BaseController {
startPage(); startPage();
SConsumer user = FrontTokenComponent.getWxSConsumerEntry(); SConsumer user = FrontTokenComponent.getWxSConsumerEntry();
equityMembersOrder.setConsumerId(user.getId()); equityMembersOrder.setConsumerId(user.getId());
equityMembersOrder.setPayStatus(YesNoEnum.yes.getIndex());
List<EquityMembersOrderVo> list = equityMembersOrderService.selectEquityMembersOrderList(equityMembersOrder); List<EquityMembersOrderVo> list = equityMembersOrderService.selectEquityMembersOrderList(equityMembersOrder);
return getDataTable(list); return getDataTable(list);
} }
......
...@@ -10,6 +10,7 @@ import share.common.core.domain.AjaxResult; ...@@ -10,6 +10,7 @@ import share.common.core.domain.AjaxResult;
import share.common.core.domain.R; 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.enums.YesNoEnum;
import share.common.utils.JsonConvertUtil; import share.common.utils.JsonConvertUtil;
import share.system.domain.SConsumer; import share.system.domain.SConsumer;
import share.system.domain.vo.FrontTokenComponent; import share.system.domain.vo.FrontTokenComponent;
...@@ -43,6 +44,7 @@ public class RechargeController extends BaseController { ...@@ -43,6 +44,7 @@ public class RechargeController extends BaseController {
startPage(); startPage();
SConsumer user = FrontTokenComponent.getWxSConsumerEntry(); SConsumer user = FrontTokenComponent.getWxSConsumerEntry();
recharge.setConsumerId(user.getId()); recharge.setConsumerId(user.getId());
recharge.setStatus(YesNoEnum.yes.getIndex());
List<RechargeVo> list = rechargeService.selectRechargeList(recharge); List<RechargeVo> list = rechargeService.selectRechargeList(recharge);
return getDataTable(list); return getDataTable(list);
} }
......
...@@ -42,6 +42,9 @@ public class ComputedOrderPriceResponse implements Serializable { ...@@ -42,6 +42,9 @@ public class ComputedOrderPriceResponse implements Serializable {
@ApiModelProperty(value = "折扣比例") @ApiModelProperty(value = "折扣比例")
private BigDecimal discountRatio; private BigDecimal discountRatio;
@ApiModelProperty(value = "可用时长")
private BigDecimal availableDuration;
//使用时长 //使用时长
@ApiModelProperty(value = "使用时长") @ApiModelProperty(value = "使用时长")
private BigDecimal duration; private BigDecimal duration;
...@@ -50,6 +53,9 @@ public class ComputedOrderPriceResponse implements Serializable { ...@@ -50,6 +53,9 @@ public class ComputedOrderPriceResponse implements Serializable {
@ApiModelProperty(value = "剩余时长") @ApiModelProperty(value = "剩余时长")
private BigDecimal remainingDuration; private BigDecimal remainingDuration;
@ApiModelProperty(value = "可用余额")
private BigDecimal availableBalance;
//使用余额 //使用余额
@ApiModelProperty(value = "使用余额") @ApiModelProperty(value = "使用余额")
private BigDecimal balance; private BigDecimal balance;
......
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
<if test="operationTime != null ">and b.operation_time = #{operationTime}</if> <if test="operationTime != null ">and b.operation_time = #{operationTime}</if>
<if test="isDelete != null ">and b.is_delete = #{isDelete}</if> <if test="isDelete != null ">and b.is_delete = #{isDelete}</if>
</where> </where>
ORDER BY b.operation_time DESC
</select> </select>
<select id="selectBalanceLogById" parameterType="Long" resultMap="BalanceLogResult"> <select id="selectBalanceLogById" parameterType="Long" resultMap="BalanceLogResult">
......
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
<if test="operationTime != null ">and d.operation_time = #{operationTime}</if> <if test="operationTime != null ">and d.operation_time = #{operationTime}</if>
<if test="isDelete != null ">and d.is_delete = #{isDelete}</if> <if test="isDelete != null ">and d.is_delete = #{isDelete}</if>
</where> </where>
ORDER BY d.operation_time DESC
</select> </select>
<select id="selectDurationLogById" parameterType="Long" resultMap="DurationLogResult"> <select id="selectDurationLogById" parameterType="Long" resultMap="DurationLogResult">
......
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
<if test="operationTime != null ">and i.operation_time = #{operationTime}</if> <if test="operationTime != null ">and i.operation_time = #{operationTime}</if>
<if test="isDelete != null ">and i.is_delete = #{isDelete}</if> <if test="isDelete != null ">and i.is_delete = #{isDelete}</if>
</where> </where>
ORDER BY i.operation_time DESC
</select> </select>
<select id="selectIntegralLogById" parameterType="Long" resultMap="IntegralLogResult"> <select id="selectIntegralLogById" parameterType="Long" resultMap="IntegralLogResult">
......
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
<if test="operationTime != null ">and m.operation_time = #{operationTime}</if> <if test="operationTime != null ">and m.operation_time = #{operationTime}</if>
<if test="isDelete != null ">and m.is_delete = #{isDelete}</if> <if test="isDelete != null ">and m.is_delete = #{isDelete}</if>
</where> </where>
ORDER BY m.operation_time DESC
</select> </select>
<select id="selectMemberProgressLogById" parameterType="Long" resultMap="MemberProgressLogResult"> <select id="selectMemberProgressLogById" parameterType="Long" resultMap="MemberProgressLogResult">
......
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