字段
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m26s

This commit is contained in:
2026-08-13 16:33:55 +08:00
parent 7e7f1cbb67
commit d42c92a2e1
3 changed files with 7 additions and 0 deletions

View File

@@ -100,6 +100,9 @@ func normalizeFundSummaryPage(page, pageSize int) (int, int) {
}
func applyFundSummaryFilters(db *gorm.DB, req dto.ShopFundSummaryListReq) *gorm.DB {
if req.ShopID != nil {
db = db.Where("tb_shop.id = ?", *req.ShopID)
}
if shopName := strings.TrimSpace(req.ShopName); shopName != "" {
db = db.Where("shop_name ILIKE ?", "%"+shopName+"%")
}