1.ops开启任务

2.openApi开启接口权限


2.表中添加时间节点
在data_dictanory表中插入一条sql(GROUP_NAME: SYNCITEMREPORTDATE, KEY_NAME: LASTITEMREPORTSYNCTIME),初始时间需要设置一下
insert into data_dictionary(group_name,key_name,key_value) values ('SYNCITEMREPORTDATE','LASTITEMREPORTSYNCTIME','2024-01-01 14:33:07')
3.创建数据视图,根据实际情况修改
create or replace view sync_item_report asselect t.tjh000 reportNo ,--体检报告编号a.sfzh00 idCard, --体检人身份证a.xm0000 name, --体检人姓名a.dh0000 mobile ,--体检人手机号a.xb0000 gender, --性别:0-男,1-女a.nl0000 age, --年龄'' orderNum, --订单号t.bgurl0 url, --链接地址'0' urlType ,--地址类型:0 三方链接页面。'1' itemReportType, --报告类型 0. 普通,1. 影像t.SFYWID examBarCode, --条形编码号(select sfxmmc from hm_zd_tjsqxm where sqxmid=t.sqxmid) title ,--大项名称t.KSCZY0 doctor ,--报告医生t.JCYSXM auditDoc, --审核医生t.jcksid agentDepartmentId, --内网科室id'大连市友谊医院健康管理中心' agentDepartmentName, --医院体检科室名称decode(A.ZJRQ00, '00000000', null, null, null,substr(A.ZJRQ00,1,4)||'-'||substr(A.ZJRQ00,5,2)||'-'||substr(A.ZJRQ00,7,2)||' '||substr(A.ZJSJ00,1,5)) reportDate, --报告时间decode(A.DJRQ00, null, null, '00000000', null,substr(A.DJRQ00,1,4)||'-'||substr(A.DJRQ00,5,2)||'-'||substr(A.DJRQ00,7,2))||' '||substr(A.DJSJ00,1,5) examDate ,--体检时间''summary --小结from hm_yw_tjyw00 t ,hm_yw_tjz000 awhere t.tjh000=a.tjh000 and jcksid in ('23','104','24')and t.JCBZ00='1'and a.zswc00='1' and t.bgurl0 is not null;
4.打包添加配置
appKey=
appSecret=
signKey=
accessTokenUrl=https://api.mytijian.com/open-api/V2/accesstoken?appKey=
nonceUrl=https://api.mytijian.com/open-api/V2/nonce?accessToken=
syncItemReportUrl= https://api.mytijian.com/open-api/V2/ws/examreport/syncItemReport?accessToken=
5.打包
文档更新时间: 2024-02-01 13:59