sqle icon indicating copy to clipboard operation
sqle copied to clipboard

Mybatis文件解析

Open Sharkzeng opened this issue 2 years ago • 0 comments

1

<select id="OrderByOrderNo" resultMap="skMap"> select <include refid="Base_Column_List"/> from trans <if test="type==1"> where channel_trans_no=#{orderNo} </if> <if test="type==2"> where trans_no=#{orderNo} </if> limit 1 </select>

另外请支持下

<select id=" 想" resultMap=" o">
	SELECT
	p.*
	FROM
		product_info p left join c 
	ON
		p.channel_id = c.id
	<where>
	<if test="vo.productName != null and vo.productName != ''"> and p.product_name = #{vo.productName}</if>
	</where>
	order by p.create_time desc
</select>

Sharkzeng avatar Feb 21 '23 10:02 Sharkzeng