Explorar el Código

修改了“车辆信息”

duyong hace 4 años
padre
commit
f52f13b385

+ 2 - 2
src/main/java/com/steerinfo/baseinfo/meterbasecar/controller/MeterBaseCarController.java

@@ -441,7 +441,7 @@ public class MeterBaseCarController extends BaseRESTfulController {
                             car.setCarCarrierWeight(new BigDecimal(params.get("carCarrierWeight").toString()));
                             car.setCarCarrierWeight(new BigDecimal(params.get("carCarrierWeight").toString()));
                         }
                         }
                         if (params.get("carSelfWeight") != null) {
                         if (params.get("carSelfWeight") != null) {
-                            car.setCarSelfWeight(new BigDecimal(params.get("carSelfWeight").toString()));
+                            car.setCarSelfWeight(new BigDecimal(String.valueOf(params.get("carSelfWeight")));
                         }
                         }
                         car.setMnemonicCode(params.get("mnemonicCode").toString());
                         car.setMnemonicCode(params.get("mnemonicCode").toString());
                         car.setCustomerSupplierName(params.get("customerSupplierName").toString());
                         car.setCustomerSupplierName(params.get("customerSupplierName").toString());
@@ -515,7 +515,7 @@ public class MeterBaseCarController extends BaseRESTfulController {
         }
         }
         return success();
         return success();
     }
     }
-    
+
 
 
     @ApiOperation(value = "批量删除", notes = "根据url的id来指定删除对象")
     @ApiOperation(value = "批量删除", notes = "根据url的id来指定删除对象")
     @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")
     @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "String")