上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 88 下一页
摘要: 1、用script标签包围,然后像xml语法一样书写 @Select({"<script>", "SELECT * FROM tbl_order", "WHERE 1=1", "<when test='title!=null'>", "AND mydate = #{mydate}", "</when 阅读全文
posted @ 2019-12-04 11:59 那些年的代码 阅读(7531) 评论(0) 推荐(0) 编辑
摘要: if @Select({"<script>", "SELECT " + " mu.id userId, " + " eui.id userInfoId, " + " mu.user_name userName, " + " com.company_id AS comId, " + " com.com 阅读全文
posted @ 2019-12-04 11:53 那些年的代码 阅读(3343) 评论(0) 推荐(0) 编辑
摘要: @Mapper public interface DemandCommentMapper extends BaseMapper<DemandComment>{ @Select("SELECT " + "a.id as 'id',a.create_date as 'createDate',a.cont 阅读全文
posted @ 2019-12-04 11:49 那些年的代码 阅读(3205) 评论(1) 推荐(0) 编辑
摘要: 最近项目折腾了老半天,找了资料才知道是这么回事。。。 因为语句中有一个小于号“<”,在XML中,会被当成一个页面元素来解析,不会处理为mysql的SQL语句的组成部分,修改如下: 1、在xml的sql语句中,不能直接用大于号、小于号要用转义字符 如果用小于号会报错误如下: org.apache.ib 阅读全文
posted @ 2019-12-04 11:45 那些年的代码 阅读(1963) 评论(0) 推荐(0) 编辑
摘要: jquery中的ajax 默认情况下为异步请求,即 async:true,可以通过设置参数 asycn:false 到使其同步 $.ajax({ url: 'www.test.com/test/test', type: 'POST', data: {name:"test"} async: false 阅读全文
posted @ 2019-12-04 11:41 那些年的代码 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 首先为table 设置 style="table-layout: fixed;" <table id="assessStage" data-height="467" data-mobile-responsive="true" style="table-layout: fixed;"> </table 阅读全文
posted @ 2019-12-04 11:39 那些年的代码 阅读(11487) 评论(1) 推荐(0) 编辑
摘要: 最近得多学学基础了,基础还是很重要的~ int[] temp=new int[6]; int[] temp={1,2,3,4}; int[] temp= new int[]{1,2,3,4,5}; //和第二种差不多 持续更新~ 阅读全文
posted @ 2019-12-04 11:29 那些年的代码 阅读(5439) 评论(0) 推荐(2) 编辑
摘要: Error evaluating expression ''''. Return value () was not iterable 出现原因:xml文件中遍历List 时,该参数的实际值为非List数据。 阅读全文
posted @ 2019-12-04 11:29 那些年的代码 阅读(16213) 评论(0) 推荐(0) 编辑
摘要: 一、简介 在SQL语法中如果我们想使用in的话直接可以像如下一样使用: select * from HealthCoupon where useType in ( '4' , '3' ) 但是如果在MyBatis中的使用in的话,像如下去做的话,肯定会报错: Map<String, Object> 阅读全文
posted @ 2019-12-04 11:27 那些年的代码 阅读(1266) 评论(0) 推荐(0) 编辑
摘要: 在MyBatis中使用in关键字参数为集合时,需要使用到foreach标签。 下面详细介绍以下foreach标签的几个参数 foreach属性.png 实例: <select id="getNewListByLabelID" resultMap="BaseResultMap" parameterTy 阅读全文
posted @ 2019-12-04 11:25 那些年的代码 阅读(4153) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 88 下一页