action.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. {
  2. "getId" : {"uri":"/jaxrs/uuid/random"},
  3. "getCurrentPerson" : {"uri": "/jaxrs/person"},
  4. //根据人员获取部门/
  5. //data: {"personList":[]}
  6. "listUnitWithPerson": {"uri": "/jaxrs/unit/list/person/object", "method": "POST"}, //获取人员所在的所有组织
  7. //data: {"unitList": []}
  8. "listUnitSubDirect": {"uri": "/jaxrs/unit/list/unit/sub/direct/object", "method": "POST"}, //查询指定组织的直接下级组织
  9. //获取人员属性
  10. //data: {"name":"","person":""}
  11. "getPersonAttribute": {"uri": "/jaxrs/personattribute/list/attribute/person/name", "method": "POST"}, //查询人员属性的值
  12. //根据身份获取人员
  13. //{"identityList":[]}
  14. "listPersonWithIdentity": {"uri": "/jaxrs/person/list/identity","method": "POST"},
  15. //获取部门职位
  16. //{"name":"","unit":""}
  17. "listIdentityWithUnitWithName" : {"uri": "/jaxrs/unitduty/list/identity/unit/name","method": "POST"},
  18. //批量查询个人所在的组织,并递归查找其上级组织.
  19. //{"identityList":[]}
  20. "listUnitWithPersonSupNested" : {"uri": "/jaxrs/unit/list/person/sup/nested/object","method": "POST"},
  21. //获取汇报对象
  22. //{"personList":[]}
  23. "listPersonWithPersonSupDirect" : {"uri": "/jaxrs/person/list/person/sup/direct","method": "POST"},
  24. //"getDocument" : {"uri" : "/jaxrs/document/{id}"},
  25. "getHoliday" : {"uri":"/jaxrs/attendanceworkdayconfig/{id}"},
  26. "listHolidayAll": {"uri" : "/jaxrs/attendanceworkdayconfig/list/all"},
  27. /*{'q_Year':'2016','q_Name':'五一劳动节','q_Month':'03'}*/
  28. "listHolidayFilter" : {"uri" : "/jaxrs/attendanceworkdayconfig/filter", "method": "PUT"},
  29. "saveHoliday": {"uri" : "/jaxrs/attendanceworkdayconfig", "method": "POST"},
  30. "deleteHoliday" : {"uri":"/jaxrs/attendanceworkdayconfig/{id}","method": "DELETE"},
  31. "getSelfHoliday" : {"uri":"/jaxrs/attendanceselfholiday/{id}"},
  32. "listSelfHoliday": {"uri" : "/jaxrs/attendanceselfholiday/list/all"},
  33. "saveSelfHoliday": {"uri" : "/jaxrs/attendanceselfholiday", "method": "POST"},
  34. "deleteSelfHoliday" : {"uri":"/jaxrs/attendanceselfholiday/{id}","method": "DELETE"},
  35. "exportSelfHoliday" : {"uri":"/jaxrs/file/export/selfholiday/{startdate}/{enddate}/stream/true", "method": "GET"},
  36. //private String q_empName \ private String q_topUnitName; \ private String q_unitName;
  37. "listSelfHolidayFilterNext" : {"uri" : "/jaxrs/attendanceselfholiday/filter/list/{id}/next/{count}", "method": "PUT"},
  38. "getSchedule" : {"uri":"/jaxrs/attendanceschedulesetting/{id}"},
  39. "listSchedule": {"uri" : "/jaxrs/attendanceschedulesetting/list/all"},
  40. "saveSchedule": {"uri" : "/jaxrs/attendanceschedulesetting", "method": "POST"},
  41. "deleteSchedule" : {"uri":"/jaxrs/attendanceschedulesetting/{id}","method": "DELETE"},
  42. "listScheduleByUnit" : {"uri":"/jaxrs/attendanceschedulesetting/list/unit/{name}"},
  43. "listScheduleByTopUnit" : {"uri":"/jaxrs/attendanceschedulesetting/list/topUnit/{name}"},
  44. "getCycle" : {"uri":"/jaxrs/attendancestatisticalcycle/{id}"},
  45. "saveCycle": {"uri" : "/jaxrs/attendancestatisticalcycle", "method": "POST"},
  46. "deleteCycle" : {"uri":"/jaxrs/attendancestatisticalcycle/{id}","method": "DELETE"},
  47. "listCycle" : {"uri":"/jaxrs/attendancestatisticalcycle/list/all"},
  48. "getCyclePerson" : {"uri":"/jaxrs/attendancestatisticalcycle/cycleDetail/{year}/{month}"},
  49. "getPermission" : {"uri":"/jaxrs/attendanceadmin/{id}"},
  50. "listPermission": {"uri" : "/jaxrs/attendanceadmin/list/all"},
  51. "savePermission": {"uri" : "/jaxrs/attendanceadmin", "method": "POST"},
  52. "deletePermission" : {"uri":"/jaxrs/attendanceadmin/{id}","method": "DELETE"},
  53. "uploadAttachment": {"uri": "/jaxrs/file/upload", "method": "POST", "enctype": "formData"},
  54. //"replaceAttachment": {"uri": "/servlet/update/{id}/document/{documentid}", "method": "POST", "enctype": "formData"},
  55. //"getAttachmentData": {"uri": "/servlet/download/{id}/document/{documentid}", "method": "GET"},
  56. "getAttachmentStream": {"uri": "/jaxrs/file/download/{id}/stream", "method": "GET"},
  57. "listAttachmentInfo" : {"uri" : "/jaxrs/attendanceimportfileinfo/list/all"},
  58. "deleteAttachment" : {"uri":"/jaxrs/attendanceimportfileinfo/{id}","method": "DELETE"},
  59. "getAttachmentInfo" : {"uri":"/jaxrs/attendanceimportfileinfo/{id}"},
  60. // "importAttachment" : {"uri":"/jaxrs/fileimport/import/{file_id}"},
  61. // "checkAttachment" : {"uri":"/jaxrs/fileimport/check/{file_id}"},
  62. "getImportStatus" : {"uri":"/jaxrs/fileimport/getStatus/{file_id}"},
  63. "getImportStatusAll" : {"uri":"/jaxrs/fileimport/getStatus/all"},
  64. "getImportStatusDetail" : {"uri":"/jaxrs/fileimport/getStatus/{file_id}/detail"},
  65. "exportAbnormalAttachment" : {"uri":"/jaxrs/file/export/abnormaldetails/year/{year}/month/{month}", "method": "GET"},
  66. "listDetail" : {"uri":"/jaxrs/attendancedetail/list/all"},
  67. "getDetail" : {"uri":"/jaxrs/attendancedetail/{id}"},
  68. "deleteDetail" : {"uri":"/jaxrs/attendancedetail/{id}","method": "DELETE"},
  69. "listSetting" : {"uri":"/jaxrs/attendancesetting/list/all"},
  70. "getSetting" : {"uri":"/jaxrs/attendancesetting/{id}"},
  71. "saveSetting" : {"uri":"/jaxrs/attendancesetting", "method": "POST"},
  72. "deleteSetting" : {"uri":"/jaxrs/attendancesetting/{id}","method": "DELETE"},
  73. "getSettingCode" : {"uri":"/jaxrs/attendancesetting/code/{code}"},
  74. "listPersonSetting" : {"uri":"/jaxrs/attendanceemployeeconfig/list/all"},
  75. "getPersonSetting" : {"uri":"/jaxrs/attendanceemployeeconfig/{id}"},
  76. "savePersonSetting" : {"uri":"/jaxrs/attendanceemployeeconfig", "method": "POST"},
  77. "deletePersonSetting" : {"uri":"/jaxrs/attendanceemployeeconfig/{id}","method": "DELETE"},
  78. /*
  79. 获取指定年月的打卡数据列表
  80. Data:{'q_empName':'林玲','q_year':'2016','q_month':'03'}
  81. 备注:
  82. 1、q_empName如果不传则取所有用户的数据
  83. 2、如果未指定年份或者月份,则获取数据库里最近一个月份的数据
  84. */
  85. "listDetailFilter" : {"uri" : "/jaxrs/attendancedetail/filter/list", "method": "PUT"},
  86. /*8、查询打卡数据 下一页(分页).
  87. URL:x_attendance_assemble_control/jaxrs/attendancedetail/filter/list/{id}/next/{count}
  88.    Method: GET
  89.    Data:{'q_topUnitName':'兰德纵横','q_year':'2016','q_month':'03','q_date':''2016-03-31',order':'DESC','key':'recordDateString'}
  90. 备注:key 排序列,q_topUnitName|q_empName|q_unitName
  91. */
  92. "listDetailFilterNext" : {"uri" : "/jaxrs/attendancedetail/filter/list/{id}/next/{count}", "method": "PUT"},
  93. /*
  94. 9、查询打卡数据 上一页(分页).
  95. URL:x_attendance_assemble_control/jaxrs/attendancedetail/filter/list/{id}/prev/{count}
  96.    Method: GET
  97.    Data:{'q_topUnitName':'兰德纵横','q_year':'2016','q_month':'03','q_date':''2016-03-31','order':'DESC','key':'recordDateString'}
  98. 备注:key 排序列,q_topUnitName|q_empName|q_unitName
  99. */
  100. "listDetailFilterPrev" : {"uri" : "jaxrs/attendancedetail/filter/list/{id}/prev/{count}", "method": "PUT"},
  101. /*
  102. Data:{'q_empName':'林玲','q_year':'2016','q_month':'03'}
  103. 备注:
  104. 1、q_empName如果不传则取当前登录用户的数据
  105. 2、如果未指定年份或者月份,则获取数据库里最近一个月份的数据
  106. */
  107. "listDetailFilterUser" : {"uri" : "/jaxrs/attendancedetail/filter/list/user", "method": "PUT"},
  108. /*Data:{'q_unitName':'开发部','q_year':'2016','q_month':'03'}
  109. 备注:如果未指定年份或者月份,则获取数据库里最近一个月份的数据*/
  110. "listUnitDetailFilter" : {"uri" : "/jaxrs/attendancedetail/filter/list/unit", "method": "PUT"},
  111. /*Data:{'q_topUnitName':'兰德纵横','q_year':'2016','q_month':'03'}
  112. 备注:如果未指定年份或者月份,则获取数据库里最近一个月份的数据*/
  113. "listTopUnitDetailFilter" : {"uri" : "/jaxrs/attendancedetail/filter/list/topUnit", "method": "PUT"},
  114. /*Data:String file_id
  115. 备注:file_id为指定的导入文件ID,在导入过程,导入文件的ID会被记录到打卡记录的batchName属性中*/
  116. "listDetailByAttachment" : {"uri" : "/jaxrs/attendancedetail/list/{file_id}"},
  117. "checkDetail" : {"uri" :"/jaxrs/attendancedetail/checkDetailWithPersonByCycle/{cycleYear}/{cycleMonth}"},
  118. //{'startDate':'2016-03-12','endDate':'2016-03-29'}
  119. "analyseDetail" : {"uri" :"/jaxrs/attendancedetail/analyse/{startDate}/{endDate}"},
  120. //统计考勤记录,如果year或者month为(0),那么会统计当年所有月份的数据
  121. "staticDetail" : {"uri" : "/jaxrs/statistic/do/{year}/{month}"},
  122. "staticAllDetail" : {"uri" : "/jaxrs/statistic/do"},
  123. //每月个人考勤统计 Method: Servlet - GET Data: String name, String year, String month
  124. "listStaticMonthPerson" : {"uri" :"/jaxrs/statisticshow/person/{name}/{year}/{month}"},
  125. // 查询指定月份里每天部门考勤统计 Method: Servlet - GET Data: String name, String year, String month
  126. "listStaticDayUnit" : {"uri" :"/jaxrs/statisticshow/unit/day/{name}/{year}/{month}"},
  127. // 查询指定日期部门考勤统计 Method: Servlet - GET Data: String name, String year, String month
  128. "listStaticDateUnit" : {"uri" :"/jaxrs/statisticshow/unit/day/{name}/{date}"},
  129. //每月部门考勤统计(如果查全年,month可以以(0)代替) GET Data: String name, String year, String month
  130. "listStaticMonthUnit" : {"uri" :"/jaxrs/statisticshow/unit/{name}/{year}/{month}"},
  131. //每月部门及子部门考勤统计(如果查全年,month可以以(0)代替) GET Data: String name, String year, String month
  132. "listStaticMonthUnitSum" : {"uri" :"/jaxrs/statisticshow/unit/sum/{name}/{year}/{month}"},
  133. //指定月份里每天公司考勤统计 Method: Servlet - GET Data: String name, String year, String month
  134. "listStaticDayTopUnit" : {"uri" :"/jaxrs/statisticshow/topUnit/day/{name}/{year}/{month}"},
  135. //每月公司考勤统计(如果查全年,month可以以(0)代替) - GET Data: String name, String year, String month
  136. "listStaticMonthTopUnit" : {"uri" :"/jaxrs/statisticshow/topUnit/{name}/{year}/{month}"},
  137. //查询部门里所有人员的月统计
  138. "listStaticMonthPersonByUnit" : {"uri":"/jaxrs/statisticshow/persons/unit/{name}/{year}/{month}"},
  139. //查询部门及子部门的所有人员月统计
  140. "listStaticMonthPersonByUnitNested" : {"uri":"/jaxrs/statisticshow/persons/unit/subnested/{name}/{year}/{month}"},
  141. //根据公司查询公司下所有部门的统计数据信息:
  142. "listUnitDateStaticByTopUnit" : {"uri":"/jaxrs/statisticshow/unit/day/topUnit/{name}/{date}"},
  143. //根据公司查询公司下所有部门的统计数据信息:
  144. "listUnitMonthStaticByTopUnit" : {"uri":"/jaxrs/statisticshow/unit/topUnit/{name}/{year}/{month}"},
  145. //根据部门查询部门下所有员工的统计数据信息:
  146. "listPersonMonthStaticByUnit" : {"uri":"/jaxrs/statisticshow/persons/unit/subnested/{name}/{year}/{month}"},
  147. //发起申诉 { 'appealReason':'', 'appealDescription:'', 'processPerson1':'', 'processPerson2':''}
  148. "createAppeal" : {"uri":"/jaxrs/attendanceappealInfo/appeal/{detailId}","method" : "PUT"},
  149. //第一次审批 ids(申诉ID列表),opinion(审核意见), status(审核状态:1-通过;2-需要进行复核;-1-不通过)
  150. "processAppeal" : {"uri":"/jaxrs/attendanceappealInfo/audit","method" :"PUT"},
  151. //第二次审批 ids(申诉ID列表),opinion(审核意见), status(审核状态:1-通过;-1-不通过)
  152. "process2Appeal" : {"uri":"/jaxrs/attendanceappealInfo/check ","method" :"PUT"},
  153. //获取申诉记录
  154. "getAppeal" :{"uri":"/jaxrs/attendanceappealInfo/{id}"},
  155. /*分页查询
  156. detailId: 打卡记录ID
  157. empName: 员工姓名,打卡和申诉应该是同一个人
  158. unitName: 打卡员工所在部门
  159. topUnitName: 打卡员工所在公司
  160. yearString: 打卡年份
  161. monthString: 打卡月份
  162. status: 审批状态:0-待处理,1-审批通过,-1-审批不能过,2-需要下一次审批
  163. appealReason: 申诉理由
  164. processPerson1: 第一审批人
  165. processPerson2: 第二审批人*/
  166. "listAppealFilterNext": {"uri" : "/jaxrs/attendanceappealInfo/filter/list/{id}/next/{count}","method" :"PUT"},
  167. "listAppealFilterPrev": {"uri" : "/jaxrs/attendanceappealInfo/filter/list/{id}/prev/{count}","method" :"PUT"},
  168. "deleteAppeal" : {"uri":"/jaxrs/attendanceappealInfo/{id}","method": "DELETE"},
  169. "listWorkplace" : {"uri":"/jaxrs/workplace/list/all"},
  170. "getWorkplace" : {"uri":"jaxrs/workplace/{id}"},
  171. "saveWorkplace" : {"uri":"/jaxrs/workplace", "method": "POST"},
  172. "deleteWorkplace" : {"uri":"/jaxrs/workplace/{id}","method": "DELETE"}
  173. }