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/相关推荐

  1. http://www.xueh188.top/index.php/archives/16/

    https://forum.fastadmin.net/thread/189 这是由于你只部署了HTML代码,但是未添加datetimepicker的事件,所以不生效,你需要在JS中的index方法中 ...

  2. http://www.xueh188.top/index.php/archives/28/

    {field: 'buttons',width: "120px",title: __('操作'),table: table,events: Table.api.events.ope ...

  3. http://www.xueh188.top/index.php/archives/9/

    图解phpstorm常用快捷键 CTRL+N 查找类 Ctrl+Shift+J快捷键,所有多余的字符(空格,引号和加号)被去掉了 CTRL+SHIFT+N 全局搜索文件 ,优先文件名匹配的文件 CTR ...

  4. 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参数指定了要加 ...

  5. http://www.xueh188.top/index.php/archives/18/

    请输入链接描述 Where 条件表达式格式为: $map['字段名'] = array('表达式', '操作条件'); 其中 $map 是一个普通的数组变量,可以根据自己需求而命名.上述格式中的表达式 ...

  6. http://www.xueh188.top/index.php/archives/37/

    js: dosave = function (){alert("成功啦!");} 错误写法一般有以下两种,很致命: function dosave(){alert("会报 ...

  7. http://www.xueh188.top/index.php/archives/40/

    /*获取当前路由*/ let curPage = getCurPage(); //在微信小程序或是app中,通过curPage.options:如果是H5,则需要curPage.$route.quer ...

  8. http://www.xueh188.top/index.php/archives/35/

    在 /*** 初始化事件*/initEvent: function () { } 添加 table.on('tool(bsDepartmentTable)', page.option): 即 init ...

  9. http://www.xueh188.top/index.php/archives/17/

    页面添加该样式: <style>.content{min-height:700px;}</style>

最新文章

  1. eclipse如何修改dynamic web module version
  2. led灯bin值_「技术贴」如何判断LED透明屏正发光与侧发光的优劣?
  3. 通过AI技术研究网红对其粉丝的消费品牌意识的影响
  4. web前端试题和答案
  5. POJ - 2230 Watchcow(欧拉图)
  6. java bitset_Java BitSet length()方法与示例
  7. wpf开源ui引用步骤_完善开源产品策略的6个步骤
  8. java 对象和类
  9. 单线程+异步协程的简单爬虫模型
  10. unity界面按钮的位置
  11. openstack平台虚拟机vip设置
  12. ACID--事务四大特性
  13. 拳王公社:最新虚拟资源项目赚钱成交系统,1.2W字干货大揭秘!
  14. Kubernetes集群监控之Prometheus Operator
  15. 金融爬虫python网贷_爬虫之爬取网贷之家在档P2P平台基本数据并存入数据库
  16. 阿里云 Linux 3 安装mysql 亲测有效
  17. CSDN 2018博客之星活动报名开始了!
  18. 【板栗糖GIS】win11提示无法成功操作 因为文件包含病毒
  19. VB/VBA的变量,竟还有这些秘密
  20. 传智播客数据绑定和数据库开发基础(第四季)

热门文章

  1. Python后端开发面试题汇总
  2. 图片吸色取出颜色的16进制码
  3. 部署自动化运维工具rundeck
  4. 高级前端软件工程师知识整理之Vue技术栈篇
  5. Oppo k3手机,无法设置强管控问题
  6. SyntaxError: Unexpected token T in JSON at position 0 的解决
  7. SQL注入-----数据库information_schema
  8. 使用inferCNV分析单细胞转录组中拷贝数变异
  9. vcredist作用
  10. Robust Stochastic Optimization Made Easy with RSOME