diff --git a/bonus-modules/bonus-system/src/main/resources/mapper/att/AttSourceDataMapper.xml b/bonus-modules/bonus-system/src/main/resources/mapper/att/AttSourceDataMapper.xml index 5fe6ae8..bd169a7 100644 --- a/bonus-modules/bonus-system/src/main/resources/mapper/att/AttSourceDataMapper.xml +++ b/bonus-modules/bonus-system/src/main/resources/mapper/att/AttSourceDataMapper.xml @@ -105,251 +105,252 @@ - - - - - - + delete from att_source_data where att_current_day = #{date}; - update att_data set att_current_time = null,att_status = 0,att_address = null,att_lon = null,att_lat = null where att_current_day = #{date}; - update att_data_update set att_current_time = null,att_status = 0,att_address = null,att_lon = null,att_lat = null where att_current_day = #{date}; + delete from att_data where att_current_day = #{date}; + delete from att_data_update where att_current_day = #{date}; - + + + + + - - - - - - - - - - - - - - - - - + select name, id_number, '0' as orgId, '0' as orgName, + attendance_date as attCurrentDay, attendance_time as attCurrentTime, + CASE attendance_type WHEN '上班' THEN 1 ELSE 2 END as attType, + '0' as attAddress, lon as attLon, lat as attLat, '1' as dataSource + from gz_cloud.fc_sup_attendance sup + where sup.attendance_date + >= #{pushDate} - - - = #{pushDate} - - and u.name != '') a - + + + = #{pushDate} + + and is_wechat != 1 + - + - + - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + \ No newline at end of file