A.oc_id,
A.art_id,
A.art_cat_id,
B.art_cat_title,
A.art_title,
A.art_author,
A.art_source,
A.is_fixed,
A.issued_at,
A.editor_id,
C.account_name AS editor_name,
A.status
A.oc_id,
A.art_id,
A.art_cat_id,
B.art_cat_title,
A.art_title,
A.art_author,
A.art_content,
A.art_source,
A.is_fixed,
A.issued_at,
A.editor_id,
C.account_name AS editor_name,
A.status
INSERT INTO art
oc_id,
art_id,
art_cat_id,
art_title,
art_author,
art_content,
art_source,
is_fixed,
issued_at,
editor_id,
status,
created_by,
created_at,
#{ocId ,jdbcType=BIGINT},
#{artId ,jdbcType=BIGINT},
#{artCatId ,jdbcType=BIGINT},
#{artTitle ,jdbcType=VARCHAR},
#{artAuthor ,jdbcType=VARCHAR},
#{artContent ,jdbcType=VARCHAR},
#{artSource ,jdbcType=VARCHAR},
#{isFixed ,jdbcType=BIGINT},
#{issuedAt ,jdbcType=DATE},
#{editorId ,jdbcType=BIGINT},
#{status ,jdbcType=BIGINT},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE art
art_cat_id = #{artCatId ,jdbcType=BIGINT},
art_title =#{artTitle ,jdbcType=VARCHAR},
art_author = #{artAuthor ,jdbcType=VARCHAR},
art_content = #{artContent ,jdbcType=VARCHAR},
art_source = #{artSource ,jdbcType=VARCHAR},
is_fixed = #{isFixed ,jdbcType=BIGINT},
status = #{status ,jdbcType=BIGINT},
issued_at = #{issuedAt ,jdbcType=DATE},
editor_id = #{editorId ,jdbcType=BIGINT},
updated_by = #{updatedBy ,jdbcType=BIGINT},
updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
WHERE oc_id = #{ocId ,jdbcType=BIGINT} AND art_id = #{artId ,jdbcType=BIGINT}
UPDATE art
deleted_by = #{deletedBy ,jdbcType=BIGINT},
deleted_at = #{deletedAt ,jdbcType=DATE},
deleted_flag = #{deletedFlag ,jdbcType=BIGINT},
WHERE oc_id = #{ocId,jdbcType=BIGINT} AND deleted_flag = 0
AND art_id = #{artId ,jdbcType=BIGINT}
AND art_cat_id = #{artCatId ,jdbcType=BIGINT}