后端代码习惯

1,if简化

 if (destWhseId == null) throw new WmsException(RespCode.NOT_CHOICE_TO_WAREHOUSE,RespMsg.NOT_CHOICE_TO_WAREHOUSE_MSG);

2,JDK新特性,for循环。jisjit元素名称随便取。

  list.forEach(jisjit -> {
            jisjit.setProcessResultName(ProcessResultE.value(jisjit.getProcessResult()).getName());
        });

猜你喜欢

转载自blog.csdn.net/C18298182575/article/details/82892375