|
|
@@ -6,6 +6,7 @@ import com.ygtx.common.core.domain.AjaxResult;
|
|
|
import com.ygtx.common.core.page.TableDataInfo;
|
|
|
import com.ygtx.common.enums.BusinessType;
|
|
|
import com.ygtx.gxt.domain.*;
|
|
|
+import com.ygtx.gxt.service.IGxtOrderMineService;
|
|
|
import com.ygtx.gxt.service.IGxtOrderScoreService;
|
|
|
import com.ygtx.gxt.service.IGxtRepairOrderService;
|
|
|
import com.ygtx.gxt.service.IGxtWorkOrderService;
|
|
|
@@ -44,6 +45,9 @@ public class GxtMobileOrderController extends BaseController
|
|
|
@Autowired
|
|
|
private ISysConfigService configService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IGxtOrderMineService gxtOrderMineService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询超时工单列表
|
|
|
*/
|
|
|
@@ -303,4 +307,27 @@ public class GxtMobileOrderController extends BaseController
|
|
|
}
|
|
|
return toAjax(result);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询待办工单列表(合并维修工单和维保工单)
|
|
|
+ */
|
|
|
+ @GetMapping("/pendingList")
|
|
|
+ public TableDataInfo pendingList(GxtRepairOrder repairOrder, GxtWorkOrder workOrder, @Param("keyword") String keyword)
|
|
|
+ {
|
|
|
+ // 开启分页插件自动分页
|
|
|
+ startPage();
|
|
|
+ // 对 keyword 进行空格过滤处理
|
|
|
+ if (keyword != null) {
|
|
|
+ keyword = keyword.trim();
|
|
|
+ if (keyword.isEmpty()) {
|
|
|
+ keyword = null; // 视为空,不参与搜索
|
|
|
+ }
|
|
|
+ }
|
|
|
+ repairOrder.getParams().put("keyword", keyword);
|
|
|
+ workOrder.getParams().put("keyword", keyword);
|
|
|
+ // 查询合并的工单列表
|
|
|
+ List<OrderScoreInfo> list = gxtOrderMineService.selectUnionOrderListMyTodo(repairOrder, workOrder);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
}
|