Mybatis 常用语法

like

subject_name LIKE CONCAT('%', #{subjectName,jdbcType=VARCHAR}, '%')
或
subject_name LIKE CONCAT('%', TRIM(#{subjectName,jdbcType=VARCHAR}), '%')

in


	and status in
	  
	  #{item, jdbcType=TINYINT}
	 
 

if


	and subject_no = #{subjectNo,jdbcType=VARCHAR}

choose


	
	
	concat(DATE_FORMAT(statistic_time ,'%X-%V'),'(周)') as statisticTime,
	
	
	
	DATE_FORMAT(statistic_time ,'%Y-%m') as statisticTime,
	
	
	
	DATE_FORMAT(statistic_time ,'%Y') as statisticTime,
	
	
	
	DATE_FORMAT(statistic_time ,'%Y-%m-%d') as statisticTime,
	

CDATA


你可能感兴趣的:(Java)