| | |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.TestMast; |
| | | import com.zy.asrs.entity.param.*; |
| | | import com.zy.asrs.service.ApiLogService; |
| | | import com.zy.asrs.service.OpenService; |
| | | import com.zy.common.model.DetlDto; |
| | | import com.zy.common.web.BaseController; |
| | |
| | | |
| | | @Autowired |
| | | private OpenService openService; |
| | | @Autowired |
| | | private ApiLogService apiLogService; |
| | | |
| | | @PostMapping("/order/matSync/default/v1") |
| | | @AppAuth(memo = "商品信息同步接口") |
| | |
| | | public synchronized R combPack(@RequestHeader(required = false) String appkey, |
| | | @RequestBody(required = false) CombParam param, |
| | | HttpServletRequest request){ |
| | | appkey="ea1f0459efc02a79f046f982767939ae"; |
| | | auth(appkey, param, request); |
| | | if (Cools.isEmpty(param)) { |
| | | return R.parse(BaseRes.PARAM); |
| | |
| | | openService.combPACK(param); |
| | | |
| | | Map<String,Boolean> map=new HashMap<>(); |
| | | apiLogService.save( |
| | | "mes申请入库", |
| | | "172.28.15.251", |
| | | null, |
| | | "127.0.0.1", |
| | | JSON.toJSONString("PackNo:"+param.getPackNo() |
| | | +" PackName:"+param.getPackName() |
| | | +" RequestTime:"+param.getRequestTime() |
| | | +" SettingTimes:"+param.getSettingTimes()), |
| | | "172.28.15.251", |
| | | true |
| | | ); |
| | | map.put("isComplete",true); |
| | | return R.ok(map); |
| | | } |