分销修改
This commit is contained in:
@@ -123,7 +123,7 @@ public class DistributionController {
|
||||
@GetMapping("/withdrawFlow")
|
||||
public CzgResult<Page<MkDistributionWithdrawFlow>> withdrawPageInfo(@RequestParam(required = false) Long userId, @RequestParam(required = false) String key,
|
||||
@RequestParam(required = false) String startTime, @RequestParam(required = false) String endTime) {
|
||||
return CzgResult.success(withdrawFlowService.withdrawPageInfo(StpKit.USER.getShopId(), userId, StrUtil.isBlank(startTime) ? null : DateUtil.parseLocalDateTime(startTime),
|
||||
return CzgResult.success(withdrawFlowService.withdrawPageInfo(userId, StrUtil.isBlank(startTime) ? null : DateUtil.parseLocalDateTime(startTime),
|
||||
StrUtil.isBlank(endTime) ? null : DateUtil.parseLocalDateTime(endTime), key));
|
||||
}
|
||||
|
||||
|
||||
@@ -16,5 +16,5 @@ public interface MkDistributionWithdrawFlowService extends IService<MkDistributi
|
||||
|
||||
Page<MkDistributionWithdrawFlow> pageInfo(long userId);
|
||||
|
||||
Page<MkDistributionWithdrawFlow> withdrawPageInfo(Long shopId, Long userId, LocalDateTime startTime, LocalDateTime endTime, String key);
|
||||
Page<MkDistributionWithdrawFlow> withdrawPageInfo(Long userId, LocalDateTime startTime, LocalDateTime endTime, String key);
|
||||
}
|
||||
|
||||
@@ -34,12 +34,12 @@ public class MkDistributionWithdrawFlowServiceImpl extends ServiceImpl<MkDistrib
|
||||
}
|
||||
|
||||
@Override
|
||||
public Page<MkDistributionWithdrawFlow> withdrawPageInfo(Long shopId, Long userId, LocalDateTime startTime, LocalDateTime endTime, String key) {
|
||||
public Page<MkDistributionWithdrawFlow> withdrawPageInfo(Long userId, LocalDateTime startTime, LocalDateTime endTime, String key) {
|
||||
QueryWrapper queryWrapper = new MyQueryWrapper()
|
||||
.selectAll(MkDistributionWithdrawFlow.class)
|
||||
.leftJoin(UserInfo.class).on(UserInfo::getId, MkDistributionWithdrawFlow::getUserId)
|
||||
.select(UserInfo::getNickName, UserInfo::getPhone)
|
||||
.eq(MkDistributionWithdrawFlow::getShopId, shopId).eq(MkDistributionWithdrawFlow::getUserId, userId)
|
||||
.eq(MkDistributionWithdrawFlow::getUserId, userId)
|
||||
.ge(MkDistributionWithdrawFlow::getCreateTime, startTime)
|
||||
.le(MkDistributionWithdrawFlow::getCreateTime, endTime);
|
||||
if (StrUtil.isNotBlank(key)){
|
||||
|
||||
Reference in New Issue
Block a user