|
|
@ -1,6 +1,7 @@
|
|
|
|
package com.glxp.udi.admin.service.product;
|
|
|
|
package com.glxp.udi.admin.service.product;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
@ -48,7 +49,9 @@ public class StackCodeService {
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public IPage<StackCode> filterList(FilterStackCodeRequest filterStackCodeRequest) {
|
|
|
|
public IPage<StackCode> filterList(FilterStackCodeRequest filterStackCodeRequest) {
|
|
|
|
QueryWrapper<StackCode> wrapper = new QueryWrapper<StackCode>().eq("orderIdFk", filterStackCodeRequest.getOrderIdFk());
|
|
|
|
QueryWrapper<StackCode> wrapper = new QueryWrapper<StackCode>()
|
|
|
|
|
|
|
|
.eq("orderIdFk", filterStackCodeRequest.getOrderIdFk())
|
|
|
|
|
|
|
|
.eq(StrUtil.isNotBlank(filterStackCodeRequest.getCode()), "code", filterStackCodeRequest.getCode());
|
|
|
|
IPage<StackCode> page = new Page<>(filterStackCodeRequest.getPage(), filterStackCodeRequest.getLimit());
|
|
|
|
IPage<StackCode> page = new Page<>(filterStackCodeRequest.getPage(), filterStackCodeRequest.getLimit());
|
|
|
|
return stackCodeDao.selectPage(page, wrapper);
|
|
|
|
return stackCodeDao.selectPage(page, wrapper);
|
|
|
|
}
|
|
|
|
}
|
|
|
|