Merge remote-tracking branch 'origin/test' into test

This commit is contained in:
2024-09-19 11:14:38 +08:00
11 changed files with 252 additions and 18 deletions

View File

@@ -15,11 +15,10 @@
*/
package cn.ysk.cashier.dto.product;
import cn.ysk.cashier.annotation.Query;
import lombok.Data;
import java.math.BigDecimal;
import cn.ysk.cashier.annotation.Query;
import static cn.ysk.cashier.annotation.Query.Type.INNER_LIKE;
/**

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2019-2020 Zheng Jie
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.ysk.cashier.dto.product;
import cn.ysk.cashier.annotation.Query;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;
import static cn.ysk.cashier.annotation.Query.Type.IN;
import static cn.ysk.cashier.annotation.Query.Type.INNER_LIKE;
/**
* @website https://eladmin.vip
* @author lyf
* @date 2023-12-11
**/
@Data
public class TbProductQueryV2Criteria {
/** 精确 */
@Query
private String shopId;
/** 精确 */
@Query(type = INNER_LIKE)
private String name;
@Query
private String categoryId;
/** 精确 */
@Query
private Integer status =1;
/** 精确 */
@Query
private Integer isDel = 0;
@Query
private String type;
@Query(type = IN)
private List<String> typeEnum = Arrays.asList("normal","sku");
private Integer page;
private Integer size;
public void setType(String type) {
if(StringUtils.isNotBlank(type)){
this.typeEnum=Arrays.asList(type);
this.type = null;
}
}
}