| | |
| | | package com.zy.api.controller; |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | |
| | | import com.zy.asrs.entity.param.OpenOrderPakoutParam; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | |
| | | @Api(value = "HMES对接") |
| | | @RestController |
| | | @Slf4j |
| | | @RequestMapping("/api") |
| | | public class HmesApiController { |
| | | |
| | |
| | | @ApiOperation("下发生产任务") |
| | | @PostMapping("/work/tasks") |
| | | public R menauWork(@RequestBody OpenOrderPakoutParam params) { |
| | | log.info("下发生产任务={}", JSONObject.toJSONString(params)); |
| | | if (Objects.isNull(params)) { |
| | | return R.error("参数不能为空!!"); |
| | | } |