Browse Source

pc录入的需求服务地址显示小区的详细地址+小区名称;数据分析-服务措施分析排除已取消的

dev_shibei_match
yinzuomei 4 years ago
parent
commit
eb2f7dfa3e
  1. 4
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/demand/PageListAnalysisFormDTO.java
  2. 6
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcUserDemandRecServiceImpl.java
  3. 3
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcUserDemandRecDao.xml

4
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/demand/PageListAnalysisFormDTO.java

@ -49,4 +49,8 @@ public class PageListAnalysisFormDTO implements Serializable {
private Boolean pageFlag; private Boolean pageFlag;
/**
* 数据分析-服务措施分析排除已取消
*/
private String excludeStatus;
} }

6
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcUserDemandRecServiceImpl.java

@ -231,10 +231,7 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD
} }
HouseInfoDTO houseInfoDTO=houseInfoRes.getData().get(NumConstant.ZERO); HouseInfoDTO houseInfoDTO=houseInfoRes.getData().get(NumConstant.ZERO);
insertEntity.setServiceLocation(houseInfoDTO.getNeighborAddress(). insertEntity.setServiceLocation(houseInfoDTO.getNeighborAddress().
concat(houseInfoDTO.getNeighborHoodName()) concat(houseInfoDTO.getNeighborHoodName()));
.concat(houseInfoDTO.getBuildingName())
.concat(houseInfoDTO.getUnitName())
.concat(houseInfoDTO.getDoorName()));
insertEntity.setLongitude(houseInfoDTO.getBuildingLongitude()); insertEntity.setLongitude(houseInfoDTO.getBuildingLongitude());
insertEntity.setLatitude(houseInfoDTO.getBuildingLatitude()); insertEntity.setLatitude(houseInfoDTO.getBuildingLatitude());
baseDao.insert(insertEntity); baseDao.insert(insertEntity);
@ -726,6 +723,7 @@ public class IcUserDemandRecServiceImpl extends BaseServiceImpl<IcUserDemandRecD
*/ */
@Override @Override
public PageData<DemandRecResultDTO> pageListAnalysis(PageListAnalysisFormDTO formDTO) { public PageData<DemandRecResultDTO> pageListAnalysis(PageListAnalysisFormDTO formDTO) {
formDTO.setExcludeStatus(UserDemandConstant.CANCELED);
if("agency".equals(formDTO.getOrgType())){ if("agency".equals(formDTO.getOrgType())){
//找到当前组织的所有上级,再拼接上自己 //找到当前组织的所有上级,再拼接上自己
Result<CustomerAgencyDTO> customerAgencyDTOResult=govOrgOpenFeignClient.getAgencyById(formDTO.getOrgId()); Result<CustomerAgencyDTO> customerAgencyDTOResult=govOrgOpenFeignClient.getAgencyById(formDTO.getOrgId());

3
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcUserDemandRecDao.xml

@ -298,6 +298,9 @@
<if test="null != endDateId and endDateId != '' "> <if test="null != endDateId and endDateId != '' ">
AND DATE_FORMAT(r.REPORT_TIME,'%Y-%m-%d') <![CDATA[ <= ]]> #{endDateId} AND DATE_FORMAT(r.REPORT_TIME,'%Y-%m-%d') <![CDATA[ <= ]]> #{endDateId}
</if> </if>
<if test="null != excludeStatus and excludeStatus !='' ">
and r.STATUS !=#{excludeStatus}
</if>
order by r.WANT_SERVICE_TIME desc,r.REPORT_TIME asc order by r.WANT_SERVICE_TIME desc,r.REPORT_TIME asc
</select> </select>

Loading…
Cancel
Save