Mybaits中的update
<update id="update" parameterType="Currency">
UPDATE
YZ_SECURITIES_CURRENCY
<trim prefix="SET" prefixOverrides=",">
<if test="folwType != null and flowType != ''"> ,FLOW_TYPE = #{flowType}</if>
<if test="title != null and title != ''"> , TITLE = #{title}</if>
<if test="applyUserName != null and applyUserName != ''"> , APPLY_USER_NAME = #{applyUserName}</if>
<if test="applyDate != null and applyDate != ''"> , APPLY_DATE = #{applyDate}</if>
<if test="applyUserDept != null and applyUserDept != ''"> , APPLY_USER_DEPT = #{applyUserDept}</if>
<if test="applyContent != null and applyContent !=''">, APPLY_CONTENT = #{applyContent}</if>
<if test="contactUser != null and contactUser != ''"> , CONTACT_USER = #{contactUser}</if>
<if test="contactPhone != null and contactPhone !=''"> , CONTACT_PHONE = #{contactPhone}</if>
<if test="zhubDept != null and zhubDept != ''"> , ZHUB_DEPT = #{zhubDept}</if>
<if test="proceedingExplanation != null and proceedingExplanation != ''"> , PROCEEDING_EXPLANATION = #{proceedingExplanation}</if>
<if test="memo != null and memo != ''"> , MEMO = #{memo}</if>
<if test="overDate != null and overDate != ''">,OVER_DATE = #{overDate}</if>
<if test="orgId != null and orgId != ''"> , ORG_ID = #{orgId}</if>
<if test="creUnit != null and creUnit != ''"> , CRE_UNIT = #{creUnit}</if>
<if test="creUserId != null and creUserId != ''"> , CRE_USER_ID = #{creUserId}</if>
<if test="creDeptId != null and creDeptId != ''"> , CRE_DEPT_ID = #{creDeptId}</if>
<if test="subflag != null and subflag != ''"> , SUBFLAG = #{subflag}</if>
</trim>
WHERE
ID = #{id}
</update>
Mybaits中的update的更多相关文章
- unity3D脚本中,update ,fixupdate 和lateupdate的区别
1.MonoBehaviour.Update 更新 当MonoBehaviour启用时,其Update在每一帧被调用. 2.MonoBehaviour.FixedUpdate 固定更新 当MonoBe ...
- 在MySQL中阻止UPDATE语句没有添加WHERE条件的发生
如果在生产环境中使用UPDATE语句更新表数据,此时如果忘记携带本应该添加的WHERE条件,那么..Oh,no…后果可能不堪设想.那么有没有什么办法可以阻止这样的事情发生,又不使用任何的审核工具呢.. ...
- Oracle中的 UPDATE FROM 解决方法
转:http://www.cnblogs.com/JasonLiao/archive/2009/12/23/1630895.html Oracle中的 UPDATE FROM 解决方法 在表的更新操作 ...
- Unity3D中的Update, FixedUpdate, LateUpdate的区别
MonoBehaviour.Update 更新 当MonoBehaviour启用时,其Update在每一帧被调用. MonoBehaviour.FixedUpdate 固定更新 当MonoBehavi ...
- unity中的update、Lateupdate和FixedUpdate。
MonoBehaviour.Update 更新 当MonoBehaviour启用时,其Update在每一帧被调用. MonoBehaviour.FixedUpdate 固定更新 当MonoBehavi ...
- SQL中使用UPDATE更新数据时一定要记得WHERE子句
我们在使用 SQL 中的 UPDATE 更新数据时,一般都不会更新表中的左右数据,所以我们更新的数据的 SQL 语句中会带有 WHERE 子句,如果没有WHERE子句,就回更新表中所有的数据,在 my ...
- Oracle 中for update和for update nowait的区别
http://www.cnblogs.com/quanweiru/archive/2012/11/09/2762223.html 1.for update 和 for update nowait 的区 ...
- 关于unity中的update、Lateupdate和FixedUpdate
MonoBehaviour.Update 更新 当MonoBehaviour启用时,其Update在每一帧被调用. MonoBehaviour.FixedUpdate 固定更新 当MonoBehavi ...
- 使用SQL中的update更新多个字段值
使用SQL中的update更新多个字段值,set后面的条件要用逗号不能用and set后面的多个条件之间没有关联也不可以有关联,所以就不能用and了:where 条件后面 可以为and 如: upda ...
随机推荐
- mongodb常见管理命令
----------1.复制数据库 wind:PRIMARY> show dbs; jinri 0.078GB local 1.078GB test 0.078GB wind 0.078GB w ...
- 一站式学习Wireshark(九):应用Wireshark显示过滤器分析特定数据流(上)
介绍 掌握显示过滤器对于网络分析者来说是一项必备的技能.这是一项大海捞针的技巧.学会构建,编辑,保存关键的显示过滤器能够节省数小时的时间. 与捕捉过滤器使用的BPF语法不同,显示过滤器使用的是Wire ...
- Lua语言开发Cocos2d-x游戏视频教程第L0401课-Cocos2d-x中使用Lua
http://www.eoeandroid.com/thread-320733-1-1.html
- LINQ教程二:LINQ操作语法
LINQ查询时有两种语法可供选择:查询表达式语法(Query Expression)和方法语法(Fluent Syntax). 一.查询表达式语法 查询表达式语法是一种更接近SQL语法的查询方式. L ...
- Winform控件:保存文件对话框(SaveFileDialog)
SaveFileDialog用于保存文件 1.新建Winform窗体应用程序,命名为SaveFileDialogDemo. 2.在界面上添加一个按钮的控件(用于打开保存文件对话框),添加文本控件,用于 ...
- WPF路由事件三:自定义路由事件
与依赖项属性类似,WPF也为路由事件提供了WPF事件系统这一组成.为一个类型添加一个路由事件的方式与为类型添加依赖项属性的方法类似,添加一个自定义路由事件的步骤: 一.声明路由事件变量并注册:定义只读 ...
- rails中render 和 redirect_to的区别, each只能用在数组中,如果只有一个或者零个项,用each方法会报错undefined method `each' for #...
在render中,即使有:action,那么也仅仅是取对应的view中的模板(html.erb)而已,所以这里即使浏览器中的url是/orders/xcreate,但是显示的界面是/app/views ...
- MySql: ”Commands out of sync“Error (Connect/C++)
使用 Connector/C++ 查询 Mysql , 连续调用存储过程时 会出现如下: Commands out of sync; you can't run this command now,st ...
- 关于Cocos2d-x中对其他某个类的某个属性的获得
类A要获得类B中的某个属性,可以是节点属性 方法一 1.先在B类中定义一个_edge的节点属性(可以在B类中进行各种对_edge的操作),然后写一个方法Node* GameController::ge ...
- 解决App can’t be opened because it is from an unidentified developer
关闭设置 打开终端 输入sudo spctl --master-disable