diff --git a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/biz/datapool/mapper/xml/CareDataPoolMapper.xml b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/biz/datapool/mapper/xml/CareDataPoolMapper.xml index a4d87a41..7739e5d3 100644 --- a/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/biz/datapool/mapper/xml/CareDataPoolMapper.xml +++ b/nursing-unit-services/nu-services-biz/src/main/java/com/nu/modules/biz/datapool/mapper/xml/CareDataPoolMapper.xml @@ -4,45 +4,23 @@ select - id as bizId, - nu_id as nuId, - nu_name as nuName, - elder_id as elderId, - elder_name as elderName, - (case when iz_package = 'Y' then '' else directive_id end) as directiveId, - (case when iz_package = 'Y' then '' else directive_name end) as directiveName, - (case when iz_package = 'Y' then directive_id else '' end) as packageId, - (case when iz_package = 'Y' then directive_name else '' end) as packageName, - iz_package as izPackage, - CONCAT(CURDATE(), ' ',STR_TO_DATE(start_time, '%H:%i')) as startTime, - CONCAT(CURDATE(), ' ',STR_TO_DATE(end_time, '%H:%i')) as endTime, - cycle_type_id as cycleTypeId, - cycle_type as cycleType, - cycle_value as cycleValue, - preview_file as previewFile, - net_preview_file as netPreviewFile, - preview_file_small as previewFileSmall, - net_preview_file_small as netPreviewFileSmall, - mp3_file as mp3File, - net_mp3_file as netMp3File, - mp4_file as mp4File, - net_mp4_file as netMp4File, - service_duration as serviceDuration, - service_content as serviceContent - from nu_biz_nu_care_directive_plan + a.id as bizId, + a.nu_id as nuId, + a.directive_id as directiveId, + a.iz_package as izPackage, + CONCAT(CURDATE(), ' ',STR_TO_DATE(a.start_time, '%H:%i')) as startTime, + a.cycle_type_id as cycleTypeId, + a.cycle_value as cycleValue, + a.opt_time as optTime, + a.opt_count as optCount + from nu_biz_nu_care_directive_plan a where id = #{id} + +