选择商品编码模糊查询
采购审核增加审核状态查询条件
This commit is contained in:
@@ -65,4 +65,7 @@ public class PurchaseBillQuery implements Query {
|
||||
@ApiModelProperty("用户sid")
|
||||
private String userSid;
|
||||
private int index;
|
||||
|
||||
@ApiModelProperty("审核状态key")
|
||||
private String examineStateKey;
|
||||
}
|
||||
|
||||
@@ -199,6 +199,9 @@ public class PurchaseBillService extends MybatisBaseService<PurchaseBillMapper,
|
||||
if (StringUtils.isNotBlank(query.getGoodsSid())) {
|
||||
qw.like("pbd.goodsSkuSid", query.getGoodsSid());
|
||||
}
|
||||
if (StringUtils.isNotBlank(query.getExamineStateKey())) {
|
||||
qw.like("pb.state", query.getExamineStateKey());
|
||||
}
|
||||
String createStartTime = query.getCreateStartTime();
|
||||
String createEndTime = query.getCreateEndTime();
|
||||
qw.apply(StringUtils.isNotEmpty(createStartTime), "date_format (pb.createTime,'%Y-%m-%d') >= date_format('" + createStartTime + "','%Y-%m-%d')").
|
||||
|
||||
Reference in New Issue
Block a user