|
@@ -1466,7 +1466,30 @@ public class AppAppOrderServiceImpl extends ServiceImpl<AppOrderDao, TbOrder> im
|
|
|
@Override
|
|
@Override
|
|
|
public Result waitTakeFood(Long userId, Integer orderType, Integer page, Integer limit, Integer status) {
|
|
public Result waitTakeFood(Long userId, Integer orderType, Integer page, Integer limit, Integer status) {
|
|
|
Page<TbOrder> pages = new Page<>(page, limit);
|
|
Page<TbOrder> pages = new Page<>(page, limit);
|
|
|
- IPage<TbOrder> tbOrderIPage = appOrderDao.waitTakeFood(pages, userId, orderType, status);
|
|
|
|
|
|
|
+ Integer isPay=1;
|
|
|
|
|
+ if (status==null) {
|
|
|
|
|
+ isPay=1;
|
|
|
|
|
+ }else if (status==0){
|
|
|
|
|
+ isPay=0;
|
|
|
|
|
+ }else if (status==1){
|
|
|
|
|
+ isPay=0;
|
|
|
|
|
+ }else if (status==2){
|
|
|
|
|
+ isPay=0;
|
|
|
|
|
+ }else if (status==3){
|
|
|
|
|
+ isPay=1;
|
|
|
|
|
+ }else if (status==4){
|
|
|
|
|
+ isPay=1;
|
|
|
|
|
+ }else if (status==5){
|
|
|
|
|
+ isPay=0;
|
|
|
|
|
+ }else if (status==6){
|
|
|
|
|
+ isPay=1;
|
|
|
|
|
+ }else if (status==7){
|
|
|
|
|
+ isPay=1;
|
|
|
|
|
+ }else if (status==8){
|
|
|
|
|
+ isPay=0;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ IPage<TbOrder> tbOrderIPage = appOrderDao.waitTakeFood(pages, userId, orderType, status,isPay);
|
|
|
List<TbOrder> records = tbOrderIPage.getRecords();
|
|
List<TbOrder> records = tbOrderIPage.getRecords();
|
|
|
int size = records.size();
|
|
int size = records.size();
|
|
|
for (int i = 0; i < size; i++) {
|
|
for (int i = 0; i < size; i++) {
|