第一套
选择题
操作题一
let AbstractTrigger = require('AbstractTrigger');class MyTrigger extends AbstractTrigger {execute(context,param){let bookDetail={bookCode:"1001",cnt:10,bookName:"中国上下五千年",bookAuth:"墨人",bookDate:"2021-11-11",isexist:"1",bookTypeName:"历史类"}let res=ObjectStore.insert("GT1336AT1.GT1336AT1.bookDetail",bookDetail,"9e43cb4dList");return {res};}}exports({"entryPoint":MyTrigger});
操作题二
let AbstractTrigger = require('AbstractTrigger');class MyTrigger extends AbstractTrigger {execute(context,param){let selectBookById={id:"2921403537936640"}let res=ObjectStore.selectById("GT1336AT1.GT1336AT1.bookDetail",selectBookById)return {res};}}exports({"entryPoint":MyTrigger});
操作题三
let AbstractTrigger = require('AbstractTrigger');class MyTrigger extends AbstractTrigger {execute(context,param){let BookdetailList=[{bookCode:"1001",cnt:10,bookName:"中国上下五千年"bookAuth:"墨人",bookDate:"2021-11-11",isexist:"1",bookTypeName:"历史类"}, {bookCode:"1002",cnt:110,bookName:"工业APP开发认知",bookAuth:"新道",bookDate:"2021-11-20",isexist:"1",bookTypeName:"工业互联网类"},{bookCode:"1003",cnt:120,bookName:"工业APP低代码开发",bookAuth:"新道",bookDate:"2022-09-20",isexist:"1",bookTypeName:"工业互联网类"},{bookCode:"1002",cnt:130,bookName:"工业APP云原生开发",bookAuth:"新道",bookDate:"2022-10-20",isexist:"1",bookTypeName:"工业互联网类"},]//let setBookdetailList = [];let res=ObjectStore.insertBatch("GT1336AT1.GT1336AT1.bookDetail",bookDetailList,"9e43cb4dList")return {res};}}exports({"entryPoint":MyTrigger});
操作题四
let AbstractTrigger = require('AbstractTrigger');class MyTrigger extends AbstractTrigger {execute(context,param){let updatebookDetail={bookCode:"1001",cnt:10,bookName:"中国上下五千年",bookAuth:"墨人",bookDate:"2021-11-11",isexist:"1",bookTypeName:"历史类"}let res=ObjectStore.updateById("GT1336AT1.GT1336AT1.bookDetail",updatebookDetail,"9e43cb4dList")return {res};}}exports({"entryPoint":MyTrigger});
操作题五
let AbstractTrigger = require('AbstractTrigger');class MyTrigger extends AbstractTrigger {execute(context,param){let selectBookList=[{id:"2945075314266368"},{id:"2945063837733120"},{id:"2921301404946688"},{id:"2945066849505536"}]let res=ObjectStore.selectBatchIds("GT1336AT1.GT1336AT1.bookDetail",selectBookList)return {};}}exports({"entryPoint":MyTrigger});
操作题六
let AbstractTrigger = require('AbstractTrigger');class MyTrigger extends AbstractTrigger {execute(context,param){let deleteBookBatch=[{id:"2945075314266368"},{id:"2945063837733120"},{id:"2921301404946688"},{id:"2945066849505536"}]let res=ObjectStore.deleteBatch("GT1336AT1.GT1336AT1.bookDetail",deleteBookBatch,"9e43cb4dList")return {};}}exports({"entryPoint":MyTrigger});
操作题七
let AbstractTrigger = require('AbstractTrigger');class MyTrigger extends AbstractTrigger {execute(context,param){let updateBookDetailBatch=[{bookCode:"1001",cnt:10,bookName:"中国上下五千年"bookAuth:"墨人",bookDate:"2021-11-11",isexist:"1",bookTypeName:"历史类"}, {bookCode:"1002",cnt:110,bookName:"工业APP开发认知",bookAuth:"新道",bookDate:"2021-11-20",isexist:"1",bookTypeName:"工业互联网类"},{bookCode:"1003",cnt:120,bookName:"工业APP低代码开发",bookAuth:"新道",bookDate:"2022-09-20",isexist:"1",bookTypeName:"工业互联网类"},{bookCode:"1002",cnt:130,bookName:"工业APP云原生开发",bookAuth:"新道",bookDate:"2022-10-20",isexist:"1",bookTypeName:"工业互联网类"},]let res=ObjectStore.updateBatch("GT1336AT1.GT1336AT1.bookDetail",updateBookDetailBatch,"9e43cb4dList")return {};}}exports({"entryPoint":MyTrigger});
操作题八
let AbstractTrigger = require('AbstractTrigger');class MyTrigger extends AbstractTrigger {execute(context,param){let deleteBookById={id:"2921403537936640"}let res=ObjectStore.deleteById("GT1336AT1.GT1336AT1.bookDetail",deleteBookById,"9e43cb4dList")return {};}}exports({"entryPoint":MyTrigger});