INSERT INTO
FORMEVENT
(
TENANTID,
FORMID,
FIELDNAME,
EVENT,
FIELDTYPE,
EVENTMETHOD,
DELETEFLG,
CREATEUSER,
CREATEDATETIME,
UPDATEUSER,
UPDATEDATETIME
)
VALUES (
#{tenantID},
#{formID},
#{fieldName},
#{event},
#{fieldType},
#{eventmethod},
"0",
#{createUser},
current_timestamp(),
#{createUser},
current_timestamp()
)
DELETE FROM FORMEVENT
WHERE
FORMID = #{formID}
AND
FIELDNAME = #{fieldName}
AND
TENANTID = #{tenantID}
AND
EVENT = #{event}