| | |
| | | package com.zy.asrs.controller; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.core.annotations.AppAuth; |
| | | import com.core.common.*; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.param.OpenOrderCompleteParam; |
| | |
| | | import com.zy.asrs.entity.param.OpenOrderPakoutParam; |
| | | import com.zy.asrs.service.OpenService; |
| | | import com.zy.common.model.DetlDto; |
| | | import com.zy.common.web.BaseController; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("open/asrs") |
| | | public class OpenController { |
| | | public class OpenController extends BaseController { |
| | | |
| | | private static final boolean auth = true; |
| | | public static final ArrayList<String> APP_KEY_LIST = new ArrayList<String>() {{ |
| | |
| | | |
| | | |
| | | @PostMapping("/order/pakin/new/package/v1") |
| | | @AppAuth(memo = "打包上线接口") |
| | | public synchronized R pakinOrderPackage(@RequestHeader(required = false) String appkey, |
| | | @RequestParam(required = false) String barcode) { |
| | | auth(appkey, barcode); |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 添加入库单 |
| | |
| | | |
| | | |
| | | private void auth(String appkey, Object obj) { |
| | | log.info("{}接口被访问!appkey:{},请求数据:{}", "open/sensorType/list/auth/v1", appkey, JSON.toJSONString(obj)); |
| | | log.info("{}接口被访问;appkey:{};请求数据:{}", "open/sensorType/list/auth/v1", appkey, JSON.toJSONString(obj)); |
| | | if (!auth) { |
| | | return; |
| | | } |