|
|
|
@ -49,7 +49,12 @@ public class StackRulesService {
|
|
|
|
|
*/
|
|
|
|
|
private QueryWrapper<StackRulesEntity> buildWrapper(FilterStackRulesRequest filterStockRulesRequest) {
|
|
|
|
|
QueryWrapper<StackRulesEntity> wrapper = new QueryWrapper<>();
|
|
|
|
|
wrapper.like(StrUtil.isNotBlank(filterStockRulesRequest.getName()), "name", filterStockRulesRequest.getName())
|
|
|
|
|
wrapper.like(StrUtil.isNotBlank(filterStockRulesRequest.getKey()), "name", filterStockRulesRequest.getKey())
|
|
|
|
|
.or()
|
|
|
|
|
.like(StrUtil.isNotBlank(filterStockRulesRequest.getKey()), "prefix", filterStockRulesRequest.getKey())
|
|
|
|
|
.or()
|
|
|
|
|
.like(StrUtil.isNotBlank(filterStockRulesRequest.getKey()), "remark", filterStockRulesRequest.getKey())
|
|
|
|
|
.like(StrUtil.isNotBlank(filterStockRulesRequest.getName()), "name", filterStockRulesRequest.getName())
|
|
|
|
|
.eq(null != filterStockRulesRequest.getStatus(), "status", filterStockRulesRequest.getStatus())
|
|
|
|
|
.eq(StrUtil.isNotBlank(filterStockRulesRequest.getCustomerId()), "customerId", filterStockRulesRequest.getCustomerId());
|
|
|
|
|
return wrapper;
|
|
|
|
|