自动化立体仓库 - WMS系统
*
lsh
9 天以前 d9eeceed86c1ce43c73dda00a108595a078a8f3d
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
package com.zy.asrs.controller;
 
import com.core.annotations.ManagerAuth;
import com.core.common.R;
import com.zy.asrs.entity.LocMast;
import com.zy.asrs.entity.param.ErrorDeviceParam;
import com.zy.asrs.service.LocMastService;
import com.zy.common.web.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.ArrayList;
import java.util.List;
 
@Slf4j
@RestController
@RequestMapping("error/device")
public class BasErrorDeviceController extends BaseController {
 
    @Autowired
    private LocMastService locMastService;
 
    @RequestMapping(value = "/task/depthAndShallowness")
    @ManagerAuth
    public R taskDepthAndShallowness() {
        ArrayList<ErrorDeviceParam> errorDeviceParamList = new ArrayList<>();
        List<LocMast> locMastList1 = locMastService.asrLocMastNotInDetl1();
 
        for (LocMast locMast : locMastList1){
            ErrorDeviceParam errorDeviceParam = new ErrorDeviceParam();
            errorDeviceParam.setErrorM("库位为F但没有明细");
            errorDeviceParam.setCategory("库位");
            errorDeviceParam.setEquipmentNo(locMast.getLocNo());
            errorDeviceParamList.add(errorDeviceParam);
        }
 
        List<LocMast> locMastList2 = locMastService.asrLocMastNotInDetl2();
 
        for (LocMast locMast : locMastList2){
            ErrorDeviceParam errorDeviceParam = new ErrorDeviceParam();
            errorDeviceParam.setErrorM("库位为SRQP但没有工作档案");
            errorDeviceParam.setCategory("库位");
            errorDeviceParam.setEquipmentNo(locMast.getLocNo());
            errorDeviceParamList.add(errorDeviceParam);
        }
        return R.ok(errorDeviceParamList);
    }
 
    @RequestMapping(value = "/locSts/adjacentLocMast")
    @ManagerAuth
    public R adjacentLocMast() {
        return R.ok(locMastService.adjacentLocMast());
    }
 
}