Browse Source

1.入库异常逻辑优化

master
zhenghaoyu 8 months ago
parent
commit
5f5be1598e
  1. 7
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/IncomingController.java

7
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/controller/IncomingController.java

@ -12,7 +12,6 @@ import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.common.exception.CustomerException;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.StringUtil;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@ -58,12 +57,6 @@ public class IncomingController {
return R.fail(405,"入库方式不正确");
}
String orderPackageCode = inComingDTO.getOrderPackageCode();
if(StringUtil.isBlank(orderPackageCode)){
log.warn(method+"包件码不能为空 orderPackageCode={}",orderPackageCode);
return R.fail(405,"包件码不能为空");
}
return inComingService.findIncomingOrderList(inComingDTO);
}catch (CustomerException e){
log.error(e.message,e);

Loading…
Cancel
Save