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;
|
||||
}
|
||||
|
||||
|
@@ -40,3 +40,7 @@ ALTER TABLE PRICE_PUBLISH
|
||||
|
||||
ALTER TABLE BUDGET ADD MIN_MONTH varchar(16) NULL COMMENT '最小值月份';
|
||||
ALTER TABLE BUDGET ADD MAX_MONTH varchar(16) NULL COMMENT '最大值月份';
|
||||
|
||||
--
|
||||
DROP INDEX Idx_key ON SANMING_STEEL;
|
||||
CREATE UNIQUE INDEX Idx_key ON SANMING_STEEL (NAME, SPEC, DATE);
|
Reference in New Issue
Block a user