Browse Source

【社区服务】修复:1.发起服务时候拼接的服务目标ID_PATH错误。2.服务记录列表查询加上当前组织条件

master
wangxianzhang 3 years ago
parent
commit
af11feb2a6
  1. 3
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/IcServiceRecordDao.java
  2. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcServiceRecordServiceImpl.java
  3. 4
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcServiceRecordDao.xml

3
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/IcServiceRecordDao.java

@ -25,5 +25,6 @@ public interface IcServiceRecordDao extends BaseDao<IcServiceRecordEntity> {
@Param("serviceTimeStart") Date serviceTimeStart, @Param("serviceTimeStart") Date serviceTimeStart,
@Param("serviceTimeEnd") Date serviceTimeEnd, @Param("serviceTimeEnd") Date serviceTimeEnd,
@Param("serviceStatus") String serviceStatus, @Param("serviceStatus") String serviceStatus,
@Param("satisfaction") String satisfaction); @Param("satisfaction") String satisfaction,
@Param("searchOrgIdPath") String searchOrgIdPath);
} }

2
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/IcServiceRecordServiceImpl.java

@ -260,7 +260,7 @@ public class IcServiceRecordServiceImpl extends BaseServiceImpl<IcServiceRecordD
if ("0".equals(agencyInfo.getPid())) { if ("0".equals(agencyInfo.getPid())) {
return new String[]{ agencyInfo.getId(), agencyInfo.getOrganizationName() }; return new String[]{ agencyInfo.getId(), agencyInfo.getOrganizationName() };
} }
return new String[]{ agencyInfo.getPids().concat(":").concat(agencyInfo.getPid()), agencyInfo.getOrganizationName() }; return new String[]{ agencyInfo.getPids().concat(":").concat(agencyInfo.getId()), agencyInfo.getOrganizationName() };
} else if ("grid".equals(scopeObjectType)) { } else if ("grid".equals(scopeObjectType)) {
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(scopeObjectId); GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(scopeObjectId);
// 网格的pids是到社区的 // 网格的pids是到社区的

4
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/IcServiceRecordDao.xml

@ -36,6 +36,7 @@
record.SERVICE_STATUS, record.SERVICE_STATUS,
record.SERVICE_PEOPLE_NUMBER record.SERVICE_PEOPLE_NUMBER
from ic_service_record record from ic_service_record record
inner join ic_service_scope scope on (scope.DEL_FLAG = '0' and record.ID = scope.SERVICE_RECORD_ID)
left join ic_service_feedback feedback on (record.ID = feedback.SERVICE_RECORD_ID) left join ic_service_feedback feedback on (record.ID = feedback.SERVICE_RECORD_ID)
<where> <where>
record.DEL_FLAG = '0' record.DEL_FLAG = '0'
@ -61,6 +62,9 @@
<if test="satisfaction != null and satisfaction != ''"> <if test="satisfaction != null and satisfaction != ''">
and feedback.SATISFACTION = #{satisfaction} and feedback.SATISFACTION = #{satisfaction}
</if> </if>
<if test="searchOrgIdPath != null and searchOrgIdPath != ''">
and scope.OBJECT_ID_PATH like CONCAT(#{searchOrgIdPath}, '%')
</if>
</where> </where>
order by record.CREATED_TIME desc order by record.CREATED_TIME desc
</select> </select>

Loading…
Cancel
Save