将以下c#代码转为java代码 public virtual void AreaChangedResetPriceListRoom roomList ListRoom oldRoomList if roomList == null roomListCount == 0 return; ListPriceC
public void AreaChangedResetPrice(List
ParamsRoomInfoDto paramsRoomInfoDto = _iParamSetttingPublicService.Instance.GetRoomInfoParams(roomList.get(0).getProjGUID());
//0.计算价格信息,以及生成价格修改日志信息
for (Room room : roomList) {
Room item = oldRoomList.stream().filter(r -> r.getRoomGUID().equals(room.getRoomGUID())).findFirst().orElse(null);
if (item != null) {
PriceHelper.CalcRoomPrice(room, paramsRoomInfoDto);
room.setIsAreaModify(0);
_priceAggregateService.Instance.GetRoomPriceChanged(room, item, priceChgLogs);
}
}
//1.更新房间
_publicServiceToolTools.RoomGeneratePublicService.BatchUpdateRooms(roomList);
//2.价格管控更新新增价格信息
if (!priceChgLogs.isEmpty()) {
_backgroundJobManager.Enqueue(new CreatePriceChgBatchJobArg(priceChgLogs));
}
原文地址: https://www.cveoy.top/t/topic/ic7f 著作权归作者所有。请勿转载和采集!