| 
					
				 | 
			
			
				@@ -10,20 +10,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const audit = require('../app/const/audit'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const mysql = require('mysql'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const config = process.argv.splice(2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const mysqlOptions = require(`../config/config.${config}`)({ baseDir: __dirname + '/app', root: __dirname, name: 'calc' }).mysql; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const pool = mysql.createPool({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // host 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    host: '192.168.1.76', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 端口号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    port: '3306', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 用户名 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    user: 'zh_dev', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 密码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    password: 'zongheng2019', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 数据库名 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    database: 'calculation', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // database: 'calc_copy_pro', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const pool = mysql.createPool(mysqlOptions); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const querySql = async function (sql, sqlParam) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return new Promise(function (resolve, reject) { 
			 |