HANDLE, USER_NAME, FIRST_NAME, LAST_NAME, FULL_NAME, PASSWORD, SALT, PHONE, AVATAR, DEPT_ID, CREATE_TIME, UPDATE_TIME, LOCK_FLAG, DEL_FLAG, SITE, DEPT_DESC, VALID_FROM, VALID_TO, JOB_TITLE, EMAIL
INSERT INTO Z_NWA_USER
HANDLE,
USER_NAME,FIRST_NAME,LAST_NAME,FULL_NAME,PASSWORD,SALT,PHONE,AVATAR,DEPT_ID,CREATE_TIME,UPDATE_TIME,LOCK_FLAG,DEL_FLAG,SITE,DEPT_DESC,VALID_FROM,VALID_TO,JOB_TITLE,EMAIL, VALUES
#{handle},
#{userName},#{firstName},#{lastName},#{fullName},#{password},#{salt},#{phone},#{avatar},#{deptId},#{createTime},#{updateTime},#{lockFlag},#{delFlag},#{site},#{deptDesc},#{validFrom},#{validTo},#{jobTitle},#{email},
INSERT INTO Z_NWA_USER
VALUES
#{handle},
#{userName},
#{firstName},
#{lastName},
#{fullName},
#{password},
#{salt},
#{phone},
#{avatar},
#{deptId},
#{createTime},
#{updateTime},
#{lockFlag},
#{delFlag},
#{site},
#{deptDesc},
#{validFrom},
#{validTo},
#{jobTitle},
#{email},
UPDATE Z_NWA_USER USER_NAME=#{et.userName},FIRST_NAME=#{et.firstName},LAST_NAME=#{et.lastName},FULL_NAME=#{et.fullName},PASSWORD=#{et.password},SALT=#{et.salt},PHONE=#{et.phone},AVATAR=#{et.avatar},DEPT_ID=#{et.deptId},CREATE_TIME=#{et.createTime},UPDATE_TIME=#{et.updateTime},LOCK_FLAG=#{et.lockFlag},DEL_FLAG=#{et.delFlag},SITE=#{et.site},DEPT_DESC=#{et.deptDesc},VALID_FROM=#{et.validFrom},VALID_TO=#{et.validTo},JOB_TITLE=#{et.jobTitle},EMAIL=#{et.email}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
UPDATE Z_NWA_USER
USER_NAME=#{et.userName},
FIRST_NAME=#{et.firstName},
LAST_NAME=#{et.lastName},
FULL_NAME=#{et.fullName},
PASSWORD=#{et.password},
SALT=#{et.salt},
PHONE=#{et.phone},
AVATAR=#{et.avatar},
DEPT_ID=#{et.deptId},
CREATE_TIME=#{et.createTime},
UPDATE_TIME=#{et.updateTime},
LOCK_FLAG=#{et.lockFlag},
DEL_FLAG=#{et.delFlag},
SITE=#{et.site},
DEPT_DESC=#{et.deptDesc},
VALID_FROM=#{et.validFrom},
VALID_TO=#{et.validTo},
JOB_TITLE=#{et.jobTitle},
EMAIL=#{et.email},
WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
UPDATE Z_NWA_USER USER_NAME=#{et.userName},FIRST_NAME=#{et.firstName},LAST_NAME=#{et.lastName},FULL_NAME=#{et.fullName},PASSWORD=#{et.password},SALT=#{et.salt},PHONE=#{et.phone},AVATAR=#{et.avatar},DEPT_ID=#{et.deptId},CREATE_TIME=#{et.createTime},UPDATE_TIME=#{et.updateTime},LOCK_FLAG=#{et.lockFlag},DEL_FLAG=#{et.delFlag},SITE=#{et.site},DEPT_DESC=#{et.deptDesc},VALID_FROM=#{et.validFrom},VALID_TO=#{et.validTo},JOB_TITLE=#{et.jobTitle},EMAIL=#{et.email},
HANDLE=#{ew.entity.handle}
AND USER_NAME=#{ew.entity.userName} AND FIRST_NAME=#{ew.entity.firstName} AND LAST_NAME=#{ew.entity.lastName} AND FULL_NAME=#{ew.entity.fullName} AND PASSWORD=#{ew.entity.password} AND SALT=#{ew.entity.salt} AND PHONE=#{ew.entity.phone} AND AVATAR=#{ew.entity.avatar} AND DEPT_ID=#{ew.entity.deptId} AND CREATE_TIME=#{ew.entity.createTime} AND UPDATE_TIME=#{ew.entity.updateTime} AND LOCK_FLAG=#{ew.entity.lockFlag} AND DEL_FLAG=#{ew.entity.delFlag} AND SITE=#{ew.entity.site} AND DEPT_DESC=#{ew.entity.deptDesc} AND VALID_FROM=#{ew.entity.validFrom} AND VALID_TO=#{ew.entity.validTo} AND JOB_TITLE=#{ew.entity.jobTitle} AND EMAIL=#{ew.entity.email}
${ew.sqlSegment}
${ew.sqlSegment}
DELETE FROM Z_NWA_USER WHERE HANDLE=#{handle}
DELETE FROM Z_NWA_USER
${k} = #{cm[${k}]}
DELETE FROM Z_NWA_USER
HANDLE=#{ew.entity.handle}
AND USER_NAME=#{ew.entity.userName} AND FIRST_NAME=#{ew.entity.firstName} AND LAST_NAME=#{ew.entity.lastName} AND FULL_NAME=#{ew.entity.fullName} AND PASSWORD=#{ew.entity.password} AND SALT=#{ew.entity.salt} AND PHONE=#{ew.entity.phone} AND AVATAR=#{ew.entity.avatar} AND DEPT_ID=#{ew.entity.deptId} AND CREATE_TIME=#{ew.entity.createTime} AND UPDATE_TIME=#{ew.entity.updateTime} AND LOCK_FLAG=#{ew.entity.lockFlag} AND DEL_FLAG=#{ew.entity.delFlag} AND SITE=#{ew.entity.site} AND DEPT_DESC=#{ew.entity.deptDesc} AND VALID_FROM=#{ew.entity.validFrom} AND VALID_TO=#{ew.entity.validTo} AND JOB_TITLE=#{ew.entity.jobTitle} AND EMAIL=#{ew.entity.email}
${ew.sqlSegment}
${ew.sqlSegment}
DELETE FROM Z_NWA_USER WHERE HANDLE IN (
#{item}
)