#
luxiaotao1123
2023-12-19 4ac391a11290d21441ad9331076e6ee1a57aa6ee
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
package com.zy.asrs.wms.controller;
 
import com.alibaba.fastjson.JSON;
import com.zy.asrs.common.entity.Pack;
import com.zy.asrs.common.service.PackService;
import com.zy.asrs.common.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
/**
 * Created by vincent on 12/19/2023
 */
@RestController
public class PackController {
 
    @Autowired
    private PackService packService;
 
    @GetMapping("/test")
    public String get() {
        List<Pack> packs = packService.selectByMatnr("1");
        return JSON.toJSONString(packs);
    }
 
}