瀏覽代碼

update

tmp
dengbiao 5 月之前
父節點
當前提交
fd1126fbc3
共有 1 個檔案被更改,包括 6 行新增6 行删除
  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 查看文件

@@ -784,8 +784,8 @@ func SelfSupportForSchoolOrdStatistics(req md.SelfSupportForSchoolOrdListReq) (p
sess6.And("self_support_for_school_ord.order_status = ?", req.OrderStatus)
}
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+"%")
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+"%")
@@ -819,16 +819,16 @@ func SelfSupportForSchoolOrdStatistics(req md.SelfSupportForSchoolOrdListReq) (p
}

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+"%")
sess4.And("user_identity.name like ?", "%"+req.Name+"%")
sess5.And("user_identity.name like ?", "%"+req.Name+"%")
sess6.And("user_identity.name like ?", "%"+req.Name+"%")
}
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+"%")
sess4.And("user.phone like ?", "%"+req.Phone+"%")
sess5.And("user.phone like ?", "%"+req.Phone+"%")


Loading…
取消
儲存