双中心修改
This commit is contained in:
		
							parent
							
								
									bf8e2226a7
								
							
						
					
					
						commit
						abb3e1bb47
					
				| @ -3,20 +3,22 @@ import promptAction from '@ohos.promptAction' | ||||
| import router from '@ohos.router' | ||||
| import { dateFormat } from '../utils/tools' | ||||
| import FileUtil from '../../common/utils/File' | ||||
| import AccountTable from '../../common/database/tables/AccountTable'; | ||||
| import MA_SYSSET from '../../common/constants/MA_SYSSET'; | ||||
| import { takePhoto, deleteAllFileByPiC } from '../../common/service/videoService' | ||||
| import AccountTable from '../../common/database/tables/AccountTable' | ||||
| import MA_SYSSET from '../../common/constants/MA_SYSSET' | ||||
| import { takePhoto } from '../../common/service/videoService' | ||||
| 
 | ||||
| import { | ||||
|   getDataBaseTable, | ||||
|   upDateTable, | ||||
|   getMySystemSetTable, | ||||
|   delSyncTable, | ||||
|   upDataZhongxinginitialization | ||||
|   getDataBaseTable, | ||||
|   getMySystemSetTable, | ||||
|   upDataZhongxinginitialization, | ||||
|   upDateTable | ||||
| } from '../../common/service/initable' | ||||
| import { GlobalConfig } from '../../config/index' | ||||
| import testNapi from '@ohos.hiserialsdk' | ||||
| 
 | ||||
| let num = 0 | ||||
| 
 | ||||
| export async function getliushuiNum(context) { | ||||
|   console.log('getLiushuihao') | ||||
|   const fileUtil = new FileUtil(context) | ||||
| @ -39,6 +41,7 @@ export async function getliushuiNum(context){ | ||||
|     // return str
 | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| //配置流水号
 | ||||
| export async function setliushuiNum(context) { | ||||
|   const fileUtil = new FileUtil(context) | ||||
| @ -79,7 +82,7 @@ export async function getDoubleCeneterTable(param) { | ||||
|   return new Promise(async (reslove, reject) => { | ||||
|     // MA_SYSSET双中心下做合并表格操作
 | ||||
|     const db = new AccountTable(() => { | ||||
|     }, MA_SYSSET); | ||||
|     }, MA_SYSSET, param.context); | ||||
|     db.getRdbStore(() => { | ||||
|       db.query('0', async (array) => { | ||||
|         if (array.length) { | ||||
| @ -130,6 +133,7 @@ export async function getDoubleCeneterTable(param) { | ||||
|   }) | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| //单中心存表
 | ||||
| export async function getSingleCenterTable(param) { | ||||
|   return new Promise((reslove, reject) => { | ||||
| @ -259,8 +263,10 @@ export async function takePhotoFn(context) { | ||||
|     } | ||||
|   }, 3000) | ||||
| } | ||||
| 
 | ||||
| let fd | ||||
| const devPath = "/dev/ttyS3" | ||||
| 
 | ||||
| function openChuankouFn(callback) { | ||||
|   console.log('SerialOpen in indexservice, path=' + devPath) | ||||
| 
 | ||||
| @ -323,7 +329,9 @@ function getChuankouFnMsg() { | ||||
|   // let revTestInfo = testNapi?.SerialRecv(globalThis.fd, timeout);
 | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| let chuankou | ||||
| 
 | ||||
| export async function getChuankouFn() { | ||||
|   if (globalThis.fd) { | ||||
|     return | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user