登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
Gitee AI
NEW
我知道了
查看详情
登录
注册
代码拉取完成,页面将自动刷新
开源项目
>
程序开发
>
工作流
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
233
Star
3K
Fork
1.7K
KonBAI
/
RuoYi-Flowable-Plus
代码
Issues
101
Pull Requests
1
Wiki
统计
流水线
服务
Gitee Pages
JavaDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
我知道了,不再自动展开
更新失败,请稍后重试!
Issues
/
详情
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
分页问题
待办的
#I94DLM
阿明lucky
创建于
2024-02-28 14:01
### 使用版本(未按照模板填写直接删除) - jdk版本(带上尾号): 1.8.0_202 - 框架版本(项目启动时输出的版本号): RuoYi-Flowable-Plus Application Version: 0.8.3 (v2.7.11) 在Mapper.xml中自己写了一个比较复杂的SQL,不分页的。功能正常,因为数据量太大,加载时间过慢,想用分页方式来实现快速加载,现在有问题是不知道怎样用默认框架实现分页功能。代码如下: 1、Mapper.xml中的代码: <select id="get67prabill" parameterType="Map" resultMap="PraybillResult"> select pb.cpraybillid,pbb.cpraybill_bid,pb.vpraycode, iv.invcode, iv.invname , iv.invspec , pbb.vdef8 as material, me.measname, pbb.nsuggestprice, pbb.npraynum, pb.vdef20 as purprocess, pbb.crowno, pb.dauditdate, su.user_name as ncusername, gs.unitname as unitshortname, pb.vmemo, bs1.jobcode || bs1.jobname as jobname, wmsys.wm_concat( gs.unitshortname || bdre.deptname || sure.user_name || reb.nnum || me.measname || ' ') as plansource, bs.jobcode || bs.jobname || ' ' as reqinformation,'67' as syscode,gs.pk_corp FROM po_praybill_b pbb INNER JOIN po_praybill pb ON pb.cpraybillid = pbb.cpraybillid INNER JOIN bd_corp gs ON gs.pk_corp = pbb.pk_corp LEFT JOIN bd_invbasdoc iv ON pbb.cbaseid = iv.pk_invbasdoc LEFT JOIN bd_measdoc me ON me.pk_measdoc = iv.pk_measdoc LEFT JOIN sm_user su ON su.cuserid = pb.coperator LEFT JOIN po_requireapp_b reb ON reb.csourcebid2 = pbb.cpraybill_bid LEFT JOIN po_requireapp re ON re.crequireappid =reb.crequireappid LEFT JOIN sm_user sure ON sure.cuserid = re.coperator LEFT JOIN bd_deptdoc bdre ON bdre.pk_deptdoc = reb.capplydeptid LEFT JOIN bd_jobmngfil bm ON bm.pk_jobmngfil = reb.cprojectid LEFT JOIN bd_jobbasfil bs ON bs.pk_jobbasfil = bm.pk_jobbasfil LEFT JOIN bd_jobmngfil bm1 ON bm1.pk_jobmngfil = pbb.cprojectid LEFT JOIN bd_jobbasfil bs1 ON bs1.pk_jobbasfil = bm1.pk_jobbasfil WHERE pb.dr = 0 AND pbb.dr = 0 <trim> <if test="pkCorp != null "> AND pb.pk_corp = #{pkCorp} </if> <if test="invcode != null and invcode !=''"> AND iv.invcode like #{invcode} </if> <if test="vpraycode != null and vpraycode !=''"> AND pb.vpraycode like #{vpraycode} </if> </trim> and (pbb.vdef9 is null or pbb.vdef9='') AND pbb.npraynum - NVL(pbb.naccumulatenum, 0) > 0 AND pb.ibillstatus = 3 AND pb.dauditdate <![CDATA[ >= ]]>#{startDate} AND pb.dauditdate <![CDATA[ <= ]]>#{endDate} AND pbb.cbaseid IN ( SELECT inv.pk_invbasdoc FROM bd_invbasdoc inv WHERE pk_invcl IN ( SELECT cl.resource_data_id FROM sm_power_invcl cl WHERE (cl.pk_corp = '0001' OR cl.pk_corp = '1002') AND cl.pk_role IN (SELECT ro.pk_role from sm_user_role ro inner join sm_user tuser on (tuser.cuserid=ro.cuserid) WHERE tuser.user_code = #{userCode} AND (ro.pk_corp = '0001' OR ro.pk_corp = '1002') ) ) ) group by pb.cpraybillid, pbb.cpraybill_bid, pb.vpraycode, iv.invcode, iv.invname, iv.invspec, pbb.vdef8, me.measname, pbb.nsuggestprice, pbb.npraynum, pb.vdef20, pbb.crowno, pb.dauditdate, su.user_name, gs.unitname, pb.vmemo, bs1.jobcode || bs1.jobname , bs.jobcode || bs.jobname,gs.pk_corp order by pb.cpraybillid, pbb.cpraybill_bid,to_number(pbb.crowno) </select> Mapper类: List<PraybillVo> get67prabill(PraybillQuery praybill); service类: public List<PraybillVo> get67prabill(PraybillQuery praybill){ return baseMapper.get67prabill(praybill); } 请问我应该怎样调用我自己的mapper中的SQL呢? 谢谢。
### 使用版本(未按照模板填写直接删除) - jdk版本(带上尾号): 1.8.0_202 - 框架版本(项目启动时输出的版本号): RuoYi-Flowable-Plus Application Version: 0.8.3 (v2.7.11) 在Mapper.xml中自己写了一个比较复杂的SQL,不分页的。功能正常,因为数据量太大,加载时间过慢,想用分页方式来实现快速加载,现在有问题是不知道怎样用默认框架实现分页功能。代码如下: 1、Mapper.xml中的代码: <select id="get67prabill" parameterType="Map" resultMap="PraybillResult"> select pb.cpraybillid,pbb.cpraybill_bid,pb.vpraycode, iv.invcode, iv.invname , iv.invspec , pbb.vdef8 as material, me.measname, pbb.nsuggestprice, pbb.npraynum, pb.vdef20 as purprocess, pbb.crowno, pb.dauditdate, su.user_name as ncusername, gs.unitname as unitshortname, pb.vmemo, bs1.jobcode || bs1.jobname as jobname, wmsys.wm_concat( gs.unitshortname || bdre.deptname || sure.user_name || reb.nnum || me.measname || ' ') as plansource, bs.jobcode || bs.jobname || ' ' as reqinformation,'67' as syscode,gs.pk_corp FROM po_praybill_b pbb INNER JOIN po_praybill pb ON pb.cpraybillid = pbb.cpraybillid INNER JOIN bd_corp gs ON gs.pk_corp = pbb.pk_corp LEFT JOIN bd_invbasdoc iv ON pbb.cbaseid = iv.pk_invbasdoc LEFT JOIN bd_measdoc me ON me.pk_measdoc = iv.pk_measdoc LEFT JOIN sm_user su ON su.cuserid = pb.coperator LEFT JOIN po_requireapp_b reb ON reb.csourcebid2 = pbb.cpraybill_bid LEFT JOIN po_requireapp re ON re.crequireappid =reb.crequireappid LEFT JOIN sm_user sure ON sure.cuserid = re.coperator LEFT JOIN bd_deptdoc bdre ON bdre.pk_deptdoc = reb.capplydeptid LEFT JOIN bd_jobmngfil bm ON bm.pk_jobmngfil = reb.cprojectid LEFT JOIN bd_jobbasfil bs ON bs.pk_jobbasfil = bm.pk_jobbasfil LEFT JOIN bd_jobmngfil bm1 ON bm1.pk_jobmngfil = pbb.cprojectid LEFT JOIN bd_jobbasfil bs1 ON bs1.pk_jobbasfil = bm1.pk_jobbasfil WHERE pb.dr = 0 AND pbb.dr = 0 <trim> <if test="pkCorp != null "> AND pb.pk_corp = #{pkCorp} </if> <if test="invcode != null and invcode !=''"> AND iv.invcode like #{invcode} </if> <if test="vpraycode != null and vpraycode !=''"> AND pb.vpraycode like #{vpraycode} </if> </trim> and (pbb.vdef9 is null or pbb.vdef9='') AND pbb.npraynum - NVL(pbb.naccumulatenum, 0) > 0 AND pb.ibillstatus = 3 AND pb.dauditdate <![CDATA[ >= ]]>#{startDate} AND pb.dauditdate <![CDATA[ <= ]]>#{endDate} AND pbb.cbaseid IN ( SELECT inv.pk_invbasdoc FROM bd_invbasdoc inv WHERE pk_invcl IN ( SELECT cl.resource_data_id FROM sm_power_invcl cl WHERE (cl.pk_corp = '0001' OR cl.pk_corp = '1002') AND cl.pk_role IN (SELECT ro.pk_role from sm_user_role ro inner join sm_user tuser on (tuser.cuserid=ro.cuserid) WHERE tuser.user_code = #{userCode} AND (ro.pk_corp = '0001' OR ro.pk_corp = '1002') ) ) ) group by pb.cpraybillid, pbb.cpraybill_bid, pb.vpraycode, iv.invcode, iv.invname, iv.invspec, pbb.vdef8, me.measname, pbb.nsuggestprice, pbb.npraynum, pb.vdef20, pbb.crowno, pb.dauditdate, su.user_name, gs.unitname, pb.vmemo, bs1.jobcode || bs1.jobname , bs.jobcode || bs.jobname,gs.pk_corp order by pb.cpraybillid, pbb.cpraybill_bid,to_number(pbb.crowno) </select> Mapper类: List<PraybillVo> get67prabill(PraybillQuery praybill); service类: public List<PraybillVo> get67prabill(PraybillQuery praybill){ return baseMapper.get67prabill(praybill); } 请问我应该怎样调用我自己的mapper中的SQL呢? 谢谢。
评论 (
0
)
阿明lucky
创建了
任务
登录
后才可以发表评论
状态
待办的
待办的
进行中
已完成
已关闭
负责人
未设置
标签
未设置
标签管理
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (4)
标签 (28)
0.8.X
develop
0.8.X-vform
master
v0.8.3
v0.8.2
v0.8.1
v0.8.0
v0.7.2
v0.7.1
v0.7.0
v0.6.3
v0.6.2
v0.6.1
v0.6.0
v0.5.3
v0.5.2
v0.5.1
v0.5.0
v0.4.4
v0.4.3
v0.4.2
v0.4.1
v0.4.0
v0.3.3
v0.3.2
v0.3.1
v0.3.0
v0.2.3
v0.2.2
v0.2.1
v0.2.0
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(1)
Java
1
https://gitee.com/KonBAI-Q/ruoyi-flowable-plus.git
git@gitee.com:KonBAI-Q/ruoyi-flowable-plus.git
KonBAI-Q
ruoyi-flowable-plus
RuoYi-Flowable-Plus
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册