From 2b4ff55c77cde0f31007005cc367bd0ad4e2d453 Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Sun, 24 Dec 2023 20:22:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E7=94=A8=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zzjee/api/tmsapi.java | 71 ------------------------- 1 file changed, 71 deletions(-) delete mode 100644 src/main/java/com/zzjee/api/tmsapi.java diff --git a/src/main/java/com/zzjee/api/tmsapi.java b/src/main/java/com/zzjee/api/tmsapi.java deleted file mode 100644 index f9dc70d5..00000000 --- a/src/main/java/com/zzjee/api/tmsapi.java +++ /dev/null @@ -1,71 +0,0 @@ -package com.zzjee.api; - -import io.swagger.annotations.ApiOperation; -import io.swagger.annotations.ApiParam; -import org.jeecgframework.core.util.StringUtil; -import org.jeecgframework.web.system.service.SystemService; -import org.jeecgframework.web.system.service.UserService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.http.HttpStatus; -import org.springframework.http.ResponseEntity; -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.util.UriComponentsBuilder; - -import javax.validation.Validator; -import java.util.ArrayList; -import java.util.List; - -@Controller -@RequestMapping(value = "/tmsapi") -public class tmsapi { - @Autowired - private SystemService systemService; - @Autowired - private UserService userService; - - @Autowired - private Validator validator; - - @RequestMapping(value = "/getdoc/{doctype}", method = RequestMethod.GET) - @ResponseBody -// @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) { - ResultDO D0 = new ResultDO(); - if (StringUtil.isNotEmpty(docid)) { - docid = docid.trim(); - } - - D0.setOK(true); - List reslit = new ArrayList(); - List reslitkc = new ArrayList(); - - if (StringUtil.isEmpty(docid)) { - D0.setOK(false); - D0.setErrorMsg("输入单号"); - return new ResponseEntity(D0, HttpStatus.OK); - } - wmientity wmientity = new wmientity(); - wmientity.setWmi1List(reslitkc); - reslit.add(wmientity); - D0.setObj(reslit); - - - return new ResponseEntity(D0, HttpStatus.OK); - } - - - @RequestMapping(value = "/docltcreate", method = RequestMethod.GET) - //consumes = MediaType.APPLICATION_JSON_VALUE) - @ResponseBody - @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, - UriComponentsBuilder uriBuilder) { - ResultDO D0 = new ResultDO(); - String msg = null; - D0.setErrorMsg("保存成功"); - D0.setOK(true); - return new ResponseEntity(D0, HttpStatus.OK); - } - -}