记得上下班打卡 | git大法好,push需谨慎

Commit 7d30602d authored by jiangxiulong's avatar jiangxiulong

演出详情 增加完成和总数展示

parent 63edcef8
......@@ -34,6 +34,9 @@ public class KylinOrderRefundBatchesVo implements Serializable {
private BigDecimal totalAlipay;
private BigDecimal totalWepay;
private Integer totalRefundNum;
private Integer totalCompleteRefundNum;
@ApiModelProperty(value = "添加时间")
private LocalDateTime createdAt;
......
......@@ -31,6 +31,16 @@
<div class="form-control-static" th:text="${KylinOrderRefundsBatchVo.totalWepay}">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">总处理数量:</label>
<div class="form-control-static" th:text="${KylinOrderRefundsBatchVo.totalRefundNum}">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">已完成退款数量:</label>
<div class="form-control-static" th:text="${KylinOrderRefundsBatchVo.totalCompleteRefundNum}">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">提交时间:</label>
<div class="form-control-static" th:text="${KylinOrderRefundsBatchVo.createdAt}">
......
......@@ -14,8 +14,10 @@ import com.liquidnet.service.kylin.dto.param.RefundBatchApplyParam;
import com.liquidnet.service.kylin.dto.param.RefundBatchSearchParam;
import com.liquidnet.service.kylin.dto.vo.returns.KylinOrderRefundBatchesVo;
import com.liquidnet.service.kylin.entity.KylinOrderRefundBatches;
import com.liquidnet.service.kylin.entity.KylinOrderRefunds;
import com.liquidnet.service.kylin.entity.KylinPerformances;
import com.liquidnet.service.kylin.mapper.KylinOrderRefundBatchesMapper;
import com.liquidnet.service.kylin.mapper.KylinOrderRefundsMapper;
import com.liquidnet.service.kylin.mapper.KylinOrderTicketsMapper;
import com.liquidnet.service.kylin.mapper.KylinPerformancesMapper;
import org.springframework.beans.BeanUtils;
......@@ -47,6 +49,9 @@ public class KylinRefundPerformancesAdminServiceImpl {
@Autowired
private KylinOrderRefundBatchesMapper kylinOrderRefundBatchesMapper;
@Autowired
private KylinOrderRefundsMapper kylinOrderRefundsMapper;
@Autowired
private KylinPerformancesMapper kylinPerformancesMapper;
......@@ -183,15 +188,29 @@ public class KylinRefundPerformancesAdminServiceImpl {
}
}
public KylinOrderRefundBatchesVo detail(String orderRefundId) {
public KylinOrderRefundBatchesVo detail(String refundBatchId) {
KylinOrderRefundBatches data = kylinOrderRefundBatchesMapper.selectOne(
new UpdateWrapper<KylinOrderRefundBatches>()
.eq("refund_batch_id", orderRefundId)
new QueryWrapper<KylinOrderRefundBatches>()
.eq("refund_batch_id", refundBatchId)
);
KylinOrderRefundBatchesVo kylinOrderRefundBatchesVo = new KylinOrderRefundBatchesVo();
BeanUtils.copyProperties(data, kylinOrderRefundBatchesVo);
Integer totalRefundNum = kylinOrderRefundsMapper.selectCount(
new QueryWrapper<KylinOrderRefunds>()
.eq("order_refund_batches_id", refundBatchId)
);
Integer totalCompleteRefundNum = kylinOrderRefundsMapper.selectCount(
new QueryWrapper<KylinOrderRefunds>()
.eq("order_refund_batches_id", refundBatchId)
.eq("status", KylinTableStatusConst.ORDER_REFUND_STATUS_REFUNDED)
);
kylinOrderRefundBatchesVo.setTotalRefundNum(totalRefundNum);
kylinOrderRefundBatchesVo.setTotalCompleteRefundNum(totalCompleteRefundNum);
return kylinOrderRefundBatchesVo;
}
......
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