http://www.xueh188.top/index.php/archives/33/
entity
public class BsEnterpriseFinanceYear extends Model<BsEnterpriseFinanceYear> {private BsEnterprise bsEnterprise;//另一个类对象
}
Mapper
<!-- 通用查询映射结果 --><resultMap id="BaseResultMap" type="com.fastfinger.dev.bsEnterpriseFinanceYear.entity.BsEnterpriseFinanceYear"><id column="finance_id" property="financeId"/><result column="ent_id" property="entId"/><association property="bsEnterprise" javaType="com.fastfinger.dev.bsEnterprise.entity.BsEnterprise"><result column="ent_name" property="entName"/></association></resultMap>
<if test="entity.bsEnterprise.entName != '' and entity.bsEnterprise.entName != null">and e.ent_name like concat('%',#{entity.bsEnterprise.ent_name},'%')</if>
注意: 被嵌套对象如果有被查询条件,需在前面new个对象并赋给 对象,否则需要在判断条件前增加判断对象是否为空
例:
<if test=" entity.bsEnterprise != null"><if test="entity.bsEnterprise.entName != '' and entity.bsEnterprise.entName != null">and e.ent_name like concat('%',#{entity.bsEnterprise.entName},'%')</if></if>
http://www.xueh188.top/index.php/archives/33/相关推荐
- http://www.xueh188.top/index.php/archives/16/
https://forum.fastadmin.net/thread/189 这是由于你只部署了HTML代码,但是未添加datetimepicker的事件,所以不生效,你需要在JS中的index方法中 ...
- http://www.xueh188.top/index.php/archives/28/
{field: 'buttons',width: "120px",title: __('操作'),table: table,events: Table.api.events.ope ...
- http://www.xueh188.top/index.php/archives/9/
图解phpstorm常用快捷键 CTRL+N 查找类 Ctrl+Shift+J快捷键,所有多余的字符(空格,引号和加号)被去掉了 CTRL+SHIFT+N 全局搜索文件 ,优先文件名匹配的文件 CTR ...
- http://www.xueh188.top/index.php/archives/36/
https://www.cnblogs.com/fhen/p/5896105.html 启动操作 nginx -c /usr/local/nginx/conf/nginx.conf -c参数指定了要加 ...
- http://www.xueh188.top/index.php/archives/18/
请输入链接描述 Where 条件表达式格式为: $map['字段名'] = array('表达式', '操作条件'); 其中 $map 是一个普通的数组变量,可以根据自己需求而命名.上述格式中的表达式 ...
- http://www.xueh188.top/index.php/archives/37/
js: dosave = function (){alert("成功啦!");} 错误写法一般有以下两种,很致命: function dosave(){alert("会报 ...
- http://www.xueh188.top/index.php/archives/40/
/*获取当前路由*/ let curPage = getCurPage(); //在微信小程序或是app中,通过curPage.options:如果是H5,则需要curPage.$route.quer ...
- http://www.xueh188.top/index.php/archives/35/
在 /*** 初始化事件*/initEvent: function () { } 添加 table.on('tool(bsDepartmentTable)', page.option): 即 init ...
- http://www.xueh188.top/index.php/archives/17/
页面添加该样式: <style>.content{min-height:700px;}</style>
最新文章
- eclipse如何修改dynamic web module version
- led灯bin值_「技术贴」如何判断LED透明屏正发光与侧发光的优劣?
- 通过AI技术研究网红对其粉丝的消费品牌意识的影响
- web前端试题和答案
- POJ - 2230 Watchcow(欧拉图)
- java bitset_Java BitSet length()方法与示例
- wpf开源ui引用步骤_完善开源产品策略的6个步骤
- java 对象和类
- 单线程+异步协程的简单爬虫模型
- unity界面按钮的位置
- openstack平台虚拟机vip设置
- ACID--事务四大特性
- 拳王公社:最新虚拟资源项目赚钱成交系统,1.2W字干货大揭秘!
- Kubernetes集群监控之Prometheus Operator
- 金融爬虫python网贷_爬虫之爬取网贷之家在档P2P平台基本数据并存入数据库
- 阿里云 Linux 3 安装mysql 亲测有效
- CSDN 2018博客之星活动报名开始了!
- 【板栗糖GIS】win11提示无法成功操作 因为文件包含病毒
- VB/VBA的变量,竟还有这些秘密
- 传智播客数据绑定和数据库开发基础(第四季)