上传的图像用于项目: 'CST技术支持'
  1. CST技术支持
  2. SLAL2-939

堀场删除生茶站中测试数据

XMLWord打印

    • Icon: Change Change
    • 解决结果: 完成
    • Icon: Medium Medium
    • 202008
    • Y-易路产品-
    • 堀场:horiba
    • 时间管理
    • 隐藏

      1.仅删除所有葛勤的数据, 时间管理中:打卡记录、考勤明细:
      delete from hr_attendance where employee_id=(select id from hr_employee where employee_number='EM20200822070');
      delete from attendance_period where employee_id=(select id from hr_employee where employee_number='EM20200822070');

      补充报表删除:
      delete from attendance_count where employee_id=(select id from hr_employee where employee_number='EM20200822070');

      2.删除账号‘曹飞艳’的部分单据
      (1)2020/8/25日及之前的曹飞艳的打卡记录
      (2)2020/8/25日及之前的曹飞艳的考勤明细
      (3)曹飞艳的补卡记录BK202008230111
      update hr_attendance set active=False where attendance_date<='2020-08-25' and employee_id=(select id from hr_employee where employee_number='h10347');
      update attendance_period set active=False where attendance_date<='2020-08-25' and employee_id=(select id from hr_employee where employee_number='h10347');
      update hr_attendance_adjustment set active=False where employee_id=(select id from hr_employee where employee_number='h10347');
      补充报表删除:
      delete from attendance_count where name<='2020-08-25' and employee_id=(select id from hr_employee where employee_number='h10347');

      显示
      1.仅删除所有葛勤的数据, 时间管理中:打卡记录、考勤明细: delete from hr_attendance where employee_id=(select id from hr_employee where employee_number='EM20200822070'); delete from attendance_period where employee_id=(select id from hr_employee where employee_number='EM20200822070'); 补充报表删除: delete from attendance_count where employee_id=(select id from hr_employee where employee_number='EM20200822070'); 2.删除账号‘曹飞艳’的部分单据 (1)2020/8/25日及之前的曹飞艳的打卡记录 (2)2020/8/25日及之前的曹飞艳的考勤明细 (3)曹飞艳的补卡记录BK202008230111 update hr_attendance set active=False where attendance_date<='2020-08-25' and employee_id=(select id from hr_employee where employee_number='h10347'); update attendance_period set active=False where attendance_date<='2020-08-25' and employee_id=(select id from hr_employee where employee_number='h10347'); update hr_attendance_adjustment set active=False where employee_id=(select id from hr_employee where employee_number='h10347'); 补充报表删除: delete from attendance_count where name<='2020-08-25' and employee_id=(select id from hr_employee where employee_number='h10347');

      1.仅删除所有葛勤的数据
      时间管理中:打卡记录、考勤明细

      2.删除账号‘曹飞艳’的部分单据
      (1)2020/8/25日及之前的曹飞艳的打卡记录
      (2)2020/8/25日及之前的曹飞艳的考勤明细
      (3)曹飞艳的补卡记录BK202008230111

      备注:为界面删除,请不要动数据库结构;客户已在试运行系统,以稳为主

            chengdd 程丹丹
            geq 葛勤
            表决:
            0 为这个问题表决

              创建日期:
              已更新:
              已解决: