Update VehicleServiceImpl.java
This commit is contained in:
@@ -32,8 +32,8 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
|
||||
/**
|
||||
* @description 服务实现
|
||||
* @author lyd
|
||||
* @description 服务实现
|
||||
* @date 2022-10-18
|
||||
**/
|
||||
@Service
|
||||
@@ -95,8 +95,6 @@ public class VehicleServiceImpl implements VehicleService {
|
||||
String vehicle_type = WhereJson.getString("vehicle_type");
|
||||
|
||||
JSONArray resultCodeArr = new JSONArray();
|
||||
int num = WhereJson.getIntValue("num");
|
||||
for (int i = 0; i < num; i++) {
|
||||
VehicleDto dto = new VehicleDto();
|
||||
dto.setVehicle_id(IdUtil.getSnowflake(1, 1).nextId());
|
||||
dto.setVehicle_code(WhereJson.getString("vehicle_code"));
|
||||
@@ -109,7 +107,6 @@ public class VehicleServiceImpl implements VehicleService {
|
||||
JSONObject json = JSONObject.parseObject(JSON.toJSONString(dto));
|
||||
wo.insert(json);
|
||||
resultCodeArr.add(dto.getVehicle_code());
|
||||
}
|
||||
return resultCodeArr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user