廖井涛
2025-11-28 67f0be5a1d634ba3274fa9366ceacc3580f056b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package com.northglass.web.gaoliwei;
 
import java.io.IOException;
import java.util.Map;
 
import javax.servlet.http.HttpServletRequest;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
 
import com.northglass.service.gaoliwei.GaoliweiMachineService;
 
 
 
 
@Controller
@RequestMapping(value = "/gaoliwei")
public class GaoliweiController {
     @Autowired
      private GaoliweiMachineService gaoliweiMachineService;
     
     
     
     public static String button = "0";
        public static String button1 = "0";
        
        public static String getButton() {
            return button;
        }
 
        public static void setButton(String button) {
            GaoliweiController.button = button;
        }
 
        public static String getButton1() {
            return button1;
        }
 
        public static void setButton1(String button1) {
            GaoliweiController.button1 = button1;
        } 
     
     @RequestMapping(method=RequestMethod.GET, value="/gaoliweiFinish/{groups}")
        public String gaoliweiFinish(Model model,@PathVariable("groups") Long groups) throws IOException {
            Map<String, Object> param = gaoliweiMachineService.showFinishTaskForGaoliwei(groups);
            model.addAttribute("allGlasseshtml1", param.get("allGlasseshtml1"));
            model.addAttribute("sumforfin1", param.get("sumforfin1"));
            model.addAttribute("perimeter",gaoliweiMachineService.getperimeter(groups));
            model.addAttribute("sumperimeter",gaoliweiMachineService.getsumperimeter(groups));
            model.addAttribute("groups", groups);
            return "gaoliwei/gaoliweiFinish";
       }
     
    //磨边任务查看
        @RequestMapping(method=RequestMethod.GET, value="/gaoliwei/{groups}")
        public String gaoliwei(Model model,@PathVariable("groups") Long groups) throws IOException {
            Map<String, Object> param = gaoliweiMachineService.showAllGlass(groups);
            model.addAttribute("allGlasseshtml", param.get("allGlasseshtml"));
            model.addAttribute("groups", groups);
            return "gaoliwei/gaoliwei";
        }
        
        @RequestMapping(method=RequestMethod.GET, value="/updateGaoliweiSetFinish/{id}")
        public String updateGaoliweiSetFinish(Model model, @PathVariable("id") Long id) throws IOException {
            return gaoliweiMachineService.updateGaoliweiSetFinish(id);
        }
        
        @RequestMapping(method=RequestMethod.GET, value="/updateGaoliweiSetFinish1/{id}")
        public String updateGaoliweiSetFinish1(Model model, @PathVariable("id") Long id) throws IOException {
            return gaoliweiMachineService.updateGaoliweiSetFinish1(id);
        }
        
        @RequestMapping(method=RequestMethod.GET, value="/updateGaoliweiSetFinish2/{id}")
        public String updateGaoliweiSetFinish2(Model model, @PathVariable("id") Long id) throws IOException {
            return gaoliweiMachineService.updateGaoliweiSetFinish2(id);
        }
        
        @RequestMapping(method=RequestMethod.POST, value="/selectperimeter")
        @ResponseBody
        public String selectperimeter(Model model, HttpServletRequest request) {
            return gaoliweiMachineService.selectperimeter(request);
        }
}