|
|
@@ -85,7 +85,10 @@ public class hotelAction extends ActionSupport implements ServletRequestAware {
|
|
|
hotelEto = gson.fromJson(json.toString(), new TypeToken<HotelEto>() {}.getType());
|
|
|
Hotel hotel = new Hotel();
|
|
|
BeanUtils.copyProperties(hotelEto,hotel);
|
|
|
- int hotelId = hotel.getId()!= null ? hotel.getId():Math.toIntExact(UUIDUtil.generateID());
|
|
|
+ int hotelId = hotel.getId()!=null ? hotel.getId():Math.toIntExact(UUIDUtil.generateID());
|
|
|
+ if(hotelId==0){
|
|
|
+ hotelId = Math.toIntExact(UUIDUtil.generateID());
|
|
|
+ }
|
|
|
int m = 0;
|
|
|
//详细图附件
|
|
|
List<FileInfo> fileList = JSONArray.parseArray(fileListJson, FileInfo.class);
|