selectPayDetails app sql查询缩小查询范围
This commit is contained in:
@@ -197,7 +197,7 @@ public class CashController {
|
||||
@ApiOperation("查询提现记录列表")
|
||||
@ResponseBody
|
||||
public Result selectHelpProfit(int page, int limit, CashOut cashOut) {
|
||||
return Result.success().put("data", cashOutService.selectCashOutList(page, limit, cashOut));
|
||||
return Result.success().put("data", cashOutService.selectCashOutList(page, limit, cashOut, false));
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/excelPayDetails", method = RequestMethod.GET)
|
||||
|
||||
@@ -66,7 +66,7 @@ public class AppCashController {
|
||||
public Result selectHelpProfit(int page, int limit, @RequestAttribute("userId") Long userId) {
|
||||
CashOut cashOut = new CashOut();
|
||||
cashOut.setUserId(userId);
|
||||
PageUtils pageUtils = cashOutService.selectCashOutList(page, limit, cashOut);
|
||||
PageUtils pageUtils = cashOutService.selectCashOutList(page, limit, cashOut, true);
|
||||
return Result.success().put("data", pageUtils);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public interface CashOutDao extends BaseMapper<CashOut> {
|
||||
|
||||
Double selectMayMoney(@Param("userId") Long userId);
|
||||
|
||||
IPage<CashOut> selectCashOutPage(Page<CashOut> page, CashOut cashOut);
|
||||
IPage<CashOut> selectCashOutPage(Page<CashOut> page, CashOut cashOut,@Param("isApp") boolean isApp);
|
||||
|
||||
List<CashOut> selectCashOutList(@Param("cashOut") CashOut cashOut);
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import java.util.Map;
|
||||
|
||||
public interface CashOutService {
|
||||
|
||||
PageUtils selectCashOutList(Integer page, Integer limit, CashOut cashOut);
|
||||
PageUtils selectCashOutList(Integer page, Integer limit, CashOut cashOut, boolean isApp);
|
||||
|
||||
ExcelData excelPayDetails(CashOut cashOut);
|
||||
|
||||
|
||||
@@ -106,8 +106,8 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageUtils selectCashOutList(Integer page, Integer limit, CashOut cashOut) {
|
||||
return new PageUtils(baseMapper.selectCashOutPage(new Page<>(page, limit), cashOut));
|
||||
public PageUtils selectCashOutList(Integer page, Integer limit, CashOut cashOut, boolean isApp) {
|
||||
return new PageUtils(baseMapper.selectCashOutPage(new Page<>(page, limit), cashOut, isApp));
|
||||
}
|
||||
|
||||
|
||||
@@ -550,7 +550,7 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
|
||||
//cashOut.setState(3);
|
||||
long pageNum = proxy.getLong(Constant.PAGE, 1L);
|
||||
long pageSize = proxy.getLong(Constant.LIMIT, 10L);
|
||||
IPage<CashOut> page = baseMapper.selectCashOutPage(new Page<>(pageNum, pageSize), cashOut);
|
||||
IPage<CashOut> page = baseMapper.selectCashOutPage(new Page<>(pageNum, pageSize), cashOut, false);
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user