E getById(Integer id);
<select id="getById" parameterType="int" resultMap="BaseResultMap">
SELECT *
FROM
库名.表名
WHERE
id = #{_parameter}
</select>
<select id="getUsers" parameterType="int" resultType="User">
SELECT id, name, phone, email FROM users WHERE 1=1
<if test="_parameter != null">
and id > #{_parameter}
</if>
</select>
<sql id="HHHHH">
id,name
</sql>
<include refid="HHHHH"/>
<update id="updateBatch">
<foreach item="item" index="index" collection="list" open=""
close="" separator=";">
<if test="item.statusType.toString() == 'DELETED'">
DELETE FROM 库名.表名 WHERE id = #{item.id}
</if>
<if test="item.statusType.toString() != 'DELETED'">
UPDATE 库名.表名
<set>
modifier = #{item.modifier,jdbcType=CHAR},
<if test="item.account != null">
account = #{item.account,jdbcType=VARCHAR},
</if>
<if test="item.name != null">
name = #{item.name,jdbcType=VARCHAR},
</if>
</set>
where
库名.表名.id =#{item.id}
</if>
</foreach>
</update>
<update id="updateFlow">
UPDATE ufis.pid
SET
<strong><span style="font-size:24px;"></span></strong><pre name="code" class="html"><if test="<pre name="code" class="html"><pre name="code" class="html">used_flow != null"></pre>
<pre></pre>
<pre></pre>
<pre></pre>
<p></p>
<pre></pre>
<pre></pre>
used_flow = used_flow + #{flow},<br>
</if><br>
change_flow_time =#{changeFlowTime}WHEREid = #{id}</update>
<pre></pre>
<br>
<br>
<p></p>
</pre></pre>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有