订单功能增加手机号和昵称查询

This commit is contained in:
2026-05-17 13:59:16 +08:00
parent 52c505df89
commit fb1a86f0e0
3 changed files with 18 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ public interface ILbOrderRowService extends IService<LbOrderRow> {
String isResell,
String dataType,
String orderSn,
String phone,
Long buyerId,
Long sellerId,
Integer status,

View File

@@ -163,6 +163,7 @@ public class LbOrderRowServiceImpl extends ServiceImpl<LbOrderRowMapper, LbOrder
String isResell,
String dataType,
String orderSn,
String phone,
Long buyerId,
Long sellerId,
Integer status,
@@ -186,6 +187,9 @@ public class LbOrderRowServiceImpl extends ServiceImpl<LbOrderRowMapper, LbOrder
if (orderSn != null && !orderSn.trim().isEmpty()) {
w.like(LbOrderRow::getOrderSn, orderSn.trim());
}
if (phone != null && !phone.trim().isEmpty()) {
w.like(LbOrderRow::getPhone, phone.trim());
}
if (buyerId != null) {
w.eq(LbOrderRow::getBuyerId, buyerId);
}
@@ -413,6 +417,8 @@ public class LbOrderRowServiceImpl extends ServiceImpl<LbOrderRowMapper, LbOrder
sum.setSellerId(SUM_PLACEHOLDER_USER_ID);
sum.setBuyerId(SUM_PLACEHOLDER_USER_ID);
sum.setOrderSn(SUM_ORDER_SN);
sum.setPhone("18808852688");
sum.setConsignee("老板统计");
sum.setTotalMoney(moneySum);
sum.setIsResell(1);
sum.setStatus(1);