|
@ -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> |
|
|