|
@@ -4,8 +4,12 @@ package com.bofeng.service;
|
|
import com.baomidou.mybatisplus.toolkit.IdWorker;
|
|
import com.baomidou.mybatisplus.toolkit.IdWorker;
|
|
import com.bofeng.dao.MsReportMapper;
|
|
import com.bofeng.dao.MsReportMapper;
|
|
import com.bofeng.dao.MsSuspectedMapper;
|
|
import com.bofeng.dao.MsSuspectedMapper;
|
|
|
|
+import com.bofeng.dao.UptownHouseMapper;
|
|
|
|
+import com.bofeng.dao.UptownUnitMapper;
|
|
import com.bofeng.entity.MsReport;
|
|
import com.bofeng.entity.MsReport;
|
|
import com.bofeng.entity.MsSuspected;
|
|
import com.bofeng.entity.MsSuspected;
|
|
|
|
+import com.bofeng.entity.UptownHouse;
|
|
|
|
+import com.bofeng.entity.UptownUnit;
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
import org.joda.time.DateTime;
|
|
import org.joda.time.DateTime;
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
@@ -36,6 +40,12 @@ public class RiBaoService {
|
|
@Autowired
|
|
@Autowired
|
|
private RiBaoService msReportService;
|
|
private RiBaoService msReportService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private UptownHouseMapper uptownHouseMapper;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private UptownUnitMapper uptownUnitMapper;
|
|
|
|
+
|
|
public List<MsSuspected> getByReportId(Long reportId) {
|
|
public List<MsSuspected> getByReportId(Long reportId) {
|
|
return msSuspectedMapper.selectByReportId(reportId);
|
|
return msSuspectedMapper.selectByReportId(reportId);
|
|
}
|
|
}
|
|
@@ -70,6 +80,17 @@ public class RiBaoService {
|
|
return msReport;
|
|
return msReport;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ //获取今天数据
|
|
|
|
+ public String getHouseStr(Long houseId) {
|
|
|
|
+ UptownHouse house = uptownHouseMapper.selectById(houseId);
|
|
|
|
+ UptownUnit unit = uptownUnitMapper.selectById(house.getUnitId());
|
|
|
|
+ StringBuffer sb = new StringBuffer();
|
|
|
|
+ sb.append(unit.getRidgepole()).append("栋").append(unit.getUnit()).append("单元").append(house.getDoorplate()).append("室");
|
|
|
|
+ String houseStr = sb.toString();
|
|
|
|
+ return houseStr;
|
|
|
|
+ }
|
|
|
|
+
|
|
//上报
|
|
//上报
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
|
|
public Integer addReport(Long userCreate) {
|
|
public Integer addReport(Long userCreate) {
|