fix(wms): 修复印章申请查询时根据创建人进行筛选

- 添加 StringUtils 工具类导入用于字符串判空
- 在查询条件中增加对 createBy 字段的非空字符串验证
- 防止空字符串作为查询条件导致的数据库异常
This commit is contained in:
2026-03-23 13:10:46 +08:00
parent 7a14cf7cb6
commit ca8596cab7

View File

@@ -9,6 +9,7 @@ import com.klp.common.core.domain.PageQuery;
import com.klp.common.core.domain.entity.SysUser;
import com.klp.common.core.page.TableDataInfo;
import com.klp.common.exception.ServiceException;
import com.klp.common.utils.StringUtils;
import com.klp.config.StampProperties;
import com.klp.domain.WmsApproval;
import com.klp.domain.WmsApprovalTask;
@@ -207,6 +208,7 @@ public class WmsSealReqServiceImpl implements IWmsSealReqService {
lqw.eq(bo.getEmpId() != null, WmsSealReq::getEmpId, bo.getEmpId());
lqw.eq(bo.getSealType() != null, WmsSealReq::getSealType, bo.getSealType());
lqw.eq(bo.getStatus() != null, WmsSealReq::getStatus, bo.getStatus());
lqw.eq(StringUtils.isNotBlank(bo.getCreateBy()), WmsSealReq::getCreateBy, bo.getCreateBy());
lqw.orderByDesc(WmsSealReq::getCreateTime);
return lqw;
}