|
@@ -46,6 +46,7 @@ public class MaintenanceOptionController {
|
|
|
.in("mt_company_id", 0L, req.getMtCompanyId())
|
|
|
.in(req.getType() != null, "type", type(req))
|
|
|
.eq(req.getLiftType() != null, "lift_type", req.getLiftType())
|
|
|
+ .eq("status",2)
|
|
|
.orderByDesc("mt_company_id")
|
|
|
);
|
|
|
if (page.getRecords().isEmpty()) {
|
|
@@ -73,11 +74,9 @@ public class MaintenanceOptionController {
|
|
|
.in("mt_company_id", 0L, request.getMtCompanyId())
|
|
|
.in(request.getType() != null, "type", type(request))
|
|
|
.eq(request.getLiftType() != null, "lift_type", request.getLiftType())
|
|
|
+ .eq("status",2)
|
|
|
.in(sort != null, "sort", sort)
|
|
|
);
|
|
|
- if (options.isEmpty()) {
|
|
|
- return RestResponse.success();
|
|
|
- }
|
|
|
return RestResponse.success(options);
|
|
|
}
|
|
|
|