INSERT INTO BUSINESSCATEGORY ( BUSINESSCATEGORYID, TENANTID, INDUSTRYCATEGORYCODE, INDUSTRYSUBCATEGORYCODE, BUSINESSCATEGORYNAME, DESCRIPTION, ICONPATH, ESSENCE, VISIBLEPERMISSION, DELETEFLG, CREATEUSER, CREATEDATETIME, UPDATEUSER, UPDATEDATETIME ) VALUES ( #{businessCategoryID}, #{tenantID}, #{industryCategorycode}, #{industrysubCategorycode}, #{businessCategoryName}, #{description}, #{iconpath}, #{essence}, #{visiblepermission}, '0', #{createUser}, current_timestamp(), #{updateUser}, current_timestamp() ) UPDATE BUSINESSCATEGORY SET BUSINESSCATEGORYNAME = #{businessCategoryName}, INDUSTRYCATEGORYCODE = #{industryCategorycode}, INDUSTRYSUBCATEGORYCODE = #{industrysubCategorycode}, DESCRIPTION = #{description}, ICONPATH = #{iconpath}, ESSENCE = #{essence}, VISIBLEPERMISSION = #{visiblepermission}, BUSINESSCATEGORYNAME = #{businessCategoryName}, UPDATEUSER = #{updateUser} WHERE BUSINESSCATEGORYID = #{businessCategoryID} AND TENANTID = #{tenantID} INSERT INTO TEMPLATECATEGORY ( TENANTID, BUSINESSCATEGORYID, TEMPLATECATEGORYID, TEMPLATECATEGORYNAME, DELETEFLG, CREATEUSER, CREATEDATETIME, UPDATEUSER, UPDATEDATETIME ) VALUES ( #{tenantID}, #{businessCategoryID}, #{templateCategoryID}, #{templateCategoryName}, '0', #{createUser}, current_timestamp(), #{updateUser}, current_timestamp() )