|
@@ -171,6 +171,7 @@
|
|
|
<result column="addr" property="addr"/>
|
|
|
<result column="phone" property="phone"/>
|
|
|
<result column="has_our_door_device" property="hasOurDoorDevice"/>
|
|
|
+ <result column="older_status" property="olderStatus"/>
|
|
|
|
|
|
<collection property="olderContactList" ofType="com.care.bigscreen.vo.BigSreenOlderContactVO">
|
|
|
<id column="contact_id" property="contactId"/>
|
|
@@ -195,7 +196,7 @@
|
|
|
a.addr,
|
|
|
a.phone,
|
|
|
(case when (select count(1) from care_device b where b.dev_type='2' and b.id in (select c.dev_id from care_older_device_rel c where c.older_id = a.id)) > 0 then 'Y' else 'N' end) has_our_door_device,
|
|
|
- (select sdc.name from sys_dim_code sdc where sdc.dim_code = a.status and sdc.type_code='older_status') olderStatus,
|
|
|
+ (select sdc.name from sys_dim_code sdc where sdc.dim_code = a.status and sdc.type_code='older_status') older_status,
|
|
|
d.id contact_id,
|
|
|
d.name contact_name,
|
|
|
d.phone contact_phone,
|