商家余额记录接口

This commit is contained in:
张松
2025-10-28 15:59:16 +08:00
parent fc7ebf5922
commit 5f78e3e0c2
3 changed files with 10 additions and 4 deletions

View File

@@ -30,12 +30,14 @@ import java.util.Map;
public class MkDistributionAmountFlowServiceImpl extends ServiceImpl<MkDistributionAmountFlowMapper, MkDistributionAmountFlow> implements MkDistributionAmountFlowService{
@Override
public Map<String, Object> pageInfo(Long shopId, String type, String key) {
public Map<String, Object> pageInfo(Long shopId, String type, String key, LocalDateTime startTime, LocalDateTime endTime) {
QueryWrapper queryWrapper = new MyQueryWrapper()
.selectAll(MkDistributionAmountFlow.class)
.leftJoin(OrderInfo.class).on(OrderInfo::getId, MkDistributionAmountFlow::getSourceId)
.leftJoin(ShopUser.class).on(ShopUser::getId, OrderInfo::getUserId)
.eq(MkDistributionAmountFlow::getShopId, shopId)
.le(MkDistributionAmountFlow::getCreateTime, endTime)
.ge(MkDistributionAmountFlow::getCreateTime, startTime)
.select(OrderInfo::getOrderNo);
if (StrUtil.isNotBlank(type)) {
queryWrapper.eq(MkDistributionAmountFlow::getType, type);