| | |
| | | mapper.updateFileParam("tb_file_param","conn_res_bad","float NOT NULL DEFAULT 0 "); |
| | | } |
| | | */ |
| | | //删除tb_test_param表重新插入默认数据 |
| | | /*//删除tb_test_param表重新插入默认数据 |
| | | mapper.dropTestParam(); |
| | | //重新建表tb_test_param |
| | | mapper.createTestParam(); |
| | | //插入默认数据 |
| | | mapper.insertTestParam(); |
| | | mapper.insertTestParam();*/ |
| | | |
| | | //检测字段是否存在 |
| | | int vol1d2LowCoeK1=mapper.checkfileParm("tb_test_param","vol1d2_low_coe_k1"); |
| | | if(vol1d2LowCoeK1==0){ |
| | | //检测没有则添加 |
| | | mapper.updateFileParam("tb_test_param","vol1d2_low_coe_k1","float not null DEFAULT 0.96"); |
| | | } |
| | | //检测字段是否存在 |
| | | int vol1d2HighCoeK2=mapper.checkfileParm("tb_test_param","vol1d2_high_coe_k2"); |
| | | if(vol1d2HighCoeK2==0){ |
| | | //检测没有则添加 |
| | | mapper.updateFileParam("tb_test_param","vol1d2_high_coe_k2","float not null DEFAULT 1.44"); |
| | | } |
| | | |
| | | //检测字段是否存在 |
| | | int vol6LowCoeK1=mapper.checkfileParm("tb_test_param","vol6_low_coe_k1"); |
| | | if(vol6LowCoeK1==0){ |
| | | //检测没有则添加 |
| | | mapper.updateFileParam("tb_test_param","vol6_low_coe_k1","float not null DEFAULT 5.4"); |
| | | } |
| | | |
| | | //检测字段是否存在 |
| | | int vol6HighCoeK2=mapper.checkfileParm("tb_test_param","vol6_high_coe_k2"); |
| | | if(vol6HighCoeK2==0){ |
| | | //检测没有则添加 |
| | | mapper.updateFileParam("tb_test_param","vol6_high_coe_k2","float not null DEFAULT 7.05"); |
| | | } |
| | | |
| | | //检测字段是否存在 |
| | | int chainResChange=mapper.checkfileParm("tb_test_param","chain_res_change"); |
| | | if(chainResChange==0){ |
| | | //检测没有则添加 |
| | | mapper.updateFileParam("tb_test_param","chain_res_change","float not null DEFAULT 160.0"); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |