4
hao
2025-04-16 c5fb1fbcbb2bf4d511773d348f9ef625855c61fc
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
package com.web.pda.lyt.lytPda.controller;
 
 
import com.app.base.data.ApiResponseResult;
import com.web.pda.lyt.lytPda.service.internal.FQCPatrolServiceImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@RequestMapping("fqcPatrol")
@RestController
public class FQCPatrolController {
 
    @Autowired
    private FQCPatrolServiceImpl fqcPatrolService;
 
 
    @PostMapping("getAll")
    public ApiResponseResult getAll(@RequestParam(value = "userNo") String userNo,
                                    @RequestParam(value = "taskNo") String taskNo) throws Exception {
        return fqcPatrolService.getBillSelect(userNo, taskNo);
    }
 
    @PostMapping("getDetails")
    public ApiResponseResult getDetails(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "checkNo") String checkNo,
            @RequestParam(value = "pid") int pid
 
    ) {
        try {
            return fqcPatrolService.getDetails(userNo, checkNo, pid);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
    @PostMapping("getDetailsSJ")
    public ApiResponseResult getDetailsSJ(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "checkNo") String checkNo,
            @RequestParam(value = "pid") int pid
 
    ) {
        try {
            return fqcPatrolService.getDetailsSJ(userNo, checkNo, pid);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
    @ApiOperation(value = "获取产线下拉选择检验单号", notes = "获取产线下拉选择检验单号")
    @RequestMapping(value = "/getSelect", method = RequestMethod.POST, produces = "application/json")
    @ResponseBody
    public ApiResponseResult getSelect(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "lineNo") String lineNo,
            @RequestParam(value = "taskNo") String taskNo
 
    ) {
        try {
            return fqcPatrolService.getLineSelect(userNo,lineNo,taskNo);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
    @ApiOperation(value = "获取产线下拉选择检验单号", notes = "获取产线下拉选择检验单号")
    @RequestMapping(value = "/sjgetSelect", method = RequestMethod.POST, produces = "application/json")
    @ResponseBody
    public ApiResponseResult sjgetSelect(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "lineNo") String lineNo,
            @RequestParam(value = "taskNo") String taskNo
 
    ) {
        try {
            return fqcPatrolService.sjgetLineSelect(userNo,lineNo,taskNo);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
    @ApiOperation(value = "获取检验单号下拉选择数据2", notes = "获取检验单号下拉选择数据")
    @RequestMapping(value = "/getBill2FQC", method = RequestMethod.POST, produces = "application/json")
    @ResponseBody
    public ApiResponseResult getBill2FQC(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "lineNo") String lineNo,
            @RequestParam(value = "taskNo") String taskNo
    ) {
        try {
            return fqcPatrolService.getBillSelect2FQC(userNo,lineNo,taskNo);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
    @ApiOperation(value = "提交数据", notes = "提交数据")
    @RequestMapping(value = "/submitFQC", method = RequestMethod.POST, produces = "application/json")
    @ResponseBody
    public ApiResponseResult submitFQC(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "checkNo") String checkNo,
            @RequestParam(value = "type")  int type
    ) {
        try {
            return fqcPatrolService.submitDataFQC(userNo,checkNo,type);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
    @ApiOperation(value = "提交数据", notes = "提交数据")
    @RequestMapping(value = "/submitSJ", method = RequestMethod.POST, produces = "application/json")
    @ResponseBody
    public ApiResponseResult submitSJ(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "checkNo") String checkNo,
            @RequestParam(value = "type")  int type
    ) {
        try {
            return fqcPatrolService.submitDataSJ(userNo,checkNo,type);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
    @PostMapping("checkSave")
    public ApiResponseResult checkSave(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "checkNo") String checkNo,
            @RequestParam(value = "pid") int pid,
            @RequestParam(value = "checkResult") String checkResult,
            @RequestParam(value = "checkDemo") String checkDemo,
            @RequestParam(value = "checkNum") String checkNum
    ) {
        try {
            return fqcPatrolService.checkDetailSave(userNo, checkNo, pid, checkResult, checkDemo, checkNum);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
    @PostMapping("checkSaveSJ")
    public ApiResponseResult checkSaveSJ(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "checkNo") String checkNo,
            @RequestParam(value = "pid") int pid,
            @RequestParam(value = "checkResult") String checkResult,
            @RequestParam(value = "checkDemo") String checkDemo,
            @RequestParam(value = "checkNum") String checkNum
    ) {
        try {
            return fqcPatrolService.checkDetailSaveSJ(userNo, checkNo, pid, checkResult, checkDemo, checkNum);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
 
    @PostMapping("submit")
    public ApiResponseResult submit(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "checkNo") String checkNo,
            @RequestParam(value = "type") int type
    ) {
        try {
            return fqcPatrolService.submitData(userNo, checkNo, type);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
 
 
    @PostMapping("getOQCAll")
    public ApiResponseResult getOQCAll(@RequestParam(value = "userNo") String userNo,
                                       @RequestParam(value = "taskNo") String taskNo) throws Exception {
        return fqcPatrolService.getOQCBillSelect(userNo, taskNo);
    }
 
    @PostMapping("getOQCDetails")
    public ApiResponseResult getOQCDetails(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "checkNo") String checkNo,
            @RequestParam(value = "pid") int pid
 
    ) {
        try {
            return fqcPatrolService.getOQCDetails(userNo, checkNo, pid);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
 
    @PostMapping("OQCCheckSave")
    public ApiResponseResult OQCCheckSave(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "checkNo") String checkNo,
            @RequestParam(value = "pid") int pid,
            @RequestParam(value = "checkResult") String checkResult,
            @RequestParam(value = "checkDemo") String checkDemo,
            @RequestParam(value = "checkNum") String checkNum
    ) {
        try {
            return fqcPatrolService.checkDetailSaveOQC(userNo, checkNo, pid, checkResult, checkDemo, checkNum);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
 
    @PostMapping("submitOQC")
    public ApiResponseResult submitOQC(
            @RequestParam(value = "userNo") String userNo,
            @RequestParam(value = "checkNo") String checkNo,
            @RequestParam(value = "type") int type,
            @RequestParam(value = "conformity") String conformity
    ) {
        try {
            return fqcPatrolService.submitDataOQC(userNo, checkNo, type, conformity);
        } catch (Exception e) {
            e.printStackTrace();
            return ApiResponseResult.failure(e.toString());
        }
    }
 
 
}