|
|
@@ -126,7 +126,7 @@ public class CmsAccountController {
|
|
|
|
|
|
@GetMapping("/get")
|
|
|
@SaCheckPermission("account:view")
|
|
|
- public Result<SearchResult<AccountView>> get(String title, Long userId, String showId, String nickName, String submitAccount, String expiryStartTime, String expiryEndTime, Boolean expiredAll, Boolean existsExpired, Boolean existsExpiredToday, Integer noChangeMonths, Boolean isMjMirror, String orderNo) {
|
|
|
+ public Result<SearchResult<AccountView>> get(String title, Long userId, String showId, String nickName, String submitAccount, String expiryStartTime, String expiryEndTime, Boolean expiredAll, Boolean existsExpired, Boolean existsExpiredToday, Integer noChangeMonths, Boolean isMjMirror, String orderNo, Boolean isEmpty) {
|
|
|
MapBuilder mapBuilder = MapUtils.flatBuilder(request.getParameterMap());
|
|
|
if (StrUtil.isNotEmpty(expiryStartTime) || StrUtil.isNotEmpty(expiryEndTime)) {
|
|
|
mapBuilder.field(AccountView::getExpiryTime, expiryStartTime, expiryEndTime)
|
|
|
@@ -143,6 +143,9 @@ public class CmsAccountController {
|
|
|
if (StrUtil.isNotEmpty(showId)) {
|
|
|
userId = userMapper.getUserIdByShowId(showId);
|
|
|
}
|
|
|
+ if (isEmpty != null && isEmpty) {
|
|
|
+ mapBuilder.field(AccountView::getNum, AccountView::getAvailableNum).sql("$1 = $2");
|
|
|
+ }
|
|
|
//用户订单号查找对应账号
|
|
|
if (StrUtil.isNotBlank(orderNo)) {
|
|
|
Long groupId = 0l;
|
|
|
@@ -252,7 +255,7 @@ public class CmsAccountController {
|
|
|
@GetMapping("/export/account")
|
|
|
@SaCheckPermission("account:export")
|
|
|
@Log(module = "平台管理/导出账号", businessType = BusinessType.EXPORT, isSaveRequestData = true)
|
|
|
- public void exportAccount(String title, Long userId, String showId, String nickName, String submitAccount, String expiryStartTime, String expiryEndTime, Boolean expiredAll, Boolean existsExpired, Boolean existsExpiredToday, Integer noChangeMonths, HttpServletResponse response) {
|
|
|
+ public void exportAccount(String title, Long userId, String showId, String nickName, String submitAccount, String expiryStartTime, String expiryEndTime, Boolean expiredAll, Boolean existsExpired, Boolean existsExpiredToday, Integer noChangeMonths, Boolean isEmpty, HttpServletResponse response) {
|
|
|
MapBuilder mapBuilder = MapUtils.flatBuilder(request.getParameterMap());
|
|
|
if (StrUtil.isNotEmpty(expiryStartTime) || StrUtil.isNotEmpty(expiryEndTime)) {
|
|
|
mapBuilder.field(ExcelManageAccountData::getExpiryTime, expiryStartTime, expiryEndTime)
|
|
|
@@ -271,6 +274,10 @@ public class CmsAccountController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (isEmpty != null && isEmpty) {
|
|
|
+ mapBuilder.field(ExcelManageAccountData::getNum, ExcelManageAccountData::getAvailableNum).sql("$1 = $2");
|
|
|
+ }
|
|
|
+
|
|
|
if (userId != null || StringUtils.isNotBlank(nickName) || StringUtils.isNotBlank(submitAccount)) {
|
|
|
List<Long> accountIds = homeGroupMapper.getAccountIdsByUserIdOrNickNameOrSubmitAccount(userId, nickName, submitAccount);
|
|
|
if (accountIds.isEmpty()) {
|