批量插入
<insert id="insertIndi" parameterType="java.util.HashMap" useGeneratedKeys="false">
<foreach collection="datalist" item="item" index="index" open="begin" close="; end;" separator=";">
insert into fpmv_indi_exectemp(${lineColumn}) values
<foreach collection="item.values" index="key" item="_value" open="(" close=")" separator=",">
#{_value}
</foreach>
</foreach>
</insert>
查询无匹配找默认
<select id="getIndiRefList" parameterType="java.util.HashMap"  resultType="java.util.HashMap">
select * from T_FPDICTYPE where govid = '0' and govyear = '0' and not exists(
select 1 from t_fpdictype where 1 = 1
<if test="year != null">
and trim(govyear) = #{year,jdbcType=VARCHAR}
</if>
<if test = "province != null">
and trim(govid) = #{province,jdbcType=VARCHAR}
</if>
)
union (
select * from t_fpdictype where 1 = 1
<if test="year != null">
and trim(govyear) = #{year,jdbcType=VARCHAR}
</if>
<if test = "province != null">
and trim(govid) = #{province,jdbcType=VARCHAR}
</if>
) </select>

最新文章

  1. 让ecshop用户登录评价以可择匿名评价
  2. skinned mesh 蜘蛛样
  3. 【暑假】[实用数据结构]前缀树 Trie
  4. 【现代程序设计】【homework-03】【11061027】
  5. java Map实现的cache manager
  6. 简单说pyglet.event
  7. Java Map 迭代
  8. samba server 设置
  9. Java计算两个程序运行时间
  10. idea导出war包
  11. img标签实现和背景图一样的显示效果——object-fit和object-positon
  12. JS基础:this的指向以及call、apply的作用
  13. 你不知道的JavaScript--Item16 for 循环和for...in 循环的那点事儿
  14. frost_vex_01
  15. Django学习笔记之数据库-模型的操作
  16. 设计模式---对象创建模式之抽象工厂模式(Abstract Factory)
  17. 【C++ STL】Set和Multiset
  18. 003.NFS配置实例
  19. Linux内核分析实验八------理解进程调度时机跟踪分析进程调度与
  20. 84.VMware Tools安装——设置共享文件

热门文章

  1. thinkphp+memcache缓存例子
  2. python可视化
  3. 网络编程释疑之:单台服务器上的并发TCP连接数可以有多少
  4. 分布式缓存系统Memcached简介与以及在.net下的实践(转)
  5. 对于nginx为什么能提高性能
  6. 13、Semantic-UI之表格与表单
  7. 关于Java中的几种特殊类与接口,及特殊的创建实例的方法
  8. Android-ContentProvider原理图
  9. vmware之VMware Remote Console (VMRC) SDK(一)
  10. 学习笔记之Struts2—工作原理图