|
|
|
|
@ -42,6 +42,18 @@ public interface MoldBrandMapper extends BaseMapperX<MoldBrandDO> {
|
|
|
|
|
.betweenIfPresent(MoldBrandDO::getCreateTime, reqVO.getCreateTime())
|
|
|
|
|
.orderByDesc(MoldBrandDO::getId);
|
|
|
|
|
|
|
|
|
|
//关键字(匹配编码/名称/产品型号)
|
|
|
|
|
if (StringUtils.isNotBlank(reqVO.getKeyword())) {
|
|
|
|
|
queryWrapper.and(wrapper ->
|
|
|
|
|
wrapper.like(MoldBrandDO::getCode, reqVO.getKeyword())
|
|
|
|
|
.or()
|
|
|
|
|
.like(MoldBrandDO::getName, reqVO.getKeyword())
|
|
|
|
|
.or()
|
|
|
|
|
.like(MoldBrandDO::getProductName, reqVO.getKeyword())
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(reqVO.getIds())) {
|
|
|
|
|
List<Long> idList = Arrays.stream(reqVO.getIds().split(","))
|
|
|
|
|
.map(String::trim)
|
|
|
|
|
|