Commit a3d48549 by 周晓航

移除NPE

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 05fe7c58
...@@ -32,6 +32,9 @@ public class CommonFunctionHandle { ...@@ -32,6 +32,9 @@ public class CommonFunctionHandle {
* @return 外卖 true 打包带走 false null 为其他业务问题 不进入需求 * @return 外卖 true 打包带走 false null 为其他业务问题 不进入需求
*/ */
public Long getPackAmountByStoreConfig(ShoppingCartInfoRequestVo shoppingCartInfoRequestVo, Long newPackAmount) { public Long getPackAmountByStoreConfig(ShoppingCartInfoRequestVo shoppingCartInfoRequestVo, Long newPackAmount) {
if (Objects.isNull(shoppingCartInfoRequestVo)) {
return newPackAmount;
}
Boolean isTakeOut = null; Boolean isTakeOut = null;
if (Objects.equals(shoppingCartInfoRequestVo.getOrderType(), CreateOrderType.TAKE_OUT.getCode())) { if (Objects.equals(shoppingCartInfoRequestVo.getOrderType(), CreateOrderType.TAKE_OUT.getCode())) {
isTakeOut = true; isTakeOut = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment