Browse Source

代办工单数据列表为空是正常返回code为0

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
04a04e2437
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WorkOrderServiceImpl.java

+ 2
- 2
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WorkOrderServiceImpl.java View File

@@ -181,7 +181,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO
.eq(WorkOrder::getMark, MarkEnum.VALID.getCode())
.orderByDesc(WorkOrder::getCreateTime));
if (null == workPageData.getRecords()) {
return null;
return JsonResult.success();
}

List<WorkOrderInfoVo> getWorkOrderVo = this.getWorkOrderList(workPageData,user);
@@ -247,7 +247,7 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO
.eq(WorkOrder::getMark, MarkEnum.VALID.getCode())
.orderByDesc(WorkOrder::getCreateTime));
if (null == workPageData.getRecords()) {
return null;
return JsonResult.success();
}

List<WorkOrderInfoVo> getWorkOrderVo = this.getWorkOrderList(workPageData,user);

Loading…
Cancel
Save