8 files modified
1 files added
| | |
| | | } |
| | | |
| | | /** |
| | | * 挂机-列表-流水详情 |
| | | * @return |
| | | */ |
| | | @GetMapping("getFlowList") |
| | | public FebsResponse getFlowList(IgtOnHookPlanOrder igtOnHookPlanOrder, QueryRequest request, Integer parentId) { |
| | | if (parentId == null) { |
| | | ViewOnHookPlanController.idOrderFlow = 0; |
| | | } |
| | | User currentUser = FebsUtil.getCurrentUser(); |
| | | User currentUserDetail = userService.findByName(currentUser.getUsername()); |
| | | if(ObjectUtil.isNotEmpty(currentUserDetail.getDescription())){ |
| | | igtOnHookPlanOrder.setDescription(currentUser.getDescription()); |
| | | } |
| | | Map<String, Object> data = getDataTable(adminOnHookPlanService.getFlowList(ViewOnHookPlanController.idOrderFlow, request)); |
| | | return new FebsResponse().success().data(data); |
| | | } |
| | | |
| | | /** |
| | | * IGT挂机时间规则 -- 更新 |
| | | */ |
| | | @PostMapping(value = "/setPlan") |
| | |
| | | import cc.mrbird.febs.common.entity.FebsConstant; |
| | | import cc.mrbird.febs.common.utils.FebsUtil; |
| | | import cc.mrbird.febs.dapp.entity.DataDictionaryCustom; |
| | | import cc.mrbird.febs.dapp.entity.IgtOnHookPlanOrder; |
| | | import cc.mrbird.febs.dapp.entity.MallNewsInfo; |
| | | import cc.mrbird.febs.dapp.enumerate.DataDictionaryEnum; |
| | | import cc.mrbird.febs.dapp.mapper.DataDictionaryCustomMapper; |
| | | import cc.mrbird.febs.dapp.mapper.IgtOnHookPlanOrderDao; |
| | | import cc.mrbird.febs.dapp.service.AdminOnHookPlanService; |
| | | import cc.mrbird.febs.dapp.vo.AdminPlanSetVo; |
| | | import cc.mrbird.febs.dapp.vo.AdminTransferInsideSetVo; |
| | |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.Model; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | @Controller("onHookView") |
| | |
| | | public class ViewOnHookPlanController { |
| | | |
| | | private final AdminOnHookPlanService adminOnHookPlanService; |
| | | private final IgtOnHookPlanOrderDao igtOnHookPlanOrderDao; |
| | | private final DataDictionaryCustomMapper dataDictionaryCustomMapper; |
| | | |
| | | public static long idOrderFlow; |
| | | |
| | | /** |
| | | * 挂机-列表 |
| | |
| | | return FebsUtil.view("onhookplan/planSet"); |
| | | } |
| | | |
| | | /** |
| | | * 资金流水详情 |
| | | * @param id |
| | | * @param model |
| | | * @return |
| | | */ |
| | | @GetMapping("/amountFlow/{id}") |
| | | @RequiresPermissions("amountFlow:update") |
| | | public String amountFlow(@PathVariable long id, Model model) { |
| | | idOrderFlow = id; |
| | | IgtOnHookPlanOrder data = igtOnHookPlanOrderDao.selectById(id); |
| | | model.addAttribute("igtOrder", data); |
| | | return FebsUtil.view("onhookplan/amountFlow"); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | package cc.mrbird.febs.dapp.mapper; |
| | | |
| | | import cc.mrbird.febs.dapp.entity.DappAccountMoneyChangeEntity; |
| | | import cc.mrbird.febs.dapp.entity.IgtOnHookPlanOrder; |
| | | import cc.mrbird.febs.dapp.vo.AdminIgtOnHookPlanOrderVo; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | |
| | | List<Long> selectIdsByState(@Param("state")int i); |
| | | |
| | | void updateByIds(List<Long> ids); |
| | | |
| | | IPage<DappAccountMoneyChangeEntity> findFlowListInPage(Page<DappAccountMoneyChangeEntity> page, @Param("orderId")Long id); |
| | | } |
| | |
| | | package cc.mrbird.febs.dapp.service; |
| | | |
| | | import cc.mrbird.febs.common.entity.QueryRequest; |
| | | import cc.mrbird.febs.dapp.entity.DappAccountMoneyChangeEntity; |
| | | import cc.mrbird.febs.dapp.entity.IgtOnHookPlanOrder; |
| | | import cc.mrbird.febs.dapp.vo.AdminIgtOnHookPlanOrderVo; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | |
| | | IPage<AdminIgtOnHookPlanOrderVo> getplanList(IgtOnHookPlanOrder igtOnHookPlanOrder, QueryRequest request); |
| | | |
| | | IPage<DappAccountMoneyChangeEntity> getFlowList(Long id, QueryRequest request); |
| | | } |
| | |
| | | package cc.mrbird.febs.dapp.service.impl; |
| | | |
| | | import cc.mrbird.febs.common.entity.QueryRequest; |
| | | import cc.mrbird.febs.dapp.entity.DappAccountMoneyChangeEntity; |
| | | import cc.mrbird.febs.dapp.entity.IgtOnHookPlanOrder; |
| | | import cc.mrbird.febs.dapp.entity.MemberCoinWithdrawEntity; |
| | | import cc.mrbird.febs.dapp.mapper.IgtOnHookPlanOrderDao; |
| | |
| | | return adminIgtOnHookPlanOrderVoIPage; |
| | | } |
| | | |
| | | @Override |
| | | public IPage<DappAccountMoneyChangeEntity> getFlowList(Long id, QueryRequest request) { |
| | | Page<DappAccountMoneyChangeEntity> page = new Page<>(request.getPageNum(), request.getPageSize()); |
| | | IPage<DappAccountMoneyChangeEntity> accountMoneyChangeEntityIPage = igtOnHookPlanOrderDao.findFlowListInPage(page, id); |
| | | return accountMoneyChangeEntityIPage; |
| | | } |
| | | |
| | | } |
| | |
| | | dappMemberDao.updateById(dappMember); |
| | | |
| | | DappAccountMoneyChangeEntity dappAccountMoneyChangeEntity = new DappAccountMoneyChangeEntity(memberId, availableAmount, balance.negate() |
| | | , availableAmount.subtract(balance).setScale(2,BigDecimal.ROUND_DOWN), "挂机", 6); |
| | | , availableAmount.subtract(balance).setScale(2,BigDecimal.ROUND_DOWN), "挂机", 6,igtOnHookPlanOrder.getId()); |
| | | dappAccountMoneyChangeDao.insert(dappAccountMoneyChangeEntity); |
| | | return new FebsResponse().success().message(MessageSourceUtils.getString("Operation_001")); |
| | | } |
| | |
| | | </foreach> |
| | | </update> |
| | | |
| | | <select id="findFlowListInPage" resultType="cc.mrbird.febs.dapp.entity.DappAccountMoneyChangeEntity"> |
| | | SELECT |
| | | a.* |
| | | FROM |
| | | dapp_account_money_change a |
| | | left join dapp_member b on a.member_id = b.id |
| | | where a.order_id = #{orderId} |
| | | order by s.create_time asc |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <div className="layui-fluid layui-anim febs-anim" id="febs-refunding-child" lay-title="资金流水"> |
| | | <div className="layui-row febs-container"> |
| | | <div className="layui-col-md12"> |
| | | <div className="layui-card"> |
| | | <div className="layui-card-body febs-table-full"> |
| | | <table lay-filter="refundingTableChild" lay-data="{id: 'refundingTableChild'}"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script data-th-inline="none" type="text/javascript"> |
| | | layui.use(['jquery', 'form', 'table', 'febs'], function () { |
| | | var $ = layui.jquery, |
| | | febs = layui.febs, |
| | | form = layui.form, |
| | | table = layui.table, |
| | | $view = $('#febs-refunding-child'), |
| | | tableIns; |
| | | |
| | | form.render(); |
| | | |
| | | initTable(); |
| | | |
| | | function initTable() { |
| | | tableIns = febs.table.init({ |
| | | elem: $view.find('table'), |
| | | id: 'refundingTableChild', |
| | | url: ctx + 'admin/onHook/getFlowList?parentId=1', |
| | | cols: [[ |
| | | {field: 'username', title: '用户名', minWidth: 150}, |
| | | {field: 'amount', title: '变化金额', minWidth: 100}, |
| | | {field: 'content', title: '描述', minWidth: 130}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180} |
| | | ]] |
| | | }); |
| | | } |
| | | |
| | | }) |
| | | </script> |
| | |
| | | disagree(data.id); |
| | | }); |
| | | } |
| | | |
| | | if (layEvent === 'amountFlow') { |
| | | febs.modal.open( '资金流水详情', 'onHookView/amountFlow/' + data.id, { |
| | | maxmin: true, |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | function agree(id) { |
| | |
| | | {field: 'planCode', title: '挂机方案倍数', minWidth: 120, align: 'center'}, |
| | | {field: 'profit', title: '总收益', minWidth: 120, align: 'center', totalRow: true}, |
| | | {field: 'createTime', title: '时间', minWidth: 180, align: 'center'}, |
| | | // {title: '操作', |
| | | // templet: function (d) { |
| | | // if(d.status === 1){ |
| | | // return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="agree" shiro:hasPermission="user:update">同意</button>' |
| | | // +'<button class="layui-btn layui-btn-danger layui-btn-xs layui-btn-danger" lay-event="disagree" shiro:hasPermission="user:update">拒绝</button>' |
| | | // }else{ |
| | | // return '' |
| | | // } |
| | | // },minWidth: 120,align:'center'} |
| | | {title: '操作', |
| | | templet: function (d) { |
| | | if(d.state === 2){ |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="amountFlow" shiro:hasPermission="user:update">流水记录</button>' |
| | | }else{ |
| | | return '' |
| | | } |
| | | },minWidth: 120,align:'center'} |
| | | ]] |
| | | }); |
| | | } |