mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
新增 用户反馈信息表
This commit is contained in:
@@ -1,78 +0,0 @@
|
||||
package com.jsowell.pile.domain;
|
||||
|
||||
import com.jsowell.common.core.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
public class MemberFeedback extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 会员id
|
||||
*/
|
||||
private String memberId;
|
||||
|
||||
/**
|
||||
* 会员姓名
|
||||
*/
|
||||
private String memberName;
|
||||
|
||||
/**
|
||||
* 联系方式
|
||||
*/
|
||||
private String contactInfo;
|
||||
|
||||
/**
|
||||
* 反馈类型 1=功能建议,2=系统BUG,3=服务投诉,4=站点问题,5=电桩问题,6=其他)
|
||||
*/
|
||||
private String feedbackType;
|
||||
|
||||
/**
|
||||
* 反馈内容
|
||||
*/
|
||||
private String feedbackContent;
|
||||
|
||||
/**
|
||||
* 处理状态(0=未处理,1=处理中,2=已处理,3=待跟进)
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 管理员回复内容
|
||||
*/
|
||||
private String replyContent;
|
||||
|
||||
/**
|
||||
* 管理员回复时间
|
||||
*/
|
||||
private Date replyTime;
|
||||
|
||||
/**
|
||||
* 删除标记(0=未删除,1=已删除)
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.jsowell.pile.domain;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.jsowell.common.annotation.Excel;
|
||||
import com.jsowell.common.core.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 用户问题反馈对象 member_feedback_info
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
public class MemberFeedbackInfo extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 反馈信息流水号
|
||||
*/
|
||||
private String feedbackCode;
|
||||
|
||||
/**
|
||||
* 会员ID
|
||||
*/
|
||||
@Excel(name = "会员ID")
|
||||
private String memberId;
|
||||
|
||||
/**
|
||||
* 会员姓名/昵称
|
||||
*/
|
||||
@Excel(name = "会员姓名/昵称")
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 手机号码
|
||||
*/
|
||||
@Excel(name = "手机号码")
|
||||
private String phoneNumber;
|
||||
|
||||
/**
|
||||
* 反馈类型(1=功能建议,2=系统BUG,3=服务投诉,4=站点问题,5=电桩问题,6=其他)
|
||||
*/
|
||||
@Excel(name = "反馈类型", readConverterExp = "1==功能建议,2=系统BUG,3=服务投诉,4=站点问题,5=电桩问题,6=其他")
|
||||
private String feedbackType;
|
||||
|
||||
/**
|
||||
* 反馈内容
|
||||
*/
|
||||
@Excel(name = "反馈内容")
|
||||
private String feedbackContent;
|
||||
|
||||
/**
|
||||
* 处理状态(0=未处理,1=处理中,2=已处理,3=待跟进)
|
||||
*/
|
||||
@Excel(name = "处理状态", readConverterExp = "0==未处理,1=处理中,2=已处理,3=待跟进")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 管理员回复内容
|
||||
*/
|
||||
@Excel(name = "管理员回复内容")
|
||||
private String replyContent;
|
||||
|
||||
/**
|
||||
* 管理员回复时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "管理员回复时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date replyTime;
|
||||
|
||||
/**
|
||||
* 删除标识(0-正常;1-删除)
|
||||
*/
|
||||
private String delFlag;
|
||||
}
|
||||
@@ -7,13 +7,23 @@ import lombok.NoArgsConstructor;
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class MemberFeedbackDTO {
|
||||
public class MemberFeedbackInfoDTO {
|
||||
|
||||
/**
|
||||
* 会员ID
|
||||
*/
|
||||
private String memberId;
|
||||
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 手机号码
|
||||
*/
|
||||
private String phoneNumber;
|
||||
|
||||
/**
|
||||
* 反馈内容
|
||||
*/
|
||||
@@ -21,9 +31,8 @@ public class MemberFeedbackDTO {
|
||||
|
||||
/**
|
||||
* 反馈类型
|
||||
* 1=功能建议,2=系统BUG,3=服务投诉,4=站点问题,5=电桩问题,6=其他
|
||||
*/
|
||||
private String feedbackType;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.MemberFeedbackInfo;
|
||||
import com.jsowell.pile.vo.uniapp.customer.MemberFeedbackInfoVO;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 用户问题反馈Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@Repository
|
||||
public interface MemberFeedbackInfoMapper {
|
||||
/**
|
||||
* 查询用户问题反馈
|
||||
*
|
||||
* @param id 用户问题反馈主键
|
||||
* @return 用户问题反馈
|
||||
*/
|
||||
public MemberFeedbackInfo selectMemberFeedbackInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户问题反馈列表
|
||||
*
|
||||
* @param memberFeedbackInfo 用户问题反馈
|
||||
* @return 用户问题反馈集合
|
||||
*/
|
||||
public List<MemberFeedbackInfo> selectMemberFeedbackInfoList(MemberFeedbackInfo memberFeedbackInfo);
|
||||
|
||||
/**
|
||||
* 新增用户问题反馈
|
||||
*
|
||||
* @param memberFeedbackInfo 用户问题反馈
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMemberFeedbackInfo(MemberFeedbackInfo memberFeedbackInfo);
|
||||
|
||||
/**
|
||||
* 修改用户问题反馈
|
||||
*
|
||||
* @param memberFeedbackInfo 用户问题反馈
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMemberFeedbackInfo(MemberFeedbackInfo memberFeedbackInfo);
|
||||
|
||||
/**
|
||||
* 删除用户问题反馈
|
||||
*
|
||||
* @param id 用户问题反馈主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMemberFeedbackInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除用户问题反馈
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMemberFeedbackInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 根据memberId查询信息列表
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
List<MemberFeedbackInfoVO> getInfoListByMemberId(String memberId);
|
||||
|
||||
/**
|
||||
* 通过反馈编码查询反馈信息详情
|
||||
* @param feedbackCode
|
||||
* @return
|
||||
*/
|
||||
MemberFeedbackInfoVO getMemberFeedbackDetailByCode(String feedbackCode);
|
||||
}
|
||||
@@ -1,53 +0,0 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.MemberFeedback;
|
||||
import com.jsowell.pile.dto.QueryMemberFeedbackDTO;
|
||||
import com.jsowell.pile.vo.uniapp.customer.MemberFeedbackVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface MemberFeedbackMapper {
|
||||
|
||||
/**
|
||||
* 保存会员反馈信息
|
||||
* @param memberFeedback
|
||||
* @return
|
||||
*/
|
||||
public int insertMemberFeedback(MemberFeedback memberFeedback);
|
||||
|
||||
/**
|
||||
* 根据会员ID查询会员反馈信息列表
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
List<MemberFeedbackVO> selectMemberFeedbackList(String memberId);
|
||||
|
||||
/**
|
||||
* 根据条件查询会员反馈信息列表
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
List<MemberFeedbackVO> getFeedbackList(QueryMemberFeedbackDTO dto);
|
||||
|
||||
/**
|
||||
* 根据会员ID查询会员反馈信息
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
MemberFeedbackVO getFeedbackById(Long id);
|
||||
|
||||
/**
|
||||
* 根据ID更新会员反馈信息
|
||||
* @param dto
|
||||
*/
|
||||
void updateFeedback(QueryMemberFeedbackDTO dto);
|
||||
|
||||
/**
|
||||
* 根据ID删除会员反馈信息
|
||||
* @param id
|
||||
*/
|
||||
void deleteMemberFeedbackById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.MemberFeedbackInfo;
|
||||
import com.jsowell.pile.dto.MemberFeedbackInfoDTO;
|
||||
import com.jsowell.pile.vo.uniapp.customer.MemberFeedbackInfoVO;
|
||||
|
||||
/**
|
||||
* 用户问题反馈Service接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
public interface MemberFeedbackInfoService {
|
||||
/**
|
||||
* 查询用户问题反馈
|
||||
*
|
||||
* @param id 用户问题反馈主键
|
||||
* @return 用户问题反馈
|
||||
*/
|
||||
public MemberFeedbackInfo selectMemberFeedbackInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户问题反馈列表
|
||||
*
|
||||
* @param memberFeedbackInfo 用户问题反馈
|
||||
* @return 用户问题反馈集合
|
||||
*/
|
||||
public List<MemberFeedbackInfo> selectMemberFeedbackInfoList(MemberFeedbackInfo memberFeedbackInfo);
|
||||
|
||||
/**
|
||||
* 新增用户问题反馈
|
||||
*
|
||||
* @param memberFeedbackInfo 用户问题反馈
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMemberFeedbackInfo(MemberFeedbackInfo memberFeedbackInfo);
|
||||
|
||||
/**
|
||||
* 修改用户问题反馈
|
||||
*
|
||||
* @param memberFeedbackInfo 用户问题反馈
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMemberFeedbackInfo(MemberFeedbackInfo memberFeedbackInfo);
|
||||
|
||||
/**
|
||||
* 批量删除用户问题反馈
|
||||
*
|
||||
* @param ids 需要删除的用户问题反馈主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMemberFeedbackInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除用户问题反馈信息
|
||||
*
|
||||
* @param id 用户问题反馈主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMemberFeedbackInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 保存用户提出的反馈建议信息
|
||||
* @param dto
|
||||
*/
|
||||
void saveFeedbackInfo(MemberFeedbackInfoDTO dto);
|
||||
|
||||
/**
|
||||
* 通过memberId查询反馈信息列表
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
List<MemberFeedbackInfoVO> getInfoListByMemberId(String memberId);
|
||||
|
||||
/**
|
||||
* 通过反馈编码查询反馈信息详情
|
||||
* @param feedbackCode
|
||||
* @return
|
||||
*/
|
||||
MemberFeedbackInfoVO getMemberFeedbackDetailByCode(String feedbackCode);
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import com.jsowell.pile.dto.MemberFeedbackDTO;
|
||||
import com.jsowell.pile.dto.QueryMemberFeedbackDTO;
|
||||
import com.jsowell.pile.vo.uniapp.customer.MemberFeedbackVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface MemberFeedbackService {
|
||||
|
||||
/**
|
||||
* 用户反馈信息保存
|
||||
* @param dto
|
||||
*/
|
||||
void saveFeedback(MemberFeedbackDTO dto);
|
||||
|
||||
/**
|
||||
* 获取用户反馈信息列表
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
List<MemberFeedbackVO> getFeedbackList(String memberId);
|
||||
|
||||
/**
|
||||
* 条件查询用户反馈信息列表 (管理后台使用)
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
List<MemberFeedbackVO> selectFeedbackList(QueryMemberFeedbackDTO dto);
|
||||
|
||||
/**
|
||||
* 根据memberId获取用户反馈信息
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
MemberFeedbackVO getFeedbackById(Long id);
|
||||
|
||||
/**
|
||||
* 根据memberId删除用户反馈信息
|
||||
* @param dto
|
||||
*/
|
||||
void updateFeedback(QueryMemberFeedbackDTO dto);
|
||||
|
||||
/**
|
||||
* 根据ids删除用户反馈信息
|
||||
* @param ids
|
||||
*/
|
||||
void deleteFeedbackByIds(List<Long> ids);
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.common.constant.Constants;
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.common.util.id.IdUtils;
|
||||
import com.jsowell.pile.dto.MemberFeedbackInfoDTO;
|
||||
import com.jsowell.pile.service.MemberFeedbackInfoService;
|
||||
import com.jsowell.pile.vo.uniapp.customer.MemberFeedbackInfoVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jsowell.pile.mapper.MemberFeedbackInfoMapper;
|
||||
import com.jsowell.pile.domain.MemberFeedbackInfo;
|
||||
|
||||
/**
|
||||
* 用户问题反馈Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2025-06-26
|
||||
*/
|
||||
@Service
|
||||
public class MemberFeedbackInfoServiceImpl implements MemberFeedbackInfoService {
|
||||
@Autowired
|
||||
private MemberFeedbackInfoMapper memberFeedbackInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询用户问题反馈
|
||||
*
|
||||
* @param id 用户问题反馈主键
|
||||
* @return 用户问题反馈
|
||||
*/
|
||||
@Override
|
||||
public MemberFeedbackInfo selectMemberFeedbackInfoById(Long id) {
|
||||
return memberFeedbackInfoMapper.selectMemberFeedbackInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户问题反馈列表
|
||||
*
|
||||
* @param memberFeedbackInfo 用户问题反馈
|
||||
* @return 用户问题反馈
|
||||
*/
|
||||
@Override
|
||||
public List<MemberFeedbackInfo> selectMemberFeedbackInfoList(MemberFeedbackInfo memberFeedbackInfo) {
|
||||
return memberFeedbackInfoMapper.selectMemberFeedbackInfoList(memberFeedbackInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户问题反馈
|
||||
*
|
||||
* @param memberFeedbackInfo 用户问题反馈
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertMemberFeedbackInfo(MemberFeedbackInfo memberFeedbackInfo) {
|
||||
memberFeedbackInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return memberFeedbackInfoMapper.insertMemberFeedbackInfo(memberFeedbackInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户问题反馈
|
||||
*
|
||||
* @param memberFeedbackInfo 用户问题反馈
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateMemberFeedbackInfo(MemberFeedbackInfo memberFeedbackInfo) {
|
||||
memberFeedbackInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return memberFeedbackInfoMapper.updateMemberFeedbackInfo(memberFeedbackInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除用户问题反馈
|
||||
*
|
||||
* @param ids 需要删除的用户问题反馈主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMemberFeedbackInfoByIds(Long[] ids) {
|
||||
return memberFeedbackInfoMapper.deleteMemberFeedbackInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户问题反馈信息
|
||||
*
|
||||
* @param id 用户问题反馈主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMemberFeedbackInfoById(Long id) {
|
||||
return memberFeedbackInfoMapper.deleteMemberFeedbackInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存用户提出的反馈建议信息
|
||||
* @param dto
|
||||
*/
|
||||
@Override
|
||||
public void saveFeedbackInfo(MemberFeedbackInfoDTO dto) {
|
||||
MemberFeedbackInfo info = MemberFeedbackInfo.builder()
|
||||
.memberId(dto.getMemberId())
|
||||
.nickName(dto.getNickName())
|
||||
.phoneNumber(dto.getPhoneNumber())
|
||||
.feedbackType(dto.getFeedbackType())
|
||||
.feedbackContent(dto.getFeedbackContent())
|
||||
.status(Constants.ZERO)
|
||||
.build();
|
||||
// 生成24位流水号
|
||||
String feedbackCode = IdUtils.generateFBSerialNumber(24);
|
||||
info.setFeedbackCode(feedbackCode);
|
||||
|
||||
insertMemberFeedbackInfo(info);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过memberId查询反馈信息列表
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<MemberFeedbackInfoVO> getInfoListByMemberId(String memberId) {
|
||||
return memberFeedbackInfoMapper.getInfoListByMemberId(memberId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过反馈编码查询反馈信息详情
|
||||
* @param feedbackCode
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public MemberFeedbackInfoVO getMemberFeedbackDetailByCode(String feedbackCode) {
|
||||
return memberFeedbackInfoMapper.getMemberFeedbackDetailByCode(feedbackCode);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,110 +0,0 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.jsowell.common.constant.Constants;
|
||||
import com.jsowell.common.core.redis.RedisCache;
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.pile.domain.MemberBasicInfo;
|
||||
import com.jsowell.pile.domain.MemberFeedback;
|
||||
import com.jsowell.pile.dto.MemberFeedbackDTO;
|
||||
import com.jsowell.pile.dto.QueryMemberFeedbackDTO;
|
||||
import com.jsowell.pile.mapper.MemberBasicInfoMapper;
|
||||
import com.jsowell.pile.mapper.MemberFeedbackMapper;
|
||||
import com.jsowell.pile.service.MemberFeedbackService;
|
||||
import com.jsowell.pile.vo.uniapp.customer.MemberFeedbackVO;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
@Slf4j
|
||||
public class MemberFeedbackServiceImpl implements MemberFeedbackService {
|
||||
|
||||
@Autowired
|
||||
MemberBasicInfoMapper memberBasicInfoMapper;
|
||||
|
||||
@Autowired
|
||||
MemberFeedbackMapper memberFeedbackMapper;
|
||||
|
||||
/**
|
||||
* 用户反馈保存
|
||||
* @param dto
|
||||
*/
|
||||
@Override
|
||||
public void saveFeedback(MemberFeedbackDTO dto) {
|
||||
MemberBasicInfo memberInfo = memberBasicInfoMapper.selectInfoByMemberId(dto.getMemberId());
|
||||
if (memberInfo == null) {
|
||||
throw new IllegalArgumentException("");
|
||||
}
|
||||
MemberFeedback memberFeedback = MemberFeedback.builder ()
|
||||
.memberId(dto.getMemberId())
|
||||
.memberName(memberInfo.getNickName())
|
||||
.contactInfo(memberInfo.getMobileNumber()) // 联系方式
|
||||
.feedbackType(dto.getFeedbackType()) //反馈类型
|
||||
.feedbackContent(dto.getFeedbackContent())
|
||||
.status(Constants.ONE)
|
||||
.createTime(DateUtils.getNowDate())
|
||||
.delFlag(Constants.ZERO)
|
||||
.build();
|
||||
|
||||
// 保存反馈信息至数据库
|
||||
memberFeedbackMapper.insertMemberFeedback(memberFeedback);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户反馈列表
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<MemberFeedbackVO> getFeedbackList(String memberId) {
|
||||
return memberFeedbackMapper.selectMemberFeedbackList(memberId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 条件查询用户反馈列表 (后管)
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<MemberFeedbackVO> selectFeedbackList(QueryMemberFeedbackDTO dto) {
|
||||
//分页
|
||||
dto.setPageNum(dto.getPageNum() == null? 1 : dto.getPageNum());
|
||||
dto.setPageSize(dto.getPageSize() == null? 10 : dto.getPageSize());
|
||||
PageHelper.startPage(dto.getPageNum(), dto.getPageSize());
|
||||
return memberFeedbackMapper.getFeedbackList(dto);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据id获取用户反馈信息
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public MemberFeedbackVO getFeedbackById(Long id) {
|
||||
return memberFeedbackMapper.getFeedbackById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id更新用户反馈信息
|
||||
* @param dto
|
||||
*/
|
||||
@Override
|
||||
public void updateFeedback(QueryMemberFeedbackDTO dto) {
|
||||
memberFeedbackMapper.updateFeedback(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id删除用户反馈信息
|
||||
* @param ids
|
||||
*/
|
||||
@Override
|
||||
public void deleteFeedbackByIds(List<Long> ids) {
|
||||
for (Long id : ids) {
|
||||
memberFeedbackMapper.deleteMemberFeedbackById(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,10 +7,15 @@ import java.util.Date;
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
public class MemberFeedbackVO {
|
||||
public class MemberFeedbackInfoVO {
|
||||
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 反馈信息流水号
|
||||
*/
|
||||
private String feedbackCode;
|
||||
|
||||
/**
|
||||
* 会员id
|
||||
*/
|
||||
@@ -19,12 +24,12 @@ public class MemberFeedbackVO {
|
||||
/**
|
||||
* 会员姓名
|
||||
*/
|
||||
private String memberName;
|
||||
private String nickName;
|
||||
|
||||
/**
|
||||
* 联系方式
|
||||
*/
|
||||
private String contactInfo;
|
||||
private String phoneNumber;
|
||||
|
||||
/**
|
||||
* 反馈类型 1=功能建议,2=系统BUG,3=服务投诉,4=站点问题,5=电桩问题,6=其他)
|
||||
Reference in New Issue
Block a user