|
@@ -16,6 +16,7 @@ import com.cyksj.model.entity.GroupsTrips;
|
|
|
import com.cyksj.model.entity.GroupsTripsAccountReplaceRecord;
|
|
import com.cyksj.model.entity.GroupsTripsAccountReplaceRecord;
|
|
|
import com.cyksj.model.request.AccountGroupsReq;
|
|
import com.cyksj.model.request.AccountGroupsReq;
|
|
|
import com.cyksj.model.request.ReplaceTripsAccountReq;
|
|
import com.cyksj.model.request.ReplaceTripsAccountReq;
|
|
|
|
|
+import com.cyksj.model.views.CloseGroupsTripsView;
|
|
|
import com.cyksj.model.views.GoodsDonSkuView;
|
|
import com.cyksj.model.views.GoodsDonSkuView;
|
|
|
import com.cyksj.model.views.GroupsTripsWaitingView;
|
|
import com.cyksj.model.views.GroupsTripsWaitingView;
|
|
|
import com.cyksj.service.mange.CmsAccountService;
|
|
import com.cyksj.service.mange.CmsAccountService;
|
|
@@ -181,4 +182,26 @@ public class CmsGroupController {
|
|
|
SearchResult<GroupsTripsAccountReplaceRecord> search = beanSearcher.search(GroupsTripsAccountReplaceRecord.class, MapUtils.flatBuilder(request.getParameterMap()).build());
|
|
SearchResult<GroupsTripsAccountReplaceRecord> search = beanSearcher.search(GroupsTripsAccountReplaceRecord.class, MapUtils.flatBuilder(request.getParameterMap()).build());
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 已下架的车队列表展示
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/get/down/trips")
|
|
|
|
|
+ public Result<SearchResult<CloseGroupsTripsView>> getDownGroups() {
|
|
|
|
|
+ SearchResult<CloseGroupsTripsView> search = beanSearcher.search(CloseGroupsTripsView.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
|
|
|
+ .field(CloseGroupsTripsView::getGroupsStatus, GroupsTrips.Status.down.name()).build());
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 重新上架过期车队
|
|
|
|
|
+ */
|
|
|
|
|
+ @PutMapping("/up/trips/{groupsId}")
|
|
|
|
|
+ public Result<String> upGroupsTrips(@PathVariable Long groupsId) {
|
|
|
|
|
+ groupService.update(null, Wrappers.lambdaUpdate(GroupsTrips.class)
|
|
|
|
|
+ .set(GroupsTrips::getStatus, GroupsTrips.Status.validity)
|
|
|
|
|
+ .eq(GroupsTrips::getStatus, GroupsTrips.Status.down)
|
|
|
|
|
+ .eq(GroupsTrips::getId, groupsId));
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult("上架成功");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|