@@ -0,0 +1,1267 @@
+package com.zyh.factory.controller;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0Aimport com.zyh.factory.controller.io.SummaryIO;%0Aimport com.zyh.factory.repositories.MachineRepository;%0Aimport com.zyh.factory.repositories.OrderRepository;%0Aimport com.zyh.factory.repositories.SourceRepository;%0Aimport com.zyh.factory.repositories.WorkRepository;%0Aimport com.zyh.factory.transman.TransMessage;%0A%0A%0A@RestController%0A@RequestMapping(value = %22/summary%22)%0Apublic class SummaryController %7B%0A%0A    @Autowired%0A    OrderRepository orderRepository;%0A    @Autowired%0A    WorkRepository workRepository;%0A    @Autowired%0A    SourceRepository sourceRepository;%0A    @Autowired%0A    MachineRepository machineRepository;%0A%0A%0A    @RequestMapping(method = RequestMethod.GET)%0A    public SummaryIO orders() %7B%0A        return new SummaryIO(new TransMessage(), %0A        %09%09%09%09%09orderRepository.countGroupByOrderStatus(),%0A        %09%09%09%09%09workRepository.countGroupByWorkStatus(),%0A        %09%09%09%09%09sourceRepository.countGroupBySourceStatus(),%0A        %09%09%09%09%09machineRepository.countGroupByMachineStatus());%0A    %7D%0A%0A%7D%0A

Create SummaryController.java