Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取企业所有打卡规则WxCpCropCheckinOption无法获取“late_rule”数据 #3323

Open
fonpin opened this issue Jul 4, 2024 · 1 comment

Comments

@fonpin
Copy link

fonpin commented Jul 4, 2024

模块版本情况

  • WxJava 模块名: 4.6.0

详细描述

getOaService().getCropCheckinOption()获取企业所有打卡规则,返回数据有“late_rule”数据,响应对象WxCpCropCheckinOption无法获取“late_rule”,应该是接口调整导致原结构不一样。望修复下,谢谢!

日志

微信响应数据

	{
      "grouptype": 1,
      "groupid": 1,
      "checkindate": [
        {
          "workdays": [
            1,
            2,
            3,
            4,
            5
          ],
          "checkintime": [
            {
              "time_id": 1,
              "work_sec": 32400,
              "off_work_sec": 64800,
              "remind_work_sec": 31800,
              "remind_off_work_sec": 64800,
              "rest_begin_time": 43200,
              "rest_end_time": 48600,
              "allow_rest": true,
              "earliest_work_sec": 21600,
              "latest_work_sec": 64740,
              "earliest_off_work_sec": 32460,
              "latest_off_work_sec": 107940,
              "no_need_checkon": false,
              "no_need_checkoff": false
            }
          ],
          "noneed_offwork": false,
          "limit_aheadtime": 0,
          "flex_on_duty_time": 0,
          "flex_off_duty_time": 0,
          "allow_flex": false,
          "late_rule": {
            "offwork_after_time": 3600,
            "onwork_flex_time": 3600,
            "allow_offwork_after_time": true,
            "timerules": [
              {
                "offwork_after_time": 18000,
                "onwork_flex_time": 3600
              },
              {
                "offwork_after_time": 21600,
                "onwork_flex_time": 7200
              },
              {
                "offwork_after_time": 28800,
                "onwork_flex_time": 10800
              }
            ]
          },
          "max_allow_arrive_early": 0,
          "max_allow_arrive_late": 0
        }
      ],
      "spe_workdays": [],
      "spe_offdays": [],
      "sync_holidays": true,
      "groupname": "打卡",
      "need_photo": false,
      "wifimac_infos": [],
      "note_can_use_local_pic": true,
      "allow_checkin_offworkday": false,
      "allow_apply_offworkday": false,
      "loc_infos": [],
      "range": {
        "party_id": [
          "5",
          "4",
          "3",
          "6",
          "8",
          "10",
          "18",
          "779294",
          "779295",
          "779296"
        ],
        "userid": [],
        "tagid": []
      },
      "create_time": 1628754737,
      "white_users": [],
      "type": 2,
      "reporterinfo": {
        "reporters": []
      },
      "ot_info": {},
      "allow_apply_bk_cnt": 3,
      "option_out_range": 2,
      "create_userid": "s",
      "use_face_detect": false,
      "allow_apply_bk_day_limit": -1,
      "update_userid": "s",
      "schedulelist": [],
      "open_face_live_detect": false,
      "buka_limit_next_month": -1,
      "ot_info_v2": {
        "workdayconf": {
          "allow_ot": true,
          "type": 1,
          "checkin": {
            "ot_time_start": 3600,
            "ot_time_min": 1800,
            "ot_time_max": 30000,
            "restinfo": {
              "type": 0,
              "fix_time_rule_list": []
            }
          },
          "ot_trans_enable": true,
          "ot_trans_type": 1,
          "vacation": {
            "trans_ratio": 100,
            "sync_vacation": true
          }
        },
        "restdayconf": {
          "allow_ot": true,
          "type": 1,
          "checkin": {
            "ot_time_min": 1800,
            "ot_time_max": 27000,
            "restinfo": {
              "type": 1,
              "fix_time_rule_list": [
                {
                  "fix_time_begin_sec": 43200,
                  "fix_time_end_sec": 48600
                },
                {
                  "fix_time_begin_sec": 64800,
                  "fix_time_end_sec": 68400
                }
              ]
            }
          },
          "ot_trans_enable": true,
          "ot_trans_type": 1,
          "vacation": {
            "trans_ratio": 100,
            "sync_vacation": true
          }
        },
        "holidayconf": {
          "allow_ot": true,
          "type": 1,
          "checkin": {
            "ot_time_min": 1800,
            "ot_time_max": 27000,
            "restinfo": {
              "type": 1,
              "fix_time_rule_list": [
                {
                  "fix_time_begin_sec": 43200,
                  "fix_time_end_sec": 48600
                },
                {
                  "fix_time_begin_sec": 64800,
                  "fix_time_end_sec": 68400
                }
              ]
            }
          },
          "ot_trans_enable": true,
          "ot_trans_type": 1,
          "vacation": {
            "trans_ratio": 100,
            "sync_vacation": true
          }
        },
        "updatetime": 1669176354
      },
      "sync_out_checkin": false,
      "buka_remind": {
        "open_remind": false,
        "buka_remind_day": 30,
        "buka_remind_month": 0
      }
    }
@binarywang
Copy link
Owner

欢迎直接贡献代码进行修复

@binarywang binarywang added this to the 4.6.5 milestone Aug 18, 2024
@binarywang binarywang removed this from the 4.6.5 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants