mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
增加会员明细和导出功能
This commit is contained in:
@@ -28,10 +28,7 @@ import com.jsowell.pile.vo.base.MerchantInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.customer.MemberVO;
|
||||
import com.jsowell.pile.vo.uniapp.customer.MemberWalletLogVO;
|
||||
import com.jsowell.pile.vo.uniapp.customer.MerchantVipVO;
|
||||
import com.jsowell.pile.vo.web.MemberTransactionVO;
|
||||
import com.jsowell.pile.vo.web.OrderListVO;
|
||||
import com.jsowell.pile.vo.web.PlatformTesterVO;
|
||||
import com.jsowell.pile.vo.web.UpdateMemberBalanceDTO;
|
||||
import com.jsowell.pile.vo.web.*;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
@@ -321,4 +318,25 @@ public class MemberBasicInfoController extends BaseController {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* 查询会员明细
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/queryMemberDetails")
|
||||
public AjaxResult queryMemberDetails(@RequestBody UniAppQueryMemberBalanceDTO dto) {
|
||||
try {
|
||||
if (StringUtils.isBlank(dto.getMemberId())) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
|
||||
}
|
||||
MemberDetailsVO memberDetailsVO = memberBasicInfoService.queryMemberDetails(dto);
|
||||
return AjaxResult.success(memberDetailsVO);
|
||||
} catch (BusinessException e) {
|
||||
logger.error("查询会员明细失败,dto: {}", dto, e);
|
||||
return AjaxResult.error(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
logger.error("查询会员明细发生未知异常,dto: {}", dto, e);
|
||||
return AjaxResult.error("查询会员明细发生未知异常,请稍后重试");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user