opt: 判空

This commit is contained in:
2025-08-28 09:36:52 +08:00
parent 0203a6618e
commit b6c6749df7

View File

@@ -1,5 +1,6 @@
package org.nl.wms.decision_manage.service.strategyConfig.decisioner.impl.diy;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lombok.extern.slf4j.Slf4j;
@@ -32,7 +33,7 @@ public class RawInRuleHandle extends Decisioner<Structattr, JSONObject> {
@Override
public List<Structattr> handler(List<Structattr> list, JSONObject param) {
//为空,则为普通入库,需要一个空托盘位置,适用于普通入库
if (!param.containsKey("is_empty_vehicle")) {
if (ObjectUtil.isEmpty(param.getString("is_empty_vehicle"))) {
QueryWrapper<Structattr> query = new QueryWrapper<Structattr>()
.eq("is_used", true)
.eq("lock_type", IOSEnum.LOCK_TYPE.code("未锁定"))