A.oc_id, A.checklist_id, A.checklist_cat_id, B.checklist_cat_title, A.checklist_type_id, A.checklist_desc, A.checklist_title, A.is_fixed, C.account_name AS issued_account_name, A.issued_by AS issued_account_id, A.issued_at, A.author, A.status, A.version INSERT INTO checklist oc_id, checklist_id, checklist_cat_id, checklist_type_id, checklist_title, checklist_desc, is_fixed, issued_by, issued_at, author, status, version, created_by, created_at, #{ocId ,jdbcType=BIGINT}, #{checklistId ,jdbcType=BIGINT}, #{checklistCatId ,jdbcType=BIGINT}, #{checklistTypeId ,jdbcType=BIGINT}, #{checklistTitle ,jdbcType=VARCHAR}, #{checklistDesc ,jdbcType=VARCHAR}, #{isFixed ,jdbcType=BIGINT}, #{issuedBy ,jdbcType=BIGINT}, #{issuedAt ,jdbcType=TIMESTAMP}, #{author ,jdbcType=VARCHAR}, #{status ,jdbcType=BIGINT}, #{version ,jdbcType=VARCHAR}, #{createdBy ,jdbcType=BIGINT}, #{createdAt ,jdbcType=TIMESTAMP}, UPDATE checklist checklist_cat_id = #{checklistCatId ,jdbcType=BIGINT}, checklist_type_id = #{checklistTypeId ,jdbcType=BIGINT}, checklist_title =#{checklistTitle ,jdbcType=VARCHAR}, checklist_desc = #{checklistDesc ,jdbcType=VARCHAR}, is_fixed = #{isFixed ,jdbcType=BIGINT}, issued_by = #{issuedBy ,jdbcType=BIGINT}, issued_at = #{issuedAt ,jdbcType=TIMESTAMP}, author = #{author ,jdbcType=VARCHAR}, status = #{status ,jdbcType=BIGINT}, version = #{version ,jdbcType=VARCHAR}, updated_by = #{updatedBy ,jdbcType=BIGINT}, updated_at = #{updatedAt ,jdbcType=TIMESTAMP}, WHERE 1 = 1 AND oc_id = #{ocId ,jdbcType=BIGINT} AND checklist_id = #{checklistId ,jdbcType=BIGINT} UPDATE checklist deleted_by = #{deletedBy ,jdbcType=BIGINT}, deleted_at = #{deletedAt ,jdbcType=DATE}, deleted_flag = #{deletedFlag ,jdbcType=BIGINT}, WHERE deleted_flag = 0 AND oc_id = #{ocId ,jdbcType=BIGINT} AND checklist_id = #{checklistId ,jdbcType=BIGINT}