| | |
| | | import com.zy.asrs.entity.param.*; |
| | | import com.zy.asrs.service.OpenService; |
| | | import com.zy.common.web.BaseController; |
| | | import com.zy.system.entity.Config; |
| | | import com.zy.system.service.ConfigService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | |
| | | @Autowired |
| | | private OpenService openService; |
| | | |
| | | @Autowired |
| | | private ConfigService configService; |
| | | |
| | | @Deprecated |
| | | @PostMapping("/grouping") |
| | |
| | | public synchronized R outbound(@RequestHeader(required = false) String appkey, |
| | | @RequestBody(required = false) OutBoundParam param, |
| | | HttpServletRequest request) { |
| | | Config mesAuto = configService.selectConfigByCode("CLOSE_OUTBOUND"); |
| | | if (mesAuto != null && mesAuto.getValue().equals("1")) { |
| | | return R.parse("关闭自动出库"); |
| | | } |
| | | auth(appkey, param, request); |
| | | if (Cools.isEmpty(param.getEndLocation(),param.getBarcode(),param.getOrderNo())) { |
| | | return R.parse(BaseRes.PARAM); |