Merge branch 'master' of ssh://139.186.142.91:29418/productDev/dmMes
| | |
| | | * @date 2022/04/20 10:56 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/ext/statistic") |
| | | @RequestMapping("/statistics") |
| | | @Api(tags = "大屏数据看板-统计数据接口") |
| | | public class StatisticsController extends BaseController { |
| | | |
| | |
| | | public ApiResponse<StatisticsPlanDataModel> getProcedurePlanData(@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam 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) { |
| | |
| | | , @RequestBody PageWrap<QueryWorkorderRecordExtDTO> pageWrap) { |
| | | return ApiResponse.success(statisticsService.getRecordLogPage(companyId,departId,pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("巡检记录分页查询") |
| | | @PostMapping("/getDeviceCheckPage/{companyId}/{departId}") |
| | | public ApiResponse<PageData<DeviceCheckExtListVO>> getDeviceCheckPage (@PathVariable Integer companyId, @PathVariable Integer departId |
| | | ,@RequestBody PageWrap<QueryDeviceCheckExtDTO> pageWrap) { |
| | | return ApiResponse.success(statisticsService.getDeviceCheckPage(companyId,departId,pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("工序计划进度查询") |
| | | @GetMapping("/getProcedurePlansList/{companyId}/{departId}") |
| | | public ApiResponse<List<ProcedurePlansPageModel>> getProcedurePlansList (@PathVariable Integer companyId, @PathVariable Integer departId,@RequestParam Integer procedureId) { |
| | |
| | | public ApiResponse<List<StockDataModel>> getStockList (@PathVariable Integer companyId, @PathVariable Integer departId ) { |
| | | return ApiResponse.success(statisticsService.getStockList(companyId,departId)); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | map.put("/system/initCompany", "anon"); |
| | | map.put("/system/logout", "anon"); |
| | | map.put("/common/captcha", "anon"); |
| | | map.put("/statistics/**", "anon"); |
| | | map.put("/dingding/push", "anon"); |
| | | // map.put("/ext/workorderExt/freshStatistics", "anon"); |
| | | map.put("/dingding/jsapiTicket", "anon"); |
| | |
| | | # application: |
| | | # name: doumeemes |
| | | profiles: |
| | | active: standardPro |
| | | active: standard |
| | | # JSON返回配置 |
| | | jackson: |
| | | # 默认时区 |
| | |
| | | </association> |
| | | </resultMap> |
| | | <select id="getStatisticsStockList" parameterType="doumeemes.dao.ext.dto.QueryWStockExtDTO" resultType="doumeemes.dao.business.dto.statistics.StockDataModel"> |
| | | select sum(a.NUM) as num,c.`NAME` as materialName,d.name as warehouseName,f.UNION_NAME as location,u.name as unitName |
| | | select sum(a.NUM) as num,c.`NAME` as materialName,d.name as warehouseName,f.UNION_NAME as location,u.name as unitName,p.`NAME` as procedureName |
| | | from w_stock a |
| | | left join material_distribute b on a.MATERIAL_ID=b.ID |
| | | left join material c on b.MATERIAL_ID=c.ID |
| | | left join warehouse d on a.WAREHOUSE_ID=d.ID |
| | | left join warehouse_location f on a.LOCATION_ID=f.ID |
| | | left join procedures p on p.ID=a.PROCEDURE_ID |
| | | left join unit u on a.UNIT_ID=u.id |
| | | where a.DELETED = 0 AND a.ROOT_DEPART_ID = #{rootDepartId} AND d.DEPART_ID=#{wmodelDepartId} |
| | | GROUP BY a.MATERIAL_ID,a.WAREHOUSE_ID,a.BATCH |
| | | ORDER BY num DESC |
| | | ORDER BY c.code , p.SORTNUM |
| | | </select> |
| | | <select id="selectAllList" parameterType="doumeemes.dao.ext.dto.QueryWStockExtDTO" resultMap="WStockExtListVO"> |
| | | SELECT a.* |
| | |
| | | from workorder_record a |
| | | left join company_user b on b.DELETED=0 and b.user_id=a.CREATE_USER |
| | | left join workorder c on a.WORKORDER_ID=c.id |
| | | where a.deleted=0 and a.ROOT_DEPART_ID=#{rootDepartId} and a.DEPART_ID=#{departId} and s.status=4 |
| | | where a.deleted=0 and a.ROOT_DEPART_ID=#{rootDepartId} and a.DEPART_ID=#{departId} and c.status=4 |
| | | <if test="procedureId != null"> |
| | | AND a.`PROCEDURE_ID` = #{procedureId} |
| | | </if> |