|  |  |  | 
|---|
|  |  |  | import doumeemes.core.model.PageWrap; | 
|---|
|  |  |  | import doumeemes.dao.business.dto.statistics.*; | 
|---|
|  |  |  | import doumeemes.dao.ext.dto.*; | 
|---|
|  |  |  | import doumeemes.dao.ext.vo.DepartmentExtListVO; | 
|---|
|  |  |  | import doumeemes.dao.ext.vo.DeviceCheckExtListVO; | 
|---|
|  |  |  | import doumeemes.dao.ext.vo.PlansExtListVO; | 
|---|
|  |  |  | import doumeemes.service.ext.StatisticsService; | 
|---|
|  |  |  | 
|---|
|  |  |  | public ApiResponse<StatisticsPlanDataModel> getPlansData(@PathVariable Integer companyId, @PathVariable Integer departId) { | 
|---|
|  |  |  | return ApiResponse.success(statisticsService.getPlansData(companyId,departId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("数据统计-工序计划,执行中、延期计划数、今日生产人数、今日生产设备数、今日不良品") | 
|---|
|  |  |  | @GetMapping("/getProcedurePlanData/{companyId}/{departId}") | 
|---|
|  |  |  | public ApiResponse<StatisticsPlanDataModel> getProcedurePlanData(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam Integer procedureId) { | 
|---|
|  |  |  | public ApiResponse<StatisticsPlanDataModel> getProcedurePlanData(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam(required = false) Integer procedureId) { | 
|---|
|  |  |  | return ApiResponse.success(statisticsService.getProcedurePlanData(companyId,departId,procedureId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("员工产品统计TOP10") | 
|---|
|  |  |  | @GetMapping("/userProduceTop/{companyId}/{departId}") | 
|---|
|  |  |  | public ApiResponse<List<UserProduceTopModel>> getUserProducceTop(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam Integer procedureId) { | 
|---|
|  |  |  | public ApiResponse<List<UserProduceTopModel>> getUserProducceTop(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam(required = false) Integer procedureId) { | 
|---|
|  |  |  | return ApiResponse.success(statisticsService.getUserProduceTopData(companyId,departId,procedureId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("近7天不良品分布-不良品数量统计") | 
|---|
|  |  |  | @GetMapping("/getUnqualified7DayData/{companyId}/{departId}") | 
|---|
|  |  |  | public ApiResponse<List<Unqualified7DayModel>> getUnqualified7DayData(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam Integer procedureId) { | 
|---|
|  |  |  | public ApiResponse<List<Unqualified7DayModel>> getUnqualified7DayData(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam(required = false) Integer procedureId) { | 
|---|
|  |  |  | return ApiResponse.success(statisticsService.getUnqualified7DayData(companyId,departId,procedureId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("近7天不良品分布-不良品数量-按不良项统计") | 
|---|
|  |  |  | @GetMapping("/getUnqualifiedCateData/{companyId}/{departId}") | 
|---|
|  |  |  | public ApiResponse<List<UnqualifiedCateModel>> getUnqualifiedCateData(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam Integer procedureId) { | 
|---|
|  |  |  | public ApiResponse<List<UnqualifiedCateModel>> getUnqualifiedCateData(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam(required = false) Integer procedureId) { | 
|---|
|  |  |  | return ApiResponse.success(statisticsService.getUnqualifiedCateData(companyId,departId,procedureId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("报工日志分页查询") | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("工序计划进度查询") | 
|---|
|  |  |  | @GetMapping("/getProcedurePlansList/{companyId}/{departId}") | 
|---|
|  |  |  | public ApiResponse<List<ProcedurePlansPageModel>> getProcedurePlansList (@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam Integer procedureId) { | 
|---|
|  |  |  | public ApiResponse<List<ProcedurePlansPageModel>> getProcedurePlansList (@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam(required = false) Integer procedureId) { | 
|---|
|  |  |  | return ApiResponse.success(statisticsService.getProcedurePlansPage(companyId,departId,procedureId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("成品计划进度查询") | 
|---|
|  |  |  | 
|---|
|  |  |  | return ApiResponse.success(statisticsService.getStockList(companyId,departId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("条件查询企业全部公司部门") | 
|---|
|  |  |  | @GetMapping("/getDepartmentList/{companyId}") | 
|---|
|  |  |  | public ApiResponse<List<DepartmentExtListVO>> getDepartmentList (@PathVariable Integer companyId ) { | 
|---|
|  |  |  | return ApiResponse.success(statisticsService.getDepartmentList(companyId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|