| | |
| | | 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"); |
| | |
| | | mapper.updateFileParam("tb_test_param","chain_res_change","float not null DEFAULT 160.0"); |
| | | } |
| | | |
| | | //检测字段是否存在 |
| | | int serGoodCoeK6=mapper.checkfileParm("tb_test_param","ser_good_coe_k6"); |
| | | if(serGoodCoeK6==0){ |
| | | //检测没有则添加 |
| | | mapper.updateFileParam("tb_test_param","ser_good_coe_k6","float not null DEFAULT 60.0"); |
| | | } |
| | | |
| | | //检测字段是否存在 |
| | | int serBadCoeK7=mapper.checkfileParm("tb_test_param","ser_bad_coe_k7"); |
| | | if(serBadCoeK7==0){ |
| | | //检测没有则添加 |
| | | mapper.updateFileParam("tb_test_param","ser_bad_coe_k7","float not null DEFAULT 20.0"); |
| | | } |
| | | |
| | | } |
| | | } |