A.oc_id,
B.oc_type_id,
B.oc_name,
A.account_id,
A.account_name,
A.account_real_name,
A.password,
A.account_type,
A.account_staff_no,
A.account_phone,
A.account_last_ip,
A.account_loc,
A.status,
A.account_avatar,
A.account_photo,
A.account_real_name,
A.account_intro,
A.wx_id,
A.is_fixed
insert into account
oc_id,
account_id,
account_name,
password,
account_type,
account_staff_no,
account_phone,
account_last_ip,
account_loc,
status,
account_avatar,
account_photo,
account_real_name,
account_mail,
account_intro,
is_fixed,
created_at,
created_by,
#{ocId, jdbcType=BIGINT},
#{accountId, jdbcType=BIGINT},
#{accountName, jdbcType=VARCHAR},
#{password, jdbcType=VARCHAR},
#{accountType, jdbcType=BIGINT},
#{accountStaffNo, jdbcType=VARCHAR},
#{accountPhone, jdbcType=VARCHAR},
#{accountLastIp, jdbcType=VARCHAR},
#{accountLoc, jdbcType=VARCHAR},
#{status, jdbcType=BIGINT},
#{accountAvatar, jdbcType=VARCHAR},
#{accountPhoto, jdbcType=VARCHAR},
#{accountRealName, jdbcType=VARCHAR},
#{accountMail, jdbcType=VARCHAR},
#{accountIntro, jdbcType=VARCHAR},
#{isFixed, jdbcType=BIGINT},
#{createdAt, jdbcType=DATE},
#{createdBy, jdbcType=BIGINT},
UPDATE account
account_name = #{accountName,jdbcType=VARCHAR},
account_real_name = #{accountRealName,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
account_intro = #{accountIntro,jdbcType=VARCHAR},
is_fixed = #{isFixed,jdbcType=BIGINT},
account_staff_no = #{accountStaffNo,jdbcType=VARCHAR},
account_phone = #{accountPhone,jdbcType=VARCHAR},
wx_id = #{wxId,jdbcType=VARCHAR},
status = #{status,jdbcType=BIGINT},
account_avatar = #{accountAvatar,jdbcType=VARCHAR},
account_photo = #{accountPhoto,jdbcType=VARCHAR},
account_mail = #{accountMail, jdbcType=VARCHAR},
updated_at = #{updatedAt,jdbcType=DATE},
updated_by = #{updatedBy,jdbcType=BIGINT},
WHERE oc_id = #{ocId, jdbcType=BIGINT} AND account_id = #{accountId ,jdbcType=BIGINT}
UPDATE account
SET password = #{password ,jdbcType=VARCHAR}
WHERE deleted_flag = 0
AND oc_id = #{ocId, jdbcType=BIGINT}
AND account_id = #{accountId,jdbcType=BIGINT}
UPDATE account
deleted_flag = #{deletedFlag,jdbcType=BIGINT},
deleted_time = #{deletedTime,jdbcType=VARCHAR},
deleted_by = #{deletedBy,jdbcType=BIGINT},
WHERE 1 = 1
AND oc_id = #{ocId, jdbcType=BIGINT}
AND account_id = #{accountId ,jdbcType = BIGINT}