|
@@ -1,5 +1,6 @@
|
|
|
package com.idea.customerManagement.service;
|
|
|
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.io.FileUtil;
|
|
|
import cn.hutool.core.io.IoUtil;
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
@@ -32,8 +33,10 @@ import com.idea.util.ReplaceWord;
|
|
|
import com.idea.util.WordToPdfUtil;
|
|
|
import com.rockstar.common.base.BaseService;
|
|
|
import com.rockstar.common.domain.AjaxResult;
|
|
|
+import com.rockstar.frame.model.FrameUser;
|
|
|
import com.rockstar.frame.model.extend.DateTrans;
|
|
|
import com.rockstar.frame.model.extend.Tablepar;
|
|
|
+import com.rockstar.frame.service.FrameUserService;
|
|
|
import com.rockstar.shiro.util.ShiroUtils;
|
|
|
import com.rockstar.system.service.SysDictService;
|
|
|
import com.rockstar.util.StringUtils;
|
|
@@ -76,6 +79,8 @@ public class RoomSelectionInfoService implements BaseService<RoomSelectionInfo,
|
|
|
private SysDictService sysDictService;
|
|
|
@Autowired
|
|
|
private ParkInfoMapper parkInfoMapper;
|
|
|
+ @Autowired
|
|
|
+ private FrameUserService frameUserService;
|
|
|
|
|
|
|
|
|
@Override
|
|
@@ -364,6 +369,29 @@ public class RoomSelectionInfoService implements BaseService<RoomSelectionInfo,
|
|
|
return selectByPrimaryKey(id);
|
|
|
}
|
|
|
|
|
|
+ public ParkRoomResponse getByHouseId(String houseId,String customerManagementId) {
|
|
|
+
|
|
|
+ ParkRoom parkRoom = parkRoomMapper.selectByPrimaryKey(houseId);
|
|
|
+ RoomSelectionInfoExample example = new RoomSelectionInfoExample();
|
|
|
+ example.createCriteria().andHouseIdEqualTo(houseId).andCustomerManagementIdEqualTo(customerManagementId);
|
|
|
+ List<RoomSelectionInfo> list = selectByExample(example);
|
|
|
+ RoomSelectionInfo roomSelectionInfo = list.get(0);
|
|
|
+ String createdId = roomSelectionInfo.getCreatedId();
|
|
|
+ Date createdAt = roomSelectionInfo.getCreatedAt();
|
|
|
+ parkRoom.setCreatedAt(createdAt);
|
|
|
+ FrameUser frameUser = frameUserService.selectByPrimaryKey(createdId);
|
|
|
+
|
|
|
+ ParkRoomResponse response = new ParkRoomResponse();
|
|
|
+ BeanUtil.copyProperties(parkRoom, response);
|
|
|
+ response.setCreatedName(frameUser.getTruename());
|
|
|
+ response.setCreatedAt(createdAt);
|
|
|
+
|
|
|
+
|
|
|
+ return response;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 房源确认单 下载
|
|
|
*
|