tms
parent
b3aca71ba2
commit
32ea81ec9e
|
@ -26,28 +26,29 @@ public class tmsapi {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private Validator validator;
|
private Validator validator;
|
||||||
|
|
||||||
@RequestMapping(value = "/getdoc/{doctype}", method = RequestMethod.GET)
|
@RequestMapping(value = "/getdoc/{doctype}", method = RequestMethod.GET)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
// @ApiOperation(value="根据doctype获取单据",notes="根据doctype获取单据",httpMethod="GET",produces="application/json")
|
// @ApiOperation(value="根据doctype获取单据",notes="根据doctype获取单据",httpMethod="GET",produces="application/json")
|
||||||
public ResponseEntity<?> getdocbydoctype(@ApiParam(required=true,name="doctype",value="doctype") @PathVariable("doctype") String doctype, @RequestParam(value="username", required=false) String username, @RequestParam(value="docid", required=false)String docid,@RequestParam(value="searchstr1", required=false)String searchstr1, @RequestParam(value="searchstr2", required=false)String searchstr2, @RequestParam(value="searchstr3", required=false)String searchstr3, @RequestParam(value="searchstr4", required=false)String searchstr4, @RequestParam(value="searchstr5", required=false)String searchstr5) {
|
public ResponseEntity<?> getdocbydoctype(@ApiParam(required = true, name = "doctype", value = "doctype") @PathVariable("doctype") String doctype, @RequestParam(value = "username", required = false) String username, @RequestParam(value = "docid", required = false) String docid, @RequestParam(value = "searchstr1", required = false) String searchstr1, @RequestParam(value = "searchstr2", required = false) String searchstr2, @RequestParam(value = "searchstr3", required = false) String searchstr3, @RequestParam(value = "searchstr4", required = false) String searchstr4, @RequestParam(value = "searchstr5", required = false) String searchstr5) {
|
||||||
ResultDO D0 = new ResultDO();
|
ResultDO D0 = new ResultDO();
|
||||||
if(StringUtil.isNotEmpty(docid)){
|
if (StringUtil.isNotEmpty(docid)) {
|
||||||
docid = docid.trim();
|
docid = docid.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
D0.setOK(true);
|
D0.setOK(true);
|
||||||
List<wmientity> reslit = new ArrayList<wmientity>();
|
List<wmientity> reslit = new ArrayList<wmientity>();
|
||||||
List<wmi1entity> reslitkc = new ArrayList<wmi1entity>();
|
List<wmi1entity> reslitkc = new ArrayList<wmi1entity>();
|
||||||
|
|
||||||
if(StringUtil.isEmpty(docid)){
|
if (StringUtil.isEmpty(docid)) {
|
||||||
D0.setOK(false);
|
D0.setOK(false);
|
||||||
D0.setErrorMsg("输入单号");
|
D0.setErrorMsg("输入单号");
|
||||||
return new ResponseEntity(D0, HttpStatus.OK);
|
return new ResponseEntity(D0, HttpStatus.OK);
|
||||||
}
|
}
|
||||||
wmientity wmientity = new wmientity();
|
wmientity wmientity = new wmientity();
|
||||||
wmientity.setWmi1List(reslitkc);
|
wmientity.setWmi1List(reslitkc);
|
||||||
reslit.add(wmientity);
|
reslit.add(wmientity);
|
||||||
D0.setObj(reslit);
|
D0.setObj(reslit);
|
||||||
|
|
||||||
|
|
||||||
return new ResponseEntity(D0, HttpStatus.OK);
|
return new ResponseEntity(D0, HttpStatus.OK);
|
||||||
|
@ -55,11 +56,11 @@ public class tmsapi {
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = "/docltcreate", method = RequestMethod.GET)
|
@RequestMapping(value = "/docltcreate", method = RequestMethod.GET)
|
||||||
//consumes = MediaType.APPLICATION_JSON_VALUE)
|
//consumes = MediaType.APPLICATION_JSON_VALUE)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@ApiOperation(value="创建上下架")
|
@ApiOperation(value = "创建上下架")
|
||||||
public ResponseEntity<?> createlt( @RequestParam(required=false ,value="doctype") String doctype,@RequestParam(value="docid", required=false) String docid, @RequestParam(value="tSapLtttstr", required=false) String tSapLtttstr,
|
public ResponseEntity<?> createlt(@RequestParam(required = false, value = "doctype") String doctype, @RequestParam(value = "docid", required = false) String docid, @RequestParam(value = "tSapLtttstr", required = false) String tSapLtttstr,
|
||||||
UriComponentsBuilder uriBuilder) {
|
UriComponentsBuilder uriBuilder) {
|
||||||
ResultDO D0 = new ResultDO();
|
ResultDO D0 = new ResultDO();
|
||||||
String msg = null;
|
String msg = null;
|
||||||
D0.setErrorMsg("保存成功");
|
D0.setErrorMsg("保存成功");
|
||||||
|
|
Loading…
Reference in New Issue