| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.admin.entity.Franchisee; |
| | | import com.ruoyi.admin.entity.User; |
| | | import com.ruoyi.admin.service.FranchiseeService; |
| | | import com.ruoyi.admin.service.UserService; |
| | | import com.ruoyi.admin.service.WithdrawService; |
| | | import com.ruoyi.common.core.domain.R; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.lang.reflect.Array; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | |
| | | @Resource |
| | | private TokenService tokenService; |
| | | @Resource |
| | | private FranchiseeService franchiseeService; |
| | | /** |
| | | * 用户所关联提现记录分页列表 |
| | | * |
| | |
| | | List<String> cityList = loginUser.getCityList(); |
| | | |
| | | |
| | | Integer franchiseeId = loginUser.getSysUser().getFranchiseeId(); |
| | | String[] siteIds = new String[0]; |
| | | if (franchiseeId!=null){ |
| | | Franchisee byId = franchiseeService.getById(franchiseeId); |
| | | siteIds = byId.getSiteIds().split(","); |
| | | if (loginUser.getIsFranchisee()&&siteIds.length==0){ |
| | | return R.ok(); |
| | | } |
| | | } |
| | | |
| | | |
| | | Page<UserWithdrawRecordVO> page = withdrawClient.withdrawPage1(cityList,nickname, userPhone, applyForTime, |
| | | state, pageNum, pageSize,userIds).getData(); |
| | | state, pageNum, pageSize,userIds, Arrays.asList(siteIds)).getData(); |
| | | if (null != page) { |
| | | for (UserWithdrawRecordVO record : page.getRecords()) { |
| | | Integer userId = record.getUserId(); |