feat: 修复无法正确查询地材采集结果的问题
This commit is contained in:
@@ -2,6 +2,7 @@ package mjkf.xinke.main.service;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import mjkf.xinke.main.constant.MaterialTaskType;
|
||||
import mjkf.xinke.main.model.db.LocalMaterial;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -72,6 +73,9 @@ public class LocalMaterialService extends DataService<BaseMapper<LocalMaterial>,
|
||||
if (materialId != null) {
|
||||
query.eq(LocalMaterial::getMaterialId, materialId);
|
||||
}
|
||||
if (type != null) {
|
||||
query.like(LocalMaterial::getCity, MaterialTaskType.getRegion(type));
|
||||
}
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user