Browse Source

update

tmp
dengbiao 5 months ago
parent
commit
fd1126fbc3
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      app/admin/svc/enterprise_manage/svc_self_support_for_school.go

+ 6
- 6
app/admin/svc/enterprise_manage/svc_self_support_for_school.go View File

@@ -784,8 +784,8 @@ func SelfSupportForSchoolOrdStatistics(req md.SelfSupportForSchoolOrdListReq) (p
sess6.And("self_support_for_school_ord.order_status = ?", req.OrderStatus) sess6.And("self_support_for_school_ord.order_status = ?", req.OrderStatus)
} }
if req.OutTradeNo != "" { if req.OutTradeNo != "" {
sqlStr1 += " and self_support_for_school_ord.out_order_no like %" + req.OutTradeNo + "%"
sqlStr += " and self_support_for_school_ord.out_order_no like %" + req.OutTradeNo + "%"
sqlStr1 += " and self_support_for_school_ord.out_order_no like '%" + req.OutTradeNo + "%'"
sqlStr += " and self_support_for_school_ord.out_order_no like '%" + req.OutTradeNo + "%'"
sess3.And("self_support_for_school_ord.out_order_no like ?", "%"+req.OutTradeNo+"%") sess3.And("self_support_for_school_ord.out_order_no like ?", "%"+req.OutTradeNo+"%")
sess4.And("self_support_for_school_ord.out_order_no like ?", "%"+req.OutTradeNo+"%") sess4.And("self_support_for_school_ord.out_order_no like ?", "%"+req.OutTradeNo+"%")
sess5.And("self_support_for_school_ord.out_order_no like ?", "%"+req.OutTradeNo+"%") sess5.And("self_support_for_school_ord.out_order_no like ?", "%"+req.OutTradeNo+"%")
@@ -819,16 +819,16 @@ func SelfSupportForSchoolOrdStatistics(req md.SelfSupportForSchoolOrdListReq) (p
} }


if req.Name != "" { if req.Name != "" {
sqlStr1 += " and user_identity.name like %" + req.Name + "%"
sqlStr += " and user_identity.name like %" + req.Name + "%"
sqlStr1 += " and user_identity.name like '%" + req.Name + "%'"
sqlStr += " and user_identity.name like '%" + req.Name + "%'"
sess3.And("user_identity.name like ?", "%"+req.Name+"%") sess3.And("user_identity.name like ?", "%"+req.Name+"%")
sess4.And("user_identity.name like ?", "%"+req.Name+"%") sess4.And("user_identity.name like ?", "%"+req.Name+"%")
sess5.And("user_identity.name like ?", "%"+req.Name+"%") sess5.And("user_identity.name like ?", "%"+req.Name+"%")
sess6.And("user_identity.name like ?", "%"+req.Name+"%") sess6.And("user_identity.name like ?", "%"+req.Name+"%")
} }
if req.Phone != "" { if req.Phone != "" {
sqlStr1 += " and user.phone like %" + req.Phone + "%"
sqlStr += " and user.phone like %" + req.Phone + "%"
sqlStr1 += " and user.phone like '%" + req.Phone + "%'"
sqlStr += " and user.phone like '%" + req.Phone + "%'"
sess3.And("user.phone like ?", "%"+req.Phone+"%") sess3.And("user.phone like ?", "%"+req.Phone+"%")
sess4.And("user.phone like ?", "%"+req.Phone+"%") sess4.And("user.phone like ?", "%"+req.Phone+"%")
sess5.And("user.phone like ?", "%"+req.Phone+"%") sess5.And("user.phone like ?", "%"+req.Phone+"%")


Loading…
Cancel
Save