package com.zhongzheng.controller.distribution; import java.util.List; import java.util.Arrays; import com.zhongzheng.common.utils.ServletUtils; import com.zhongzheng.framework.web.service.SellerTokenService; import com.zhongzheng.modules.distribution.bo.DistributionCashLogQueryBo; import com.zhongzheng.modules.distribution.service.IDistributionCashLogService; import com.zhongzheng.modules.distribution.vo.DistributionCashLogVo; import com.zhongzheng.modules.user.entity.ClientLoginSeller; import lombok.RequiredArgsConstructor; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.zhongzheng.common.annotation.Log; import com.zhongzheng.common.core.controller.BaseController; import com.zhongzheng.common.core.page.TableDataInfo; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; /** * 业务员金额操作日志Controller * * @author ruoyi * @date 2023-03-25 */ @Api(value = "业务员金额操作日志控制器", tags = {"业务员金额操作日志管理"}) @RequiredArgsConstructor(onConstructor_ = @Autowired) @RestController @RequestMapping("/distribution/cash/log") public class DistributionCashLogController extends BaseController { private final IDistributionCashLogService iDistributionCashLogService; private final SellerTokenService sellerTokenService; /** * 查询业务员金额操作日志列表 */ @ApiOperation("查询业务员佣金列表") @PreAuthorize("@ss.hasPermi('system:log:list')") @GetMapping("/fromOrderCashList") public TableDataInfo fromOrderCashList(DistributionCashLogQueryBo bo) { ClientLoginSeller loginUser = sellerTokenService.getLoginUser(ServletUtils.getRequest()); bo.setSellerId(loginUser.getSeller().getSellerId()); startPage(); List list = iDistributionCashLogService.fromOrderCashList(bo); return getDataTable(list); } }