-- 创建 resource
INSERT INTO `_resource` (`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) SELECT NULL,NULL,'jhRecordHistory','selectRecordHistory','✅查询列表','sql','{}','{ \"table\": \"_record_history\", \"operation\": \"select\" }',NULL,NULL,'insert','jianghu-init',NULL,NULL FROM DUAL WHERE NOT EXISTS (SELECT `pageId` FROM `_resource` WHERE `pageId`='jhRecordHistory' AND `actionId`='selectRecordHistory');