<select id="selectByArticle" parametertype="com.pet.bean.Article" resultmap="com.pet.bean.Article">
SELECT
FROM ARTICLE
</select>
<sql id="queryCondition">
<if test="@org.apache.commons.lang.StringUtils@isNotBlank(id)">AND ID = #{id,jdbcType=Integer}</if>
<if test="@org.apache.commons.lang.StringUtils@isNotBlank(authorName)">AND AUTHOR_NAME = #{authorName,jdbcType=VARCHAR}</if>
<if test="@org.apache.commons.lang.StringUtils@isNotBlank(title)">AND TITLE = #{title,jdbcType=VARCHAR}</if>
<if test="@org.apache.commons.lang.StringUtils@isNotBlank(content)">AND CONTENT = #{content,jdbcType=VARCHAR}</if>
<if test="@org.apache.commons.lang.StringUtils@isNotBlank(makeTime)">AND MAKE_TIME = #{makeTime,jdbcType=VARCHAR}</if>
<if test="@org.apache.commons.lang.StringUtils@isNotBlank(updateTime)">AND UPDATE_TIME = #{updateTime,jdbcType=VARCHAR}</if>
<if test="@org.apache.commons.lang.StringUtils@isNotBlank(kind)">AND KIND = #{kind,jdbcType=VARCHAR}</if>
<if test="@org.apache.commons.lang.StringUtils@isNotBlank(about)">AND ABOUT = #{about,jdbcType=VARCHAR}</if>
<if test="@org.apache.commons.lang.StringUtils@isNotBlank(status)">AND STATUS = #{status,jdbcType=VARCHAR}</if>
</sql>
<select id="selectByArticle" parametertype="com.pet.bean.Article" resultmap="BaseResultMap"> SELECT FROM ARTICLE </select> <resultmap id="BaseResultMap" type="com.pet.bean.Article"> <id column="ID" jdbctype="INTEGER" property="id"> <result column="AUTHOR_NAME" jdbctype="VARCHAR" property="authorName"> <result column="TITLE" jdbctype="VARCHAR" property="title"> <result column="CONTENT" jdbctype="VARCHAR" property="content"> <result column="MAKE_TIME" jdbctype="VARCHAR" property="makeTime"> <result column="UPDATE_TIME" jdbctype="VARCHAR" property="updateTime"> <result column="KIND" jdbctype="VARCHAR" property="kind"> <result column="ABOUT" jdbctype="VARCHAR" property="about"> </result></result></result></result></result></result></result></id></resultmap>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有