DESKTOP-LMJ82IJ\Eno
2025-01-01 e6a5ab7b69d0dfd6ffa4080fd5f40c77656528cf
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
package com.zy.asrs.wms.apis.wcs.controller;
 
import com.zy.asrs.framework.common.R;
import com.zy.asrs.wms.apis.wcs.services.WaveManagentService;
import com.zy.asrs.wms.asrs.entity.param.WaveSeedReviewParam;
import com.zy.asrs.wms.system.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.Map;
 
@RestController
@RequestMapping("/wave")
public class WaveManagentController extends BaseController {
 
    @Autowired
    private WaveManagentService waveManagentService;
 
    /***
     * 获取处于播种状态的任务单据
     * @return
     */
    @GetMapping("/sow/seeds")
    public R sowSeeds() {
      return  waveManagentService.getSowSeeds();
    }
 
 
    /**
     * 通过任务号拉取任务明细
     * @param taskNo
     * @return
     */
    @GetMapping("/sow/task/detl/{taskNo}")
    public R getTaskDetl(@PathVariable String taskNo) {
        return waveManagentService.getTaskDetl(taskNo);
    }
 
    @PostMapping("/task/detl/qutify")
    public R getTaskDetlQutify(@RequestBody Map<String, Object> param) {
        return waveManagentService.getTaskDetlQutify(param);
    }
 
    /***
     * 获取出库列表
     * @return
     */
    @GetMapping("/sow/tasks")
    public R getTasks() {
        return waveManagentService.getTask();
    }
 
    /**
     * 审核播种状态任务
     * @param reviewParam
     * @return
     */
    @PostMapping("/sow/review")
    public R reviewSeeds(@RequestBody WaveSeedReviewParam reviewParam) {
        return waveManagentService.reviewSeeds(reviewParam);
    }
 
    /**
     * 删除播种
     * @param id
     * @return
     */
    @GetMapping("/sow/remove/{id}")
    public R delSowSeeds(@PathVariable Long id) {
         if (waveManagentService.removeSowSeed(id) > 0) {
             return R.ok("删除成功!!");
         } else {
             return R.error("删除失败!!");
         }
    }
}