浏览代码

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+"%")


正在加载...
取消
保存