|
|
@@ -32,6 +32,12 @@ func CentralKitchenForSchoolOrderRefundList(req md.CentralKitchenForSchoolOrderR |
|
|
|
if req.Name != "" { |
|
|
|
sess.And("user_identity.name like ?", "%"+req.Name+"%") |
|
|
|
} |
|
|
|
if req.OrderByName == 1 { |
|
|
|
sess.OrderBy("CONVERT(user_identity.name USING gbk) ASC") |
|
|
|
} |
|
|
|
if req.OrderByName == 2 { |
|
|
|
sess.OrderBy("CONVERT(user_identity.name USING gbk) DESC") |
|
|
|
} |
|
|
|
if req.Kind != 0 { |
|
|
|
sess.And("central_kitchen_for_school_user_with_day.kind = ?", req.Kind) |
|
|
|
} |
|
|
|