zoukankan      html  css  js  c++  java
  • 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>
  • 相关阅读:
    天国近了(一) 揭穿OOP神话
    自然思考:流程任意定制的一个问题
    风水占卜是迷信吗?
    飘浮的鸡蛋壳真正的原理研究
    ListView
    Java与WCF交互(一):Java客户端调用WCF服务 (转)
    WPF ListView 数据绑定
    .NET中Trace类和Debug类的应用举例(转)
    Print Visual Tree
    EntityFramework之领域驱动设计实践(六)(转)
  • 原文地址:https://www.cnblogs.com/lxcmyf/p/5711058.html
Copyright © 2011-2022 走看看