{"action":"created","comment":{"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/comments/78740580","id":78740580,"diff_hunk":"@@ -442,6 +442,175 @@ router.get('/statistics/by-company', function(req, res, next) {\n \n \n /**\n+ * @api {get} /workings/search-and-group/by-company search by given company\n+ * @apiDescription 根據 company 關鍵字，傳回符合關鍵字的公司相關統計資訊\n+ * @apiGroup Workings\n+ * @apiParam {String} company\n+ * @apiSuccess {Object[]} .\n+ * @apiSuccess {Object} ._id 公司\n+ * @apiSuccess {String} ._id.id 統一編號（可能沒有）\n+ * @apiSuccess {String} ._id.name 公司名稱（也可能是 String[]）\n+ * @apiSuccess {Object[]} .workings _id match company 的所有資料\n+ * @apiSuccess {String} .workings.job_title 職稱名稱\n+ * @apiSuccess {Number} .workings.week_work_time 該比資料一週工時\n+ * @apiSuccess {Number} .workings.overtime_frequency 該比資料加班頻率\n+ * @apiSuccess {Number} .workings.day_promised_work_time 該比資料工作日表訂工時\n+ * @apiSuccess {Number} .workings.day_real_work_time 該比資料工作日實際工時\n+ * @apiSuccess {Date} .workings.created_at 該比資料填寫完成時間\n+ * @apiSuccess {String} .workings.sector 該比資料廠區/門市/分公司\n+ * @apiSuccess {Object[]} has_overtime_salary_count 統計該公司是否有加班費\n+ * @apiSuccess {Object[]} is_overtime_salary_legal_count 統計該公司加班費是否合法\n+ * @apiSuccess {Object[]} has_compensatory_dayoff_count 統計該公司是否有補休","path":"routes/workings.js","position":21,"original_position":22,"commit_id":"def0a05126396c4160ae315ec27b351de4a5f297","original_commit_id":"def0a05126396c4160ae315ec27b351de4a5f297","user":{"login":"mark86092","id":1908007,"avatar_url":"https://avatars.githubusercontent.com/u/1908007?v=3","gravatar_id":"","url":"https://api.github.com/users/mark86092","html_url":"https://github.com/mark86092","followers_url":"https://api.github.com/users/mark86092/followers","following_url":"https://api.github.com/users/mark86092/following{/other_user}","gists_url":"https://api.github.com/users/mark86092/gists{/gist_id}","starred_url":"https://api.github.com/users/mark86092/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark86092/subscriptions","organizations_url":"https://api.github.com/users/mark86092/orgs","repos_url":"https://api.github.com/users/mark86092/repos","events_url":"https://api.github.com/users/mark86092/events{/privacy}","received_events_url":"https://api.github.com/users/mark86092/received_events","type":"User","site_admin":false},"body":"`@apiSuccess {Object} has_compensatory_dayoff_count 統計該公司是否有補休 (may be undefined)`","created_at":"2016-09-14T12:45:11Z","updated_at":"2016-09-14T12:45:11Z","html_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend/pull/105#discussion_r78740580","pull_request_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/105","_links":{"self":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/comments/78740580"},"html":{"href":"https://github.com/goodjoblife/WorkTimeSurvey-backend/pull/105#discussion_r78740580"},"pull_request":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/105"}}},"pull_request":{"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/105","id":84787889,"html_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend/pull/105","diff_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend/pull/105.diff","patch_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend/pull/105.patch","issue_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/105","number":105,"state":"open","locked":false,"title":"update search-and-group by-company API #103","user":{"login":"LittleWhiteYA","id":11289529,"avatar_url":"https://avatars.githubusercontent.com/u/11289529?v=3","gravatar_id":"","url":"https://api.github.com/users/LittleWhiteYA","html_url":"https://github.com/LittleWhiteYA","followers_url":"https://api.github.com/users/LittleWhiteYA/followers","following_url":"https://api.github.com/users/LittleWhiteYA/following{/other_user}","gists_url":"https://api.github.com/users/LittleWhiteYA/gists{/gist_id}","starred_url":"https://api.github.com/users/LittleWhiteYA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LittleWhiteYA/subscriptions","organizations_url":"https://api.github.com/users/LittleWhiteYA/orgs","repos_url":"https://api.github.com/users/LittleWhiteYA/repos","events_url":"https://api.github.com/users/LittleWhiteYA/events{/privacy}","received_events_url":"https://api.github.com/users/LittleWhiteYA/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-11T14:28:39Z","updated_at":"2016-09-14T12:45:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e80e3605df88721321e75994405b4ee85bc549f5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/105/commits","review_comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/105/comments","review_comment_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/105/comments","statuses_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/statuses/def0a05126396c4160ae315ec27b351de4a5f297","head":{"label":"LittleWhiteYA:search-and-group-by-company","ref":"search-and-group-by-company","sha":"def0a05126396c4160ae315ec27b351de4a5f297","user":{"login":"LittleWhiteYA","id":11289529,"avatar_url":"https://avatars.githubusercontent.com/u/11289529?v=3","gravatar_id":"","url":"https://api.github.com/users/LittleWhiteYA","html_url":"https://github.com/LittleWhiteYA","followers_url":"https://api.github.com/users/LittleWhiteYA/followers","following_url":"https://api.github.com/users/LittleWhiteYA/following{/other_user}","gists_url":"https://api.github.com/users/LittleWhiteYA/gists{/gist_id}","starred_url":"https://api.github.com/users/LittleWhiteYA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LittleWhiteYA/subscriptions","organizations_url":"https://api.github.com/users/LittleWhiteYA/orgs","repos_url":"https://api.github.com/users/LittleWhiteYA/repos","events_url":"https://api.github.com/users/LittleWhiteYA/events{/privacy}","received_events_url":"https://api.github.com/users/LittleWhiteYA/received_events","type":"User","site_admin":false},"repo":{"id":64723607,"name":"WorkTimeSurvey-backend","full_name":"LittleWhiteYA/WorkTimeSurvey-backend","owner":{"login":"LittleWhiteYA","id":11289529,"avatar_url":"https://avatars.githubusercontent.com/u/11289529?v=3","gravatar_id":"","url":"https://api.github.com/users/LittleWhiteYA","html_url":"https://github.com/LittleWhiteYA","followers_url":"https://api.github.com/users/LittleWhiteYA/followers","following_url":"https://api.github.com/users/LittleWhiteYA/following{/other_user}","gists_url":"https://api.github.com/users/LittleWhiteYA/gists{/gist_id}","starred_url":"https://api.github.com/users/LittleWhiteYA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LittleWhiteYA/subscriptions","organizations_url":"https://api.github.com/users/LittleWhiteYA/orgs","repos_url":"https://api.github.com/users/LittleWhiteYA/repos","events_url":"https://api.github.com/users/LittleWhiteYA/events{/privacy}","received_events_url":"https://api.github.com/users/LittleWhiteYA/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LittleWhiteYA/WorkTimeSurvey-backend","description":"WorkTimeSurvey Backend","fork":true,"url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend","forks_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/forks","keys_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/teams","hooks_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/hooks","issue_events_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/issues/events{/number}","events_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/events","assignees_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/assignees{/user}","branches_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/branches{/branch}","tags_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/tags","blobs_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/languages","stargazers_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/stargazers","contributors_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/contributors","subscribers_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/subscribers","subscription_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/subscription","commits_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/contents/{+path}","compare_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/merges","archive_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/downloads","issues_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/issues{/number}","pulls_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/labels{/name}","releases_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/releases{/id}","deployments_url":"https://api.github.com/repos/LittleWhiteYA/WorkTimeSurvey-backend/deployments","created_at":"2016-08-02T04:15:25Z","updated_at":"2016-08-02T04:15:26Z","pushed_at":"2016-09-14T09:54:32Z","git_url":"git://github.com/LittleWhiteYA/WorkTimeSurvey-backend.git","ssh_url":"git@github.com:LittleWhiteYA/WorkTimeSurvey-backend.git","clone_url":"https://github.com/LittleWhiteYA/WorkTimeSurvey-backend.git","svn_url":"https://github.com/LittleWhiteYA/WorkTimeSurvey-backend","homepage":"","size":351,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"goodjoblife:master","ref":"master","sha":"dc3a2f4e68ec37840dfe87c9be46a901862780ea","user":{"login":"goodjoblife","id":20009568,"avatar_url":"https://avatars.githubusercontent.com/u/20009568?v=3","gravatar_id":"","url":"https://api.github.com/users/goodjoblife","html_url":"https://github.com/goodjoblife","followers_url":"https://api.github.com/users/goodjoblife/followers","following_url":"https://api.github.com/users/goodjoblife/following{/other_user}","gists_url":"https://api.github.com/users/goodjoblife/gists{/gist_id}","starred_url":"https://api.github.com/users/goodjoblife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodjoblife/subscriptions","organizations_url":"https://api.github.com/users/goodjoblife/orgs","repos_url":"https://api.github.com/users/goodjoblife/repos","events_url":"https://api.github.com/users/goodjoblife/events{/privacy}","received_events_url":"https://api.github.com/users/goodjoblife/received_events","type":"Organization","site_admin":false},"repo":{"id":62027999,"name":"WorkTimeSurvey-backend","full_name":"goodjoblife/WorkTimeSurvey-backend","owner":{"login":"goodjoblife","id":20009568,"avatar_url":"https://avatars.githubusercontent.com/u/20009568?v=3","gravatar_id":"","url":"https://api.github.com/users/goodjoblife","html_url":"https://github.com/goodjoblife","followers_url":"https://api.github.com/users/goodjoblife/followers","following_url":"https://api.github.com/users/goodjoblife/following{/other_user}","gists_url":"https://api.github.com/users/goodjoblife/gists{/gist_id}","starred_url":"https://api.github.com/users/goodjoblife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodjoblife/subscriptions","organizations_url":"https://api.github.com/users/goodjoblife/orgs","repos_url":"https://api.github.com/users/goodjoblife/repos","events_url":"https://api.github.com/users/goodjoblife/events{/privacy}","received_events_url":"https://api.github.com/users/goodjoblife/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend","description":"WorkTimeSurvey Backend","fork":false,"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend","forks_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/forks","keys_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/teams","hooks_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/hooks","issue_events_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/events{/number}","events_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/events","assignees_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/assignees{/user}","branches_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/branches{/branch}","tags_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/tags","blobs_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/languages","stargazers_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/stargazers","contributors_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/contributors","subscribers_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/subscribers","subscription_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/subscription","commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/contents/{+path}","compare_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/merges","archive_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/downloads","issues_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues{/number}","pulls_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/labels{/name}","releases_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/releases{/id}","deployments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/deployments","created_at":"2016-06-27T05:35:16Z","updated_at":"2016-07-30T16:15:35Z","pushed_at":"2016-09-14T09:54:32Z","git_url":"git://github.com/goodjoblife/WorkTimeSurvey-backend.git","ssh_url":"git@github.com:goodjoblife/WorkTimeSurvey-backend.git","clone_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend.git","svn_url":"https://github.com/goodjoblife/WorkTimeSurvey-backend","homepage":"","size":383,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/105"},"html":{"href":"https://github.com/goodjoblife/WorkTimeSurvey-backend/pull/105"},"issue":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/105"},"comments":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey-backend/statuses/def0a05126396c4160ae315ec27b351de4a5f297"}}}}
{"actor":{"display_login":"mark86092"}}