文章分类 - mybatis
摘要:IF EXISTS ( select _tmp.pindex as c from t_policy_bk_qw _tmp with(nolock,index=u_index_pindex) where _tmp.pindex = #{pindex,jdbcType=VARCHAR} ) BEGIN update t...
阅读全文
摘要:标签的id名字可能和mapper接口的方法名不一致!
阅读全文
摘要:当通过dao接口名字找不到对应xml的时候,看dao接口的包名,确定xml对应的位置。比如:SelectOrderMapper 包名:package dtom.dao.findback;在mapping/findback中可以找到OrderMapper.xml,其对应的接口配置:<mapper na
阅读全文
摘要:<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"><property name="basePackage" value="com.taotao.mapper" /></bean>上面这段是用来扫描dao接口类和映射文件的。
阅读全文
摘要:1 xml的批量修改sql 2mapper接口方法 void updateUnconfigAirlineState(List<Integer> list)throws Exception; 3测试分批修改 4PagenationUtil 附注: 批量对应ID修改值 形成类似SQL:
阅读全文