|
|
@@ -639,13 +639,13 @@ func CentralKitchenForSchoolOrdList(req md.CentralKitchenForSchoolOrdListReq) (r |
|
|
|
sess.And("central_kitchen_for_school_package_ord.create_at <= ?", req.EndDate) |
|
|
|
} |
|
|
|
if req.Kind != 0 { |
|
|
|
sess.And("central_kitchen_for_school_package_ord.kind = ", req.Kind) |
|
|
|
sess.And("central_kitchen_for_school_package_ord.kind = ?", req.Kind) |
|
|
|
} |
|
|
|
if req.Sate != 0 { |
|
|
|
sess.And("central_kitchen_for_school_package_ord.state = ", req.Sate) |
|
|
|
sess.And("central_kitchen_for_school_package_ord.state = ?", req.Sate) |
|
|
|
} |
|
|
|
if req.OrdSate != 0 { |
|
|
|
sess.And("central_kitchen_for_school_package_ord.ord_state = ", req.OrdSate) |
|
|
|
sess.And("central_kitchen_for_school_package_ord.ord_state = ?", req.OrdSate) |
|
|
|
} |
|
|
|
if req.OutTradeNo != "" { |
|
|
|
sess.And("central_kitchen_for_school_package_ord.out_trade_no like ?", "%"+req.OutTradeNo+"%") |
|
|
|