20 changed files with 252 additions and 86 deletions
@ -0,0 +1,64 @@ |
|||
package org.nl.acs.ext.wms.rest; |
|||
|
|||
import cn.dev33.satoken.annotation.SaIgnore; |
|||
import com.alibaba.fastjson.JSONArray; |
|||
import com.alibaba.fastjson.JSONObject; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import lombok.RequiredArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.nl.acs.ext.wms.liKuData.InStoreReportRequest; |
|||
import org.nl.common.logging.annotation.Log; |
|||
import org.springframework.http.HttpStatus; |
|||
import org.springframework.http.ResponseEntity; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.Map; |
|||
|
|||
@RestController |
|||
@RequiredArgsConstructor |
|||
@Api(tags = "connector") |
|||
@RequestMapping("/api/iot/agvtask") |
|||
@Slf4j |
|||
public class ConnectorController { |
|||
|
|||
|
|||
|
|||
@SaIgnore |
|||
@PostMapping |
|||
@Log(value = "立库反馈入库任务状态") |
|||
@ApiOperation("立库反馈入库任务状态") |
|||
public Map inStoreReport(@RequestBody JSONObject requestParam) throws Exception { |
|||
Map map = new HashMap(); |
|||
String msg = "[\n" + |
|||
"{\n" + |
|||
"\"ID\":\"C202404281545\",\n" + |
|||
"\"Jobname\":\"N319001\",\n" + |
|||
"\"PalletID\":\"N319001_1_3\",\n" + |
|||
"\"ProductID\":\"A7E44207473001_0B\",\n" + |
|||
"\"Currentqty\":\"36\",\n" + |
|||
"\"SizeX\":\"140.98\",\n" + |
|||
"\"SizeY\":\"642\",\n" + |
|||
"\"Angle\":\"90\",\n" + |
|||
"\"Thickness\":\"2\",\n" + |
|||
"\"PositionX\":\"-227.379\",\n" + |
|||
"\"PositionY\":\"60\",\n" + |
|||
"\"vehicle_code\":\"T0001\", \n" + |
|||
"\"ProductionOrder\":\"800032285176\",\n" + |
|||
"\"Finished\": \"Y\",\n" + |
|||
"\"NextOperation\": \"\",\n" + |
|||
"\"DueDate\": \"\"\n" + |
|||
"} \n" + |
|||
"]"; |
|||
JSONArray jo = JSONArray.parseArray(msg); |
|||
map.put("status",200); |
|||
map.put("message","请求成功"); |
|||
map.put("data",jo); |
|||
return map; |
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue