| | |
| | | @Override |
| | | public IPage<AdminRedBagVo> getRedBagList(ChatUser chatUser, QueryRequest request) { |
| | | Page<AdminRedBagVo> page = new Page<>(request.getPageNum(), request.getPageSize()); |
| | | log.info("{}",chatUser.getIsRobot()); |
| | | return this.baseMapper.selectRedBagListInPage(page, chatUser); |
| | | } |
| | | |
| | |
| | | * 1:成功 2:失败 3:进行中 |
| | | */ |
| | | private Integer state; |
| | | |
| | | private String addressType; |
| | | } |
| | |
| | | |
| | | private String msgType; |
| | | private String groupName; |
| | | |
| | | /** |
| | | * 是否是机器人 0:否 1:是 |
| | | */ |
| | | private Integer isRobot; |
| | | } |
| | |
| | | from chat_user a |
| | | left join chat_wallet b on b.user_id = a.user_id and b.type = 'USDT' |
| | | <where> |
| | | a.is_robot = 0 |
| | | <if test="record.phone != null and record.phone != ''"> |
| | | and a.phone like CONCAT('%', CONCAT(#{record.phone}, '%')) |
| | | </if> |
| | |
| | | (a.amount - a.fee) amount, |
| | | a.type type, |
| | | a.address address, |
| | | a.address_type addressType, |
| | | a.state state |
| | | from member_coin_withdraw a |
| | | left join chat_user b on b.user_id = a.user_id |
| | |
| | | select |
| | | a.*, |
| | | b.nick_name nickName, |
| | | b.is_robot isRobot, |
| | | c.name groupName |
| | | from chat_red_bag a |
| | | left join chat_user b on b.user_id = a.from_user_id |
| | |
| | | <if test="record.name != null and record.name != ''"> |
| | | and c.name like CONCAT('%', CONCAT(#{record.name}, '%')) |
| | | </if> |
| | | <if test="record.nickName != null and record.nickName != ''"> |
| | | and b.nick_name like CONCAT('%', CONCAT(#{record.nickName}, '%')) |
| | | </if> |
| | | <if test="record.isRobot != null"> |
| | | and b.is_robot = #{record.isRobot} |
| | | </if> |
| | | </if> |
| | | </where> |
| | | order by a.create_time desc |
| | |
| | | {field: 'id', title: '', minWidth: 150,align:'center', totalRowText: '合计:',align:'center'}, |
| | | {field: 'phone', title: '电话号码', minWidth: 150,align:'center'}, |
| | | {field: 'nickName', title: '昵称', minWidth: 150,align:'center'}, |
| | | {field: 'addressType', title: '公链', minWidth: 150,align:'center'}, |
| | | {field: 'amount', title: '金额', minWidth: 100,align:'center',align:'center',totalRow: '{{= parseInt(d.amount) }}'}, |
| | | {field: 'type', title: '类型', |
| | | templet: function (d) { |
| | |
| | | <div class="layui-input-inline"> |
| | | <input type="text" placeholder="群组名称" name="name" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | |
| | | <label class="layui-form-label">发送方:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" placeholder="发送方" name="nickName" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | |
| | | <label class="layui-form-label">用户类型:</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="isRobot"> |
| | | <option value="">请选择</option> |
| | | <option value="0">用户</option> |
| | | <option value="1">机器人</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <span>个人</span> |
| | | {{# } else { }} |
| | | <span>群聊</span> |
| | | {{# } }} |
| | | </script> |
| | | <script type="text/html" id="isRobot-type"> |
| | | {{# if(d.isRobot == 1) { }} |
| | | <span class="layui-badge febs-bg-green">机器人</span> |
| | | {{# } else { }} |
| | | <span class="layui-badge febs-bg-blue">用户</span> |
| | | {{# } }} |
| | | </script> |
| | | <style> |
| | |
| | | function getQueryParams() { |
| | | return { |
| | | name: $searchForm.find('input[name="name"]').val().trim(), |
| | | nickName: $searchForm.find('input[name="nickName"]').val().trim(), |
| | | isRobot: $searchForm.find("select[name='isRobot']").val() |
| | | }; |
| | | } |
| | | |
| | |
| | | cols: [[ |
| | | {field: 'id', title: '编号', minWidth: 100,align:'center'}, |
| | | {field: 'nickName', title: '发送方', minWidth: 100,align:'center'}, |
| | | {title: '用户类型', minWidth: 100,templet: '#isRobot-type',align:'center'}, |
| | | {templet:"#isMsgType", title: '类型', minWidth: 100,align:'center'}, |
| | | {field: 'groupName', title: '接收方', minWidth: 200,align:'center'}, |
| | | {field: 'totalCnt', title: '红包总个数', minWidth: 100,align:'center'}, |
| | |
| | | <input type="text" placeholder="邀请码(获取团队下的所有成员)" name="inviteId" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">用户类型:</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="isRobot"> |
| | | <option value="">请选择</option> |
| | | <option value="0">用户</option> |
| | | <option value="1">机器人</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="layui-inline">--> |
| | | <!-- <label class="layui-form-label">用户类型:</label>--> |
| | | <!-- <div class="layui-input-inline">--> |
| | | <!-- <select name="isRobot">--> |
| | | <!-- <option value="">请选择</option>--> |
| | | <!-- <option value="0">用户</option>--> |
| | | <!-- <option value="1">机器人</option>--> |
| | | <!-- </select>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-md2 layui-col-sm12 layui-col-xs12 table-action-area"> |
| | |
| | | phone: $searchForm.find('input[name="phone"]').val().trim(), |
| | | // nickName: $searchForm.find('input[name="nickName"]').val().trim(), |
| | | inviteId: $searchForm.find('input[name="inviteId"]').val().trim(), |
| | | isRobot: $searchForm.find("select[name='isRobot']").val() |
| | | // isRobot: $searchForm.find("select[name='isRobot']").val() |
| | | }; |
| | | } |
| | | |