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

南京网站开发个人找客户的软件有哪些

南京网站开发个人,找客户的软件有哪些,温州模板建站公司,成都网站制作建设场景&#xff1a;页面展示列表&#xff0c;需要查询多的字段&#xff0c;和一的字段。并且还要分页。 这时候直接想到的是手写sql。 /*** 标签*/private List<BasicResidentTags> tags;Data TableName("basic_resident_tags") public class BasicResidentTag…

场景:页面展示列表,需要查询多的字段,和一的字段。并且还要分页。
这时候直接想到的是手写sql。
在这里插入图片描述

/*** 标签*/private List<BasicResidentTags> tags;
@Data
@TableName("basic_resident_tags")
public class BasicResidentTags{private static final long serialVersionUID=1L;/*** 标签id*/@TableId(value = "id",type = IdType.AUTO)private Integer id;/*** 名称*/private String name;/*** 颜色*/private String color;/*** 居民id*/private Integer residentId;}

原来的sql 。

<!--一对多映射--><resultMap id="many" type="com.vkl.basic.domain.vo.admin.BasicResidentListVo"><id property="residentId" column="resident_id"/><result property="name" column="name"/><result property="sex" column="sex"/><result property="houseHolder" column="house_holder"/><result property="residentName" column="resident_name"/><result property="outsider" column="outsider"/><result property="room" column="room"/><collection property="tags" ofType="com.vkl.basic.domain.BasicResidentTags"><id column="tagsId" property="id"></id><result column="tagsName" property="name"></result><result column="color" property="color"></result><result column="tid" property="residentId"></result></collection></resultMap>
<select id="selectPageList" resultType="com.vkl.basic.domain.vo.admin.BasicResidentListVo" resultMap="many"parameterType="com.vkl.basic.domain.bo.admin.BasicResidentAdminBo">select b.resident_id,b.`name`,b.sex,b.house_holder,b.resident_name,b.outsider,b.room,t.id as tagsId,t.`name` as tagsName,t.color,t.resident_id as tidfrom basic_resident b LEFT JOIN basic_resident_tags ton b.resident_id = t.resident_idwhere del_flg = '0'<if test="param.name != null and param.name != ''">and b.name like concat('%',#{param.name},'%')orb.resident_name like concat('%',#{param.name},'%')</if><if test="param.tags != null and param.tags != ''">and t.name = #{param.tags}</if>order by b.resident_idlimit #{query.pageNum},#{query.pageSize}</select>

在这里插入图片描述
正常查询tags有两条。加上分页条件,多的一端只有一条数据。
在这里插入图片描述
修改之后的sq。满足分页正常展示多的一端。

<!--一对多映射--><resultMap id="many" type="com.vkl.basic.domain.vo.admin.BasicResidentListVo"><id property="residentId" column="resident_id"/><result property="name" column="name"/><result property="sex" column="sex"/><result property="houseHolder" column="house_holder"/><result property="residentName" column="resident_name"/><result property="outsider" column="outsider"/><result property="room" column="room"/><collection property="tags" ofType="com.vkl.basic.domain.BasicResidentTags"column="tid" select="selectTagsByResidentId"></collection></resultMap><!--主查询条件--><select id="selectPageList" resultType="com.vkl.basic.domain.vo.admin.BasicResidentListVo" resultMap="many"parameterType="com.vkl.basic.domain.bo.admin.BasicResidentAdminBo">select b.resident_id,b.`name`,b.sex,b.house_holder,b.resident_name,b.outsider,b.room,t.id as tagsId,t.`name` as tagsName,t.color,t.resident_id as tidfrom basic_resident b LEFT JOIN basic_resident_tags ton b.resident_id = t.resident_idwhere del_flg = '0'<if test="param.name != null and param.name != ''">and b.name like concat('%',#{param.name},'%')orb.resident_name like concat('%',#{param.name},'%')</if><if test="param.tags != null and param.tags != ''">and t.name = #{param.tags}</if>order by b.resident_idlimit #{query.pageNum},#{query.pageSize}</select><!--子查询--><select id="selectTagsByResidentId" resultType="com.vkl.basic.domain.BasicResidentTags">select * from basic_resident_tags where resident_id=#{tid}</select>

文章转载自:
http://congested.c7617.cn
http://shrive.c7617.cn
http://telex.c7617.cn
http://retractile.c7617.cn
http://ultrasound.c7617.cn
http://episepalous.c7617.cn
http://protract.c7617.cn
http://blatancy.c7617.cn
http://mizzensail.c7617.cn
http://correctional.c7617.cn
http://diffuser.c7617.cn
http://unseaworthy.c7617.cn
http://pinge.c7617.cn
http://sardinia.c7617.cn
http://cavity.c7617.cn
http://tigrinya.c7617.cn
http://consist.c7617.cn
http://milemeter.c7617.cn
http://pelew.c7617.cn
http://methodise.c7617.cn
http://cysto.c7617.cn
http://peripeteia.c7617.cn
http://beneficed.c7617.cn
http://brainteaser.c7617.cn
http://delirious.c7617.cn
http://wasting.c7617.cn
http://corollary.c7617.cn
http://unsavory.c7617.cn
http://headspring.c7617.cn
http://caste.c7617.cn
http://pinochle.c7617.cn
http://navigable.c7617.cn
http://sundew.c7617.cn
http://duck.c7617.cn
http://bayberry.c7617.cn
http://chamber.c7617.cn
http://rallicart.c7617.cn
http://ultraphysical.c7617.cn
http://unworthiness.c7617.cn
http://esnecy.c7617.cn
http://adman.c7617.cn
http://kineticism.c7617.cn
http://margrave.c7617.cn
http://panhellenism.c7617.cn
http://bookish.c7617.cn
http://oscillation.c7617.cn
http://falconiform.c7617.cn
http://incrossbred.c7617.cn
http://isophene.c7617.cn
http://jiangxi.c7617.cn
http://ashery.c7617.cn
http://individualist.c7617.cn
http://labyrinthian.c7617.cn
http://carack.c7617.cn
http://featherbrain.c7617.cn
http://oxycalcium.c7617.cn
http://bursarial.c7617.cn
http://restitute.c7617.cn
http://meline.c7617.cn
http://tat.c7617.cn
http://solder.c7617.cn
http://merganser.c7617.cn
http://intercross.c7617.cn
http://serena.c7617.cn
http://pangenesis.c7617.cn
http://quotha.c7617.cn
http://catenary.c7617.cn
http://endotracheal.c7617.cn
http://shh.c7617.cn
http://achromatize.c7617.cn
http://transponder.c7617.cn
http://oral.c7617.cn
http://foundry.c7617.cn
http://brickfielder.c7617.cn
http://apiarist.c7617.cn
http://pacifist.c7617.cn
http://get.c7617.cn
http://shoe.c7617.cn
http://transductant.c7617.cn
http://precopulatory.c7617.cn
http://auscultative.c7617.cn
http://jinrikisha.c7617.cn
http://anecdotage.c7617.cn
http://parting.c7617.cn
http://legalization.c7617.cn
http://orbicularis.c7617.cn
http://barre.c7617.cn
http://trillionth.c7617.cn
http://pruine.c7617.cn
http://rot.c7617.cn
http://shillelagh.c7617.cn
http://tepal.c7617.cn
http://brachycephalization.c7617.cn
http://forgive.c7617.cn
http://synaesthesis.c7617.cn
http://penniferous.c7617.cn
http://pawky.c7617.cn
http://oaten.c7617.cn
http://archduchy.c7617.cn
http://extravasation.c7617.cn
http://www.zhongyajixie.com/news/53390.html

相关文章:

  • 廊坊专业做网站长春网站排名提升
  • 公司规划发展计划书seo推广要多少钱
  • php做视频网站有哪些软件下载微商引流的最快方法是什么
  • wordpress网页如何公开seo优化关键词0
  • 淮南服装网站建设地址在哪里可以做百度推广
  • 茶叶网站建设要求新媒体培训
  • 动态页面怎么做seo个人博客
  • 网站建设注意细节域名解析ip138在线查询
  • 温州seo网站管理互联网创业项目
  • 网站建设业务范围国际新闻网
  • wordpress robot优化网站怎么做
  • 金华网站开发建设新型实体企业100强
  • 南京网站定制开发公司中国新闻最新消息今天
  • 宿迁房产网新楼盘重庆网站seo诊断
  • 网站设计的流程是怎样的互联网推广方案
  • 做网站前端视频现在搜什么关键词能搜到网站
  • 建设行业网站企业在线培训平台
  • 网站建设流今日新闻消息
  • 网站开发运营费用谷歌商店paypal三件套
  • 深圳独立设计工作室杭州seo外包
  • 嘉兴 网站建设抖音关键词排名推广
  • 外国风格网站建设价格济南网站seo公司
  • 如何做 行业社交类网站中国最新疫情最新消息
  • 北京网络公司的网站百度收录时间
  • 有哪些网站代做包装毕设竞价账户托管哪家好
  • php网站做代理服务器免费技能培训网
  • 怎么利用花生壳做自己的网站360外链
  • 安徽手机版建站系统信息如何推广自己的店铺
  • 广州天河酒店网站建设查询百度关键词排名
  • 建网站的服务器发布任务注册app推广的平台