| | |
| | | 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"); |
| | | } |
| | | |
| | | } |
| | | } |