订单列表增加筛选项
This commit is contained in:
李广豪 2022-09-20 09:57:56 +08:00
bovenliggende 5e54011371
commit 6ed7a735ed
2 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen

Bestand weergeven

@ -32,5 +32,11 @@ public class OrderInfoBasePageParam extends BasePageParam {
@ApiModelProperty(value = "标识卡号", required = true)
private String idenCardNum;
/**
* 客户名称APMS系统获取
*/
@ApiModelProperty(value = "客户名称", required = true)
private String customerName;
}

Bestand weergeven

@ -117,6 +117,7 @@ public class OrderInfoServiceImpl extends BaseService implements OrderInfoServic
QueryWrapper<OrderInfo> wrapper = new QueryWrapper<>();
wrapper.like(StringUtils.isNotBlank(param.getIdenCardNum()), OrderInfo.IDEN_CARD_NUM, param.getIdenCardNum())
.like(StringUtils.isNotBlank(param.getOrderNo()), OrderInfo.ORDER_NO, param.getOrderNo())
.like(StringUtils.isNotBlank(param.getCustomerName()),OrderInfo.CUSTOMER_NAME,param.getCustomerName())
.in(OrderInfo.STATUS,0,1)
.orderByDesc(OrderInfo.CREATE_TIME);
Page<OrderInfo> page = orderInfoService.page(new Page<>(param.getCurrent(), param.getSize()), wrapper);