|
|
@@ -9,9 +9,10 @@ import javax.ws.rs.PUT;
|
|
|
import javax.ws.rs.Path;
|
|
|
import javax.ws.rs.PathParam;
|
|
|
import javax.ws.rs.Produces;
|
|
|
+import javax.ws.rs.container.AsyncResponse;
|
|
|
+import javax.ws.rs.container.Suspended;
|
|
|
import javax.ws.rs.core.Context;
|
|
|
import javax.ws.rs.core.MediaType;
|
|
|
-import javax.ws.rs.core.Response;
|
|
|
|
|
|
import com.google.gson.JsonElement;
|
|
|
import com.x.attendance.assemble.control.jaxrs.attendancesetting.exception.ExceptionAttendanceSettingProcess;
|
|
|
@@ -30,576 +31,576 @@ import com.x.base.core.project.logger.LoggerFactory;
|
|
|
@JaxrsDescribe("考勤数据统计信息管理服务")
|
|
|
public class AttendanceStatisticShowAction extends StandardJaxrsAction {
|
|
|
|
|
|
- private static Logger logger = LoggerFactory.getLogger( AttendanceStatisticShowAction.class );
|
|
|
-
|
|
|
+ private static Logger logger = LoggerFactory.getLogger(AttendanceStatisticShowAction.class);
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "查询员工指定月份的统计数据", action = ActionShowStmForPerson.class )
|
|
|
+ @JaxrsMethodDescribe(value = "查询员工指定月份的统计数据", action = ActionShowStmForPerson.class)
|
|
|
@GET
|
|
|
@Path("person/{name}/{year}/{month}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response showStmForPerson(@Context HttpServletRequest request,
|
|
|
+ public void showStmForPerson(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request,
|
|
|
@JaxrsParameterDescribe("统计员工姓名") @PathParam("name") String name,
|
|
|
- @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
+ @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
@JaxrsParameterDescribe("统计周期月份") @PathParam("month") String month) {
|
|
|
ActionResult<List<ActionShowStmForPerson.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionShowStmForPerson().execute( request, effectivePerson, name, year, month );
|
|
|
+ result = new ActionShowStmForPerson().execute(request, effectivePerson, name, year, month);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "查询指定组织所有员工指定月份的统计数据", action = ActionShowStForPersonInUnit.class )
|
|
|
+ @JaxrsMethodDescribe(value = "查询指定组织所有员工指定月份的统计数据", action = ActionShowStForPersonInUnit.class)
|
|
|
@GET
|
|
|
@Path("persons/unit/{name}/{year}/{month}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response showStForPersonInUnit( @Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("统计员工姓名") @PathParam("name") String name,
|
|
|
- @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
+ public void showStForPersonInUnit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request,
|
|
|
+ @JaxrsParameterDescribe("统计员工姓名") @PathParam("name") String name,
|
|
|
+ @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
@JaxrsParameterDescribe("统计周期月份") @PathParam("month") String month) {
|
|
|
ActionResult<List<ActionShowStForPersonInUnit.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionShowStForPersonInUnit().execute( request, effectivePerson, name, year, month );
|
|
|
+ result = new ActionShowStForPersonInUnit().execute(request, effectivePerson, name, year, month);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
-
|
|
|
- @JaxrsMethodDescribe( value = "查询指定组织所有员工指定月份的统计数据,包括下级组织", action = ActionShowStForPersonInUnitSubNested.class )
|
|
|
+
|
|
|
+ @JaxrsMethodDescribe(value = "查询指定组织所有员工指定月份的统计数据,包括下级组织", action = ActionShowStForPersonInUnitSubNested.class)
|
|
|
@GET
|
|
|
- @Path( "persons/unit/subnested/{name}/{year}/{month}" )
|
|
|
+ @Path("persons/unit/subnested/{name}/{year}/{month}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response showStForPersonInUnitSubNested( @Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("统计员工姓名") @PathParam("name") String name,
|
|
|
- @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
+ public void showStForPersonInUnitSubNested(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("统计员工姓名") @PathParam("name") String name,
|
|
|
+ @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
@JaxrsParameterDescribe("统计周期月份") @PathParam("month") String month) {
|
|
|
ActionResult<List<ActionShowStForPersonInUnitSubNested.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionShowStForPersonInUnitSubNested().execute( request, effectivePerson, name, year, month );
|
|
|
+ result = new ActionShowStForPersonInUnitSubNested().execute(request, effectivePerson, name, year,
|
|
|
+ month);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "查询组织指定月份的统计数据", action = ActionShowStmForUnitSubnested.class )
|
|
|
+ @JaxrsMethodDescribe(value = "查询组织指定月份的统计数据", action = ActionShowStmForUnitSubnested.class)
|
|
|
@GET
|
|
|
@Path("unit/subnested/{name}/{year}/{month}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response showStmForUnitSubnested(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("统计组织名称") @PathParam("name") String name,
|
|
|
- @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
+ public void showStmForUnitSubnested(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("统计组织名称") @PathParam("name") String name,
|
|
|
+ @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
@JaxrsParameterDescribe("统计周期月份") @PathParam("month") String month) {
|
|
|
ActionResult<List<ActionShowStmForUnitSubnested.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionShowStmForUnitSubnested().execute( request, effectivePerson, name, year, month );
|
|
|
+ result = new ActionShowStmForUnitSubnested().execute(request, effectivePerson, name, year, month);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
-
|
|
|
- @JaxrsMethodDescribe( value = "查询顶层组织指定月份的统计数据", action = ActionShowStForUnitInTopUnit.class )
|
|
|
+
|
|
|
+ @JaxrsMethodDescribe(value = "查询顶层组织指定月份的统计数据", action = ActionShowStForUnitInTopUnit.class)
|
|
|
@GET
|
|
|
- @Path( "unit/topUnit/{name}/{year}/{month}" )
|
|
|
+ @Path("unit/topUnit/{name}/{year}/{month}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response showStForUnitInTopUnit(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("统计顶层组织名称") @PathParam("name") String name,
|
|
|
- @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
+ public void showStForUnitInTopUnit(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("统计顶层组织名称") @PathParam("name") String name,
|
|
|
+ @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
@JaxrsParameterDescribe("统计周期月份") @PathParam("month") String month) {
|
|
|
ActionResult<List<ActionShowStForUnitInTopUnit.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionShowStForUnitInTopUnit().execute( request, effectivePerson, name, year, month );
|
|
|
+ result = new ActionShowStForUnitInTopUnit().execute(request, effectivePerson, name, year, month);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
-
|
|
|
- @JaxrsMethodDescribe( value = "查询组织指定月份的统计数据", action = ActionShowStmForUnit.class )
|
|
|
+
|
|
|
+ @JaxrsMethodDescribe(value = "查询组织指定月份的统计数据", action = ActionShowStmForUnit.class)
|
|
|
@GET
|
|
|
@Path("unit/{name}/{year}/{month}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response showStmForUnit(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("统计组织名称") @PathParam("name") String name,
|
|
|
- @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
+ public void showStmForUnit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request,
|
|
|
+ @JaxrsParameterDescribe("统计组织名称") @PathParam("name") String name,
|
|
|
+ @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
@JaxrsParameterDescribe("统计周期月份") @PathParam("month") String month) {
|
|
|
ActionResult<List<ActionShowStmForUnit.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionShowStmForUnit().execute( request, effectivePerson, name, year, month );
|
|
|
+ result = new ActionShowStmForUnit().execute(request, effectivePerson, name, year, month);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
-
|
|
|
- @JaxrsMethodDescribe( value = "查询组织指定月份的统计数据", action = ActionSumStForUnit.class )
|
|
|
+
|
|
|
+ @JaxrsMethodDescribe(value = "查询组织指定月份的统计数据", action = ActionSumStForUnit.class)
|
|
|
@GET
|
|
|
- @Path( "unit/sum/{name}/{year}/{month}" )
|
|
|
+ @Path("unit/sum/{name}/{year}/{month}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response sumUnitStatistic( @Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("统计组织名称") @PathParam("name") String name,
|
|
|
- @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
+ public void sumUnitStatistic(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request,
|
|
|
+ @JaxrsParameterDescribe("统计组织名称") @PathParam("name") String name,
|
|
|
+ @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
@JaxrsParameterDescribe("统计周期月份") @PathParam("month") String month) {
|
|
|
ActionResult<ActionSumStForUnit.Wo> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionSumStForUnit().execute( request, effectivePerson, name, year, month );
|
|
|
+ result = new ActionSumStForUnit().execute(request, effectivePerson, name, year, month);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "查询顶层组织指定月份的统计数据", action = ActionShowStmForTopUnit.class )
|
|
|
+ @JaxrsMethodDescribe(value = "查询顶层组织指定月份的统计数据", action = ActionShowStmForTopUnit.class)
|
|
|
@GET
|
|
|
@Path("topUnit/{name}/{year}/{month}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response showStmForTopUnit(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("统计顶层组织名称") @PathParam("name") String name,
|
|
|
- @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
+ public void showStmForTopUnit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request,
|
|
|
+ @JaxrsParameterDescribe("统计顶层组织名称") @PathParam("name") String name,
|
|
|
+ @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
@JaxrsParameterDescribe("统计周期月份") @PathParam("month") String month) {
|
|
|
ActionResult<List<ActionShowStmForTopUnit.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionShowStmForTopUnit().execute( request, effectivePerson, name, year, month );
|
|
|
+ result = new ActionShowStmForTopUnit().execute(request, effectivePerson, name, year, month);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "查询组织指定月份每日的统计数据", action = ActionShowStmForTopUnit.class )
|
|
|
+ @JaxrsMethodDescribe(value = "查询组织指定月份每日的统计数据", action = ActionShowStmForTopUnit.class)
|
|
|
@GET
|
|
|
@Path("unit/day/{name}/{year}/{month}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response showStdForUnit(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("统计组织名称") @PathParam("name") String name,
|
|
|
- @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
+ public void showStdForUnit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request,
|
|
|
+ @JaxrsParameterDescribe("统计组织名称") @PathParam("name") String name,
|
|
|
+ @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
@JaxrsParameterDescribe("统计周期月份") @PathParam("month") String month) {
|
|
|
ActionResult<List<ActionShowStdForUnit.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionShowStdForUnit().execute( request, effectivePerson, name, year, month );
|
|
|
+ result = new ActionShowStdForUnit().execute(request, effectivePerson, name, year, month);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "查询顶层组织指定月份每日的统计数据", action = ActionShowStdForTopUnit.class )
|
|
|
+ @JaxrsMethodDescribe(value = "查询顶层组织指定月份每日的统计数据", action = ActionShowStdForTopUnit.class)
|
|
|
@GET
|
|
|
@Path("topUnit/day/{name}/{year}/{month}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response showStdForTopUnit(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("统计顶层组织名称") @PathParam("name") String name,
|
|
|
- @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
+ public void showStdForTopUnit(@Suspended final AsyncResponse asyncResponse, @Context HttpServletRequest request,
|
|
|
+ @JaxrsParameterDescribe("统计顶层组织名称") @PathParam("name") String name,
|
|
|
+ @JaxrsParameterDescribe("统计周期年份") @PathParam("year") String year,
|
|
|
@JaxrsParameterDescribe("统计周期月份") @PathParam("month") String month) {
|
|
|
ActionResult<List<ActionShowStdForTopUnit.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionShowStdForTopUnit().execute( request, effectivePerson, name, year, month );
|
|
|
+ result = new ActionShowStdForTopUnit().execute(request, effectivePerson, name, year, month);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "查询组织指定日期的统计数据", action = ActionShowStdForUnitWithDate.class )
|
|
|
+ @JaxrsMethodDescribe(value = "查询组织指定日期的统计数据", action = ActionShowStdForUnitWithDate.class)
|
|
|
@GET
|
|
|
@Path("unit/day/{name}/{date}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response showStdForUnitWithDate(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("统计组织名称") @PathParam("name") String name,
|
|
|
+ public void showStdForUnitWithDate(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("统计组织名称") @PathParam("name") String name,
|
|
|
@JaxrsParameterDescribe("统计日期") @PathParam("date") String date) {
|
|
|
ActionResult<List<ActionShowStdForUnitWithDate.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionShowStdForUnitWithDate().execute( request, effectivePerson, name, date );
|
|
|
+ result = new ActionShowStdForUnitWithDate().execute(request, effectivePerson, name, date);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
-
|
|
|
- @JaxrsMethodDescribe( value = "查询组织指定日期的统计数据", action = ActionShowStdForUnitInTopUnitWithDate.class )
|
|
|
+
|
|
|
+ @JaxrsMethodDescribe(value = "查询组织指定日期的统计数据", action = ActionShowStdForUnitInTopUnitWithDate.class)
|
|
|
@GET
|
|
|
@Path("unit/day/topUnit/{name}/{date}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response showStdForUnitInTopUnitWithDate(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("统计组织名称") @PathParam("name") String name,
|
|
|
+ public void showStdForUnitInTopUnitWithDate(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("统计组织名称") @PathParam("name") String name,
|
|
|
@JaxrsParameterDescribe("统计日期") @PathParam("date") String date) {
|
|
|
ActionResult<List<ActionShowStdForUnitInTopUnitWithDate.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionShowStdForUnitInTopUnitWithDate().execute( request, effectivePerson, name, date );
|
|
|
+ result = new ActionShowStdForUnitInTopUnitWithDate().execute(request, effectivePerson, name, date);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "列示根据过滤条件的个人月份统计数据,下一页", action = ActionListStmForPersonNextWithFilter.class )
|
|
|
+ @JaxrsMethodDescribe(value = "列示根据过滤条件的个人月份统计数据,下一页", action = ActionListStmForPersonNextWithFilter.class)
|
|
|
@PUT
|
|
|
@Path("filter/personMonth/list/{id}/next/{count}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response listStmForPersonNextWithFilter(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
- @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count,
|
|
|
- JsonElement jsonElement) {
|
|
|
+ public void listStmForPersonNextWithFilter(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
+ @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count, JsonElement jsonElement) {
|
|
|
ActionResult<List<ActionListStmForPersonNextWithFilter.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionListStmForPersonNextWithFilter().execute( request, effectivePerson, id, count, jsonElement );
|
|
|
+ result = new ActionListStmForPersonNextWithFilter().execute(request, effectivePerson, id, count,
|
|
|
+ jsonElement);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "列示根据过滤条件的个人月份统计数据,上一页", action = ActionListStmForPersonPrevWithFilter.class )
|
|
|
+ @JaxrsMethodDescribe(value = "列示根据过滤条件的个人月份统计数据,上一页", action = ActionListStmForPersonPrevWithFilter.class)
|
|
|
@PUT
|
|
|
@Path("filter/personMonth/list/{id}/prev/{count}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response listStmForPersonPrevWithFilter(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
- @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count,
|
|
|
- JsonElement jsonElement) {
|
|
|
+ public void listStmForPersonPrevWithFilter(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
+ @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count, JsonElement jsonElement) {
|
|
|
ActionResult<List<ActionListStmForPersonPrevWithFilter.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionListStmForPersonPrevWithFilter().execute( request, effectivePerson, id, count, jsonElement );
|
|
|
+ result = new ActionListStmForPersonPrevWithFilter().execute(request, effectivePerson, id, count,
|
|
|
+ jsonElement);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "列示根据过滤条件的组织月份统计数据,下一页", action = ActionListStmForUnitNextWithFilter.class )
|
|
|
+ @JaxrsMethodDescribe(value = "列示根据过滤条件的组织月份统计数据,下一页", action = ActionListStmForUnitNextWithFilter.class)
|
|
|
@PUT
|
|
|
@Path("filter/unitMonth/list/{id}/next/{count}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response listStmForUnitNextWithFilter(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
- @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count,
|
|
|
- JsonElement jsonElement) {
|
|
|
+ public void listStmForUnitNextWithFilter(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
+ @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count, JsonElement jsonElement) {
|
|
|
ActionResult<List<ActionListStmForUnitNextWithFilter.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionListStmForUnitNextWithFilter().execute( request, effectivePerson, id, count, jsonElement );
|
|
|
+ result = new ActionListStmForUnitNextWithFilter().execute(request, effectivePerson, id, count,
|
|
|
+ jsonElement);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "列示根据过滤条件的组织月份统计数据,上一页", action = ActionListStmForUnitPrevWithFilter.class )
|
|
|
+ @JaxrsMethodDescribe(value = "列示根据过滤条件的组织月份统计数据,上一页", action = ActionListStmForUnitPrevWithFilter.class)
|
|
|
@PUT
|
|
|
@Path("filter/unitMonth/list/{id}/prev/{count}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response listStmForUnitPrevWithFilter(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
- @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count,
|
|
|
- JsonElement jsonElement) {
|
|
|
+ public void listStmForUnitPrevWithFilter(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
+ @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count, JsonElement jsonElement) {
|
|
|
ActionResult<List<ActionListStmForUnitPrevWithFilter.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionListStmForUnitPrevWithFilter().execute( request, effectivePerson, id, count, jsonElement );
|
|
|
+ result = new ActionListStmForUnitPrevWithFilter().execute(request, effectivePerson, id, count,
|
|
|
+ jsonElement);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "列示根据过滤条件的顶层组织月份统计数据,下一页", action = ActionListStmForTopUnitNextWithFilter.class )
|
|
|
+ @JaxrsMethodDescribe(value = "列示根据过滤条件的顶层组织月份统计数据,下一页", action = ActionListStmForTopUnitNextWithFilter.class)
|
|
|
@PUT
|
|
|
@Path("filter/topUnitMonth/list/{id}/next/{count}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response listStmForTopUnitNextWithFilter(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
- @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count,
|
|
|
- JsonElement jsonElement) {
|
|
|
+ public void listStmForTopUnitNextWithFilter(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
+ @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count, JsonElement jsonElement) {
|
|
|
ActionResult<List<ActionListStmForTopUnitNextWithFilter.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionListStmForTopUnitNextWithFilter().execute( request, effectivePerson, id, count, jsonElement );
|
|
|
+ result = new ActionListStmForTopUnitNextWithFilter().execute(request, effectivePerson, id, count,
|
|
|
+ jsonElement);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "列示根据过滤条件的顶层组织月份统计数据,上一页", action = ActionListStmForTopUnitPrevWithFilter.class )
|
|
|
+ @JaxrsMethodDescribe(value = "列示根据过滤条件的顶层组织月份统计数据,上一页", action = ActionListStmForTopUnitPrevWithFilter.class)
|
|
|
@PUT
|
|
|
- @Path( "filter/topUnitMonth/list/{id}/prev/{count}" )
|
|
|
+ @Path("filter/topUnitMonth/list/{id}/prev/{count}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response listStmForTopUnitPrevWithFilter(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
- @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count,
|
|
|
- JsonElement jsonElement) {
|
|
|
+ public void listStmForTopUnitPrevWithFilter(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
+ @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count, JsonElement jsonElement) {
|
|
|
ActionResult<List<ActionListStmForTopUnitPrevWithFilter.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionListStmForTopUnitPrevWithFilter().execute( request, effectivePerson, id, count, jsonElement );
|
|
|
+ result = new ActionListStmForTopUnitPrevWithFilter().execute(request, effectivePerson, id, count,
|
|
|
+ jsonElement);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "列示根据过滤条件的组织每日统计数据,下一页", action = ActionListStdForUnitNextWithFilter.class )
|
|
|
+ @JaxrsMethodDescribe(value = "列示根据过滤条件的组织每日统计数据,下一页", action = ActionListStdForUnitNextWithFilter.class)
|
|
|
@PUT
|
|
|
@Path("filter/unitDay/list/{id}/next/{count}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response listStdForUnitNextWithFilter(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
- @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count,
|
|
|
- JsonElement jsonElement) {
|
|
|
+ public void listStdForUnitNextWithFilter(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
+ @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count, JsonElement jsonElement) {
|
|
|
ActionResult<List<ActionListStdForUnitNextWithFilter.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionListStdForUnitNextWithFilter().execute( request, effectivePerson, id, count, jsonElement );
|
|
|
+ result = new ActionListStdForUnitNextWithFilter().execute(request, effectivePerson, id, count,
|
|
|
+ jsonElement);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "列示根据过滤条件的组织每日统计数据,上一页", action = ActionListStdForUnitPrevWithFilter.class )
|
|
|
+ @JaxrsMethodDescribe(value = "列示根据过滤条件的组织每日统计数据,上一页", action = ActionListStdForUnitPrevWithFilter.class)
|
|
|
@PUT
|
|
|
@Path("filter/unitDay/list/{id}/prev/{count}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response listStdForUnitPrevWithFilter(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
- @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count,
|
|
|
- JsonElement jsonElement) {
|
|
|
+ public void listStdForUnitPrevWithFilter(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
+ @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count, JsonElement jsonElement) {
|
|
|
ActionResult<List<ActionListStdForUnitPrevWithFilter.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionListStdForUnitPrevWithFilter().execute( request, effectivePerson, id, count, jsonElement );
|
|
|
+ result = new ActionListStdForUnitPrevWithFilter().execute(request, effectivePerson, id, count,
|
|
|
+ jsonElement);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
|
|
|
- @JaxrsMethodDescribe( value = "列示根据过滤条件的顶层组织每日统计数据,下一页", action = ActionListStdForTopUnitNextWithFilter.class )
|
|
|
+ @JaxrsMethodDescribe(value = "列示根据过滤条件的顶层组织每日统计数据,下一页", action = ActionListStdForTopUnitNextWithFilter.class)
|
|
|
@PUT
|
|
|
@Path("filter/topUnitDay/list/{id}/next/{count}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response listStdForTopUnitNextWithFilter(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
- @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count,
|
|
|
- JsonElement jsonElement) {
|
|
|
+ public void listStdForTopUnitNextWithFilter(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
+ @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count, JsonElement jsonElement) {
|
|
|
ActionResult<List<ActionListStdForTopUnitNextWithFilter.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionListStdForTopUnitNextWithFilter().execute( request, effectivePerson, id, count, jsonElement );
|
|
|
+ result = new ActionListStdForTopUnitNextWithFilter().execute(request, effectivePerson, id, count,
|
|
|
+ jsonElement);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
-
|
|
|
- @JaxrsMethodDescribe( value = "列示根据过滤条件的顶层组织每日统计数据,上一页", action = ActionListStdForTopUnitPrevWithFilter.class )
|
|
|
+
|
|
|
+ @JaxrsMethodDescribe(value = "列示根据过滤条件的顶层组织每日统计数据,上一页", action = ActionListStdForTopUnitPrevWithFilter.class)
|
|
|
@PUT
|
|
|
@Path("filter/topUnitDay/list/{id}/prev/{count}")
|
|
|
@Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
|
|
|
@Consumes(MediaType.APPLICATION_JSON)
|
|
|
- public Response listStdForTopUnitPrevWithFilter(@Context HttpServletRequest request,
|
|
|
- @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
- @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count,
|
|
|
- JsonElement jsonElement) {
|
|
|
+ public void listStdForTopUnitPrevWithFilter(@Suspended final AsyncResponse asyncResponse,
|
|
|
+ @Context HttpServletRequest request, @JaxrsParameterDescribe("上一页最后一条信息ID") @PathParam("id") String id,
|
|
|
+ @JaxrsParameterDescribe("每页显示信息条目数量") @PathParam("count") Integer count, JsonElement jsonElement) {
|
|
|
ActionResult<List<ActionListStdForTopUnitPrevWithFilter.Wo>> result = new ActionResult<>();
|
|
|
EffectivePerson effectivePerson = this.effectivePerson(request);
|
|
|
Boolean check = true;
|
|
|
|
|
|
- if(check){
|
|
|
+ if (check) {
|
|
|
try {
|
|
|
- result = new ActionListStdForTopUnitPrevWithFilter().execute( request, effectivePerson, id, count, jsonElement );
|
|
|
+ result = new ActionListStdForTopUnitPrevWithFilter().execute(request, effectivePerson, id, count,
|
|
|
+ jsonElement);
|
|
|
} catch (Exception e) {
|
|
|
result = new ActionResult<>();
|
|
|
- Exception exception = new ExceptionAttendanceSettingProcess( e, "获取所有数据统计信息列表时发生异常!" );
|
|
|
- result.error( exception );
|
|
|
- logger.error( e, effectivePerson, request, null);
|
|
|
- }
|
|
|
+ Exception exception = new ExceptionAttendanceSettingProcess(e, "获取所有数据统计信息列表时发生异常!");
|
|
|
+ result.error(exception);
|
|
|
+ logger.error(e, effectivePerson, request, null);
|
|
|
+ }
|
|
|
}
|
|
|
- return ResponseFactory.getDefaultActionResultResponse(result);
|
|
|
+ asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
|
|
|
}
|
|
|
}
|