id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, name AS name, min_score AS minScore, max_score AS maxScore, score AS score, group_id AS groupId
insert into lz_result_grade(
name,
min_score,
max_score,
score,
group_id,
is_delete,
gmt_create,
gmt_modified
)values(
#{ name},
#{ minScore},
#{ maxScore},
#{ score},
#{ groupId},
0,
now(),
now()
)
update
lz_result_grade
is_delete = #{isDelete},
gmt_create = #{gmtCreate},
name = #{name},
min_score = #{minScore},
max_score = #{maxScore},
score = #{score},
group_id = #{groupId}
,gmt_modified = now()
where id = #{id}
update
lz_result_grade
set
is_delete = #{isDelete},
gmt_create = #{gmtCreate},
name = #{name},
min_score = #{minScore},
max_score = #{maxScore},
score = #{score},
group_id = #{groupId}
,gmt_modified = now()
where id = #{id}
update lz_result_grade set is_delete = 1 where id=#{id} limit 1