UPDATE FORMSET
SET
FORMNAME = #{formName},
DESCRIPTION = #{description},
USEDVERSION = #{usedversion}
WHERE
FORMSETID = #{formSetID}
AND TENANTID = #{tenantID}
UPDATE FORMSET
SET
USEDVERSION = #{usedversion},
UPDATEUSER = #{updateUser}
WHERE
FORMSETID = #{formSetID}
AND TENANTID = #{tenantID}
INSERT INTO FORMSET
(FORMSETID,
TENANTID,
FORMNAME,
DESCRIPTION,
USEDVERSION,
DELETEFLG,
CREATEUSER,
CREATEDATETIME,
UPDATEUSER,
UPDATEDATETIME,
BUSSINESSSYSTEM)
VALUES
(#{formSetID},
#{tenantID},
#{formName},
#{description},
#{usedversion},
'0',
#{createUser},
CURRENT_TIMESTAMP(),
#{updateUser},
CURRENT_TIMESTAMP(),
#{businessSystem})
UPDATE FORMSET
SET
FORMNAME = #{formName},
UPDATEUSER = #{updateUser}
WHERE
FORMSETID = #{formSetID}
AND TENANTID = #{tenantID}
UPDATE FORMSET
SET
DELETEFLG = "1",
UPDATEUSER = #{updateUser}
WHERE
FORMSETID = #{formSetID}
AND TENANTID = #{tenantID}