|
|
package com.tianbo.analysis.controller;
|
|
|
|
|
|
import com.tianbo.analysis.model.INPORTALLOCATE;
|
|
|
import com.tianbo.analysis.model.InportallocateMode;
|
|
|
import com.tianbo.analysis.model.ResultJson;
|
|
|
import com.tianbo.analysis.service.InportallcateService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@Slf4j
|
|
|
@RestController
|
|
|
@RequestMapping("/inport")
|
|
|
public class InportallocateController {
|
|
|
@Autowired
|
|
|
InportallcateService inportallcateService;
|
|
|
@RequestMapping("/selectInportallocates")
|
|
|
public ResultJson getById(@RequestParam(value = "waybill",required = true) String waybill,
|
|
|
@RequestParam(value = "pageIndex",required = true) int pageIndex,
|
|
|
@RequestParam(value = "pageSize",required = true) int pageSize){
|
|
|
InportallocateMode mode=new InportallocateMode();
|
|
|
mode.setWaybill(waybill);
|
|
|
mode.setPageIndex(pageIndex);
|
|
|
mode.setPageSize(pageSize);
|
|
|
Map map=inportallcateService.selectAllocate(mode);
|
|
|
return new ResultJson<>("200","success",map);
|
|
|
}
|
|
|
} |
...
|
...
|
|