| | |
| | | import cc.mrbird.febs.dapp.entity.DappFundFlowEntity; |
| | | import cc.mrbird.febs.dapp.service.DappWalletService; |
| | | import cc.mrbird.febs.system.entity.User; |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * @author wzy |
| | | * @author |
| | | * @date 2022-03-22 |
| | | **/ |
| | | @Slf4j |
| | |
| | | |
| | | @RequestMapping(value = "accountMoneyChangeFlow") |
| | | public FebsResponse accountMoneyChangeFlow(DappAccountMoneyChangeEntity record, QueryRequest request) { |
| | | User currentUser = FebsUtil.getCurrentUser(); |
| | | if(ObjectUtil.isNotEmpty(currentUser.getDescription())){ |
| | | record.setDescription(currentUser.getDescription()); |
| | | } |
| | | return new FebsResponse().success().data(getDataTable(dappWalletService.accountMoneyChangeInPage(record, request))); |
| | | } |
| | | |
| | | @RequestMapping(value = "moneyTotal") |
| | | public FebsResponse moneyTotal(DappAccountMoneyChangeEntity record, QueryRequest request) { |
| | | User currentUser = FebsUtil.getCurrentUser(); |
| | | if(ObjectUtil.isNotEmpty(currentUser.getDescription())){ |
| | | record.setDescription(currentUser.getDescription()); |
| | | } |
| | | return new FebsResponse().success().data(getDataTable(dappWalletService.moneyTotal(record, request))); |
| | | } |
| | | } |