a.id AS "id",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.remarks AS "remarks",
a.del_flag AS "delFlag",
a.sign_card_id AS "signCardID",
a.sign_entertime AS "signEnterTime",
a.sign_outtime AS "signOutTime",
a.transferid AS "TransferId",
a.schoolid AS "schoolId",
a.accesskey AS "accessKey",
a.locationid AS "locationId",
a.sign_other AS "signOther",
a.timecount AS "timeCount"
INSERT INTO sport_sign(
id,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag,
sign_card_id,
sign_entertime,
sign_outtime,
transferid,
schoolid,
accesskey,
locationid,
sign_other,
timecount
) VALUES (
#{id},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag},
#{signCardID},
#{signEnterTime},
#{signOutTime},
#{TransferId},
#{schoolId},
#{accessKey},
#{locationId},
#{signOther},
#{timeCount}
)
UPDATE sport_sign SET
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks},
sign_card_id = #{signCardID},
sign_entertime = #{signEnterTime},
sign_outtime = #{signOutTime},
transferid = #{TransferId},
schoolid = #{schoolId},
accesskey = #{accessKey},
locationid = #{locationId},
sign_other = #{signOther},
timecount = #{timeCount}
WHERE id = #{id}
DELETE FROM sport_sign
WHERE id = #{id}
UPDATE sport_sign SET
del_flag = #{DEL_FLAG_DELETE}
WHERE id = #{id}