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);
|
}
|
|
}
|