亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

<?xml version="1.0" encoding="UTF-8"?>



<!DOCTYPE mapper

? ? PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"

? ? "http://mybatis.org/dtd/mybatis-3-mapper.dtd">


<mapper namespace="Message">


? <resultMap type="com.itewo.bean.Message" id="MessageResult">

? ? <id column="ID" jdbcType="INTEGER" property="id"/>

? ? <result column="COMMAND" jdbcType="VARCHAR" property="command"/>

? ? <result column="DESCRIPTION" jdbcType="VARCHAR" property="description"/>

? ? <result column="CONTENT" jdbcType="BOOLEAN" property="content"/>

? </resultMap>


? <select id="queryMessageList" ?parameterType="com.itewo.bean.Message" resultMap="MessageResult">

? ? select ID,COMMAND,DESCRIPTION,CONTENT from message?

? ? <where>?

? ? ? ? <if test="description != null and ''!=description "> ?

? ? ? ? ? ?and ?description like CONCAT(CONCAT('%', #{description:VARCHAR}),'%')?

? ? ? ? </if> ?

? ? ? ? <if test="command != null and ''!=command "> ?

? ? ? ? ? ?and ?command = #{command:VARCHAR}

? ? ? ? </if>

? ? </where>

? </select>

??

</mapper>


分享sql map

正在回答

0 回答

舉報

0/150
提交
取消
通過自動回復機器人學Mybatis---基礎版
  • 參與學習       107414    人
  • 解答問題       831    個

微信公眾號自動回復功能學習Mybatis,基礎教程加案例實戰方式學習

進入課程
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號