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.contract_id AS "contractId",
a.client_id AS "clientId"
INSERT INTO work_contract_client(
id,
create_by,
create_date,
update_by,
update_date,
remarks,
del_flag,
contract_id,
client_id
) VALUES (
#{id},
#{createBy.id},
#{createDate},
#{updateBy.id},
#{updateDate},
#{remarks},
#{delFlag},
#{contractId},
#{clientId}
)
UPDATE work_contract_client SET
update_by = #{updateBy.id},
update_date = #{updateDate},
remarks = #{remarks},
contract_id = #{contractId},
client_id = #{clientId}
WHERE id = #{id}
DELETE FROM work_contract_client
WHERE id = #{id}
UPDATE work_contract_client SET
del_flag = #{DEL_FLAG_DELETE}
WHERE id = #{id}