|
@@ -29,6 +29,7 @@ import com.cyksj.service.scheduler.SchedulerService;
|
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
|
import com.ejlchina.searcher.SearchResult;
|
|
import com.ejlchina.searcher.SearchResult;
|
|
|
import com.ejlchina.searcher.param.Operator;
|
|
import com.ejlchina.searcher.param.Operator;
|
|
|
|
|
+import com.ejlchina.searcher.util.MapBuilder;
|
|
|
import com.ejlchina.searcher.util.MapUtils;
|
|
import com.ejlchina.searcher.util.MapUtils;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -90,10 +91,13 @@ public class CmsGroupRelationController {
|
|
|
* 代充平台 用户账号车票列表
|
|
* 代充平台 用户账号车票列表
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/get/recharge")
|
|
@GetMapping("/get/recharge")
|
|
|
- public Result<SearchResult<GroupsRelationRechargeView>> getRechargeList() {
|
|
|
|
|
- SearchResult<GroupsRelationRechargeView> search = beanSearcher.search(GroupsRelationRechargeView.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
|
|
|
|
|
+ public Result<SearchResult<GroupsRelationRechargeView>> getRechargeList(String rechargeStatus) {
|
|
|
|
|
+ MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
|
|
|
+ if (StrUtil.isEmpty(rechargeStatus)) {
|
|
|
|
|
+ builder.field(GroupsRelationRechargeView::getRechargeStatus).op(Operator.NotNull);
|
|
|
|
|
+ }
|
|
|
|
|
+ SearchResult<GroupsRelationRechargeView> search = beanSearcher.search(GroupsRelationRechargeView.class,builder
|
|
|
.field(GroupsRelationRechargeView::getStatus, List.of(GroupsRelation.Status.validity.name(), GroupsRelation.Status.outside.name())).op(Operator.InList)
|
|
.field(GroupsRelationRechargeView::getStatus, List.of(GroupsRelation.Status.validity.name(), GroupsRelation.Status.outside.name())).op(Operator.InList)
|
|
|
- .field(GroupsRelationRechargeView::getSpecialType, GoodsDon.SpecialType.recharge.name())
|
|
|
|
|
.build());
|
|
.build());
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
}
|
|
}
|
|
@@ -119,6 +123,8 @@ public class CmsGroupRelationController {
|
|
|
}
|
|
}
|
|
|
relation.setRechargeStatus(rechargeStatus);
|
|
relation.setRechargeStatus(rechargeStatus);
|
|
|
relation.setOperator(cmsUser.getNickname());
|
|
relation.setOperator(cmsUser.getNickname());
|
|
|
|
|
+ //邀请制家庭组链接
|
|
|
|
|
+ relation.setInviteLink(rechargeView.getInviteLink());
|
|
|
if (rechargeStatus == GroupsRelation.RechargeStatus.complete) {
|
|
if (rechargeStatus == GroupsRelation.RechargeStatus.complete) {
|
|
|
relation.setSendTime(DateTime.now());
|
|
relation.setSendTime(DateTime.now());
|
|
|
OrderDon orderDon = orderDonMapper.selectOne(Wrappers.lambdaQuery(OrderDon.class)
|
|
OrderDon orderDon = orderDonMapper.selectOne(Wrappers.lambdaQuery(OrderDon.class)
|