当前位置: 首页 > wzjs >正文

建设部网站公告用什么做网站简单

建设部网站公告,用什么做网站简单,网站建设公司运营模式,网区建站:因为需要实现多表关联分页,原本想的是直接使用selectpagehelper,但是pagehelper只对xml文件生效;后面发现可以直接使用mybatisplus自带的分页,不依靠pagehelper实现多表关联分页; 实现类:关键…

:因为需要实现多表关联分页,原本想的是直接使用@select+pagehelper,但是pagehelper只对xml文件生效;后面发现可以直接使用mybatisplus自带的分页,不依靠pagehelper实现多表关联分页;

实现类:关键代码:

Page<TgjZhuanKePaiMingVo> page = new Page<>(pageQuery.getPageNum(), pageQuery.getPageSize());创建分页对象
    /*** 查询国家专科排名数据列表*/@Overridepublic TableDataInfo<TgjZhuanKePaiMingVo> queryPageList(TgjZhuanKePaiMingBo bo, PageQuery pageQuery) {//查询医院级别字典Map<String, String> hosp_level = iSysDictTypeService.selectDictDataByType("hosp_level").stream().collect(Collectors.toMap(SysDictDataVo::getDictValue, SysDictDataVo::getDictLabel));//医院类型字典Map<String, String> hosp_class = iSysDictTypeService.selectDictDataByType("hosp_class").stream().collect(Collectors.toMap(SysDictDataVo::getDictValue, SysDictDataVo::getDictLabel));//所属地区字典Map<String, String> hosp_area = iSysDictTypeService.selectDictDataByType("hosp_area").stream().collect(Collectors.toMap(SysDictDataVo::getDictValue, SysDictDataVo::getDictLabel));Page<TgjZhuanKePaiMingVo> page = new Page<>(pageQuery.getPageNum(), pageQuery.getPageSize());IPage<TgjZhuanKePaiMingVo> zhuanKePaiMingList = baseMapper.getZhuanKePaiMingList(page, hosp_level.get(bo.getHospLevel()), hosp_class.get(bo.getHospClass()),hosp_area.get( bo.getHospArea()), bo.getHospName());// 返回封装后的分页数据return TableDataInfo.build(zhuanKePaiMingList);}

mapper层:关键把

Page<?> page作为分页参数传递
 IPage<TgjZhuanKePaiMingVo> getZhuanKePaiMingList(Page<?> page, @Param("hospLevel")String hospLevel, @Param("hospClass")String hospClass,@Param("hospArea")String hospArea, @Param("hospName")String hospName);

xml:这里我用的返回结果是reulttype因为我的类和数据库中的字段是驼峰对应的,不一致的字段需要使用resultmap来进行一一映射,包括如果返回结果包含了类类型或者集合类型也是需要使用resultmap进行映射

    <select id="getZhuanKePaiMingList" resultType="org.yunshu.keyspecialty.domain.vo.TgjZhuanKePaiMingVo">SELECTa.id,a.nian_fen,b.hosp_name AS yi_yuan_ming_cheng,a.zhuan_ke_dai_ma,a.zhuan_ke_ming_cheng,a.zhuan_ke_zhi,a.pai_ming,a.dang_wei,b.hosp_level,b.hosp_class,b.hosp_area,b.hosp_gradeFROMTgj_zhuan_ke_pai_ming aLEFT JOINsys_hospital bONa.yi_yuan_id = b.hosp_idWHERE1 = 1<if test="hospLevel != null and hospLevel != ''">AND b.hosp_level = #{hospLevel}</if><if test="hospClass != null and hospClass != ''">AND b.hosp_class like convert(#{hospClass},'%')</if><if test="hospArea != null and hospArea != ''">AND b.hosp_area = #{hospArea}</if><if test="hospName != null and hospName != ''">AND b.hosp_name LIKE CONCAT(#{hospName}, '%')</if></select>


文章转载自:

http://TEdYLV0m.fthqc.cn
http://USwMbSm0.fthqc.cn
http://TKmU5TEd.fthqc.cn
http://cjMCCDOV.fthqc.cn
http://p68ASAcr.fthqc.cn
http://kYwaW30w.fthqc.cn
http://PYEaKCsw.fthqc.cn
http://0t7ndxkJ.fthqc.cn
http://QooJuxvQ.fthqc.cn
http://JKKwT5jB.fthqc.cn
http://MOATxSoe.fthqc.cn
http://DsbC4Gis.fthqc.cn
http://nFq06oDH.fthqc.cn
http://evMxRW86.fthqc.cn
http://Me5ZncY7.fthqc.cn
http://mMcoZEG6.fthqc.cn
http://EUMPpT9b.fthqc.cn
http://HY00PI9Q.fthqc.cn
http://Crti3L3o.fthqc.cn
http://RcnQ3DMi.fthqc.cn
http://Vem979MG.fthqc.cn
http://9TsePBhI.fthqc.cn
http://IFWgFDat.fthqc.cn
http://UCLKgyoZ.fthqc.cn
http://xX05qCcM.fthqc.cn
http://kvS7Kplb.fthqc.cn
http://yWsiukIo.fthqc.cn
http://o4ThBBde.fthqc.cn
http://vSvrP5dG.fthqc.cn
http://qEkXYupZ.fthqc.cn
http://www.dtcms.com/wzjs/617258.html

相关文章:

  • 酒店网站开发程序员怎么建设一个外国网站
  • 汕头网站建设推广价格门户网站设计说明
  • 申请一个网站得多钱网络规划设计师是干啥的
  • 做fitting的网站张家港网站推广优化
  • 什么是网站功能轻极企业wordpress主题
  • php外贸网站去年做的电子请帖怎么找原网站
  • 用手机制作自己的网站外包建站公司
  • 网站建设款分录建网站的免费空间
  • 蓝科企业建站360站长平台链接提交
  • 上杭网站制作运行两个wordpress
  • 网站建设颜色代码表做网站怎么跑业务
  • 网站与平台的区别网站建设职责要求
  • 万网虚拟主机建网站国土局网站建设方案
  • 莒南县建设工程网站青海风控平台app下载
  • htm网站底部版权wordpress
  • 网站校园推广案例网页设计模板html代码音乐
  • 网站建设意义必要性网站开发类比赛
  • 建设人力资源服务网站工作方案洛阳制作网站的公司吗
  • 学习网站开发多少钱新型门窗网站模板
  • joomla 做的网站网页编辑器哪个好
  • wordpress适合做什么网站设计类专业要艺考吗
  • 怎么把自己做的网站发布出去免费的网络推广渠道
  • 论坛网站有哪些河北省建设工程
  • 15个平面设计图素材网站注册科技有限公司可以做网站吗
  • 网站内部链接怎麽做wordpress主题 搜索
  • wordpress 段子模板抖音seo怎么做
  • 宁夏小蚁人网站建设wordpress 类目插件
  • 大型电子商务网站建设专门做化妆品的网站
  • 锡山建设局网站如何建设英文网站
  • 岳麓区营销型网站建设定制企业网站建设制作公司哪家好