|
|
@@ -155,6 +155,8 @@ public class GroupRelationController {
|
|
|
|
|
|
private final YhShopMapper yhShopMapper;
|
|
|
|
|
|
+ private final GroupsMapper groupsMapper;
|
|
|
+
|
|
|
private final static Sequence SEQUENCE = new Sequence(0);
|
|
|
|
|
|
@RequestMapping("/get/renewal")
|
|
|
@@ -1519,4 +1521,21 @@ public class GroupRelationController {
|
|
|
ccCodexInfoView.setCodexUser(codexUser);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 账号下架操作记录
|
|
|
+ */
|
|
|
+ @GetMapping("/get/account/down/logs/{accountId}")
|
|
|
+ public Result<List<SysLog>> getAccountDownLogs(@PathVariable Long accountId) {
|
|
|
+ GroupsTrips groupsTrips = groupsMapper.selectOne(Wrappers.lambdaQuery(GroupsTrips.class).eq(GroupsTrips::getAccountId, accountId).select(GroupsTrips::getId).last("limit 1"));
|
|
|
+ List<SysLog> sysLogs = null;
|
|
|
+ if (groupsTrips != null) {
|
|
|
+ sysLogs = beanSearcher.searchAll(SysLog.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
|
+ .field(SysLog::getModule, "过期账号/上下架过期车队")
|
|
|
+ .field(SysLog::getOperateParams, groupsTrips.getId())
|
|
|
+ .onlySelect(SysLog::getOperator, SysLog::getOperateIp, SysLog::getOperateLocation, SysLog::getCreatedTime)
|
|
|
+ .build());
|
|
|
+ }
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(sysLogs);
|
|
|
+ }
|
|
|
}
|