|
|
@@ -213,6 +213,17 @@ public class CmsGroupController {
|
|
|
accountService.save(account);
|
|
|
groupsTrips.setAccountId(account.getId());
|
|
|
groupsTrips.setVerifyCodes(account.getVerifyCodes());
|
|
|
+ //独立车位 车队下架
|
|
|
+ if (goodsDonSkuView.getNum() != null && goodsDonSkuView.getNum() == 1) {
|
|
|
+ Number number = beanSearcher.searchCount(GroupsRelation.class, MapUtils.builder()
|
|
|
+ .field(GroupsRelation::getGroupsId, groupsTrips.getId())
|
|
|
+ .field(GroupsRelation::getUserId, 0).op(Operator.NotEqual)
|
|
|
+ .field(GroupsRelation::getStatus, GroupsRelation.Status.validity.name())
|
|
|
+ .build());
|
|
|
+ if (number.intValue() > 0) {
|
|
|
+ groupsTrips.setStatus(GroupsTrips.Status.down);
|
|
|
+ }
|
|
|
+ }
|
|
|
groupService.setAccount(groupsTrips);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult("车队配置新账号成功");
|
|
|
}
|