bug修改

This commit is contained in:
guo 2024-01-23 11:53:39 +08:00
parent 4a29f6c8b1
commit 5ea7c8005a
2 changed files with 2 additions and 1 deletions

View File

@ -295,7 +295,7 @@ public class ExteriorScaffoldingCurrentDataServiceImpl extends ServiceImpl<Exter
JSONObject valueObject = calcValue.getJSONObject(j);
Float dataTotal = valueObject.getFloat("value");
exteriorScaffoldingCurrentData.setData(dataTotal + sensor.getFiducialValue());
exteriorScaffoldingCurrentData.setData(dataTotal != null ? dataTotal : 0 + sensor.getFiducialValue());
exteriorScaffoldingCurrentData.setDataThis(valueObject.getFloat("variation"));
Float rateChange = valueObject.getFloat("rateChange");
exteriorScaffoldingCurrentData.setDataRate(rateChange);

View File

@ -307,6 +307,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers("/xmgl/weight/weighBookVehicleInfo/list").permitAll()
.antMatchers("/xmgl/weight/weighPic/add").permitAll()
.antMatchers("/upload/image").permitAll()
.antMatchers("/xmgl/steelStructureCurrentData/exportData").permitAll()
.antMatchers(HttpMethod.OPTIONS, "/**").anonymous()
.anyRequest().authenticated() // 剩下所有的验证都需要验证.
.and()