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