Browse Source

[feat]

售后管理 售后客诉通知
修改客诉通知单详情实体类,调整表格导出字段顺序,字典类型字段添加注解;
新增客诉通知详情mapper按通知单编号集合查询详情列表的方法;
新增客诉通知详情service按通知单编号集合查询详情列表的接口;
dev
王晓迪 4 months ago
parent
commit
1a9037a1b6
  1. 14
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/domain/AftersalesComplaintNoticeDetail.java
  2. 8
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/AftersalesComplaintNoticeDetailMapper.java
  3. 9
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAftersalesComplaintNoticeDetailService.java
  4. 5
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesComplaintNoticeDetailServiceImpl.java
  5. 8
      ruoyi-admin/src/main/resources/mapper/aftersales/AftersalesComplaintNoticeDetailMapper.xml

14
ruoyi-admin/src/main/java/com/ruoyi/aftersales/domain/AftersalesComplaintNoticeDetail.java

@ -33,22 +33,23 @@ public class AftersalesComplaintNoticeDetail extends BaseEntity
private Long userId;
/** 交货数量 */
@Excel(name = "交货数量",sort = 8)
private String deliveryGoodsNum;
/** 紧急程度 */
@Excel(name = "紧急程度")
@Excel(name = "紧急程度",sort = 12,dictType = "aftersales_emergency_degree")
private String emergencyDegree;
/** 客诉问题 */
@Excel(name = "客诉问题",sort = 9)
@Excel(name = "客诉问题",sort = 10)
private String complaintProblem;
/** 是否结案 */
@Excel(name = "是否结案",sort = 11)
@Excel(name = "是否结案",sort = 13)
private String closingProcedures;
/** 不良报告问题 */
@Excel(name = "不良图片",sort = 10)
@Excel(name = "不良图片",sort = 11)
private String adverseReportUrl;
/** 客户ID */
@ -68,7 +69,7 @@ public class AftersalesComplaintNoticeDetail extends BaseEntity
private String deviceModelName;
/** SN号(产品序列号) */
@Excel(name = "SN号", readConverterExp = "产品序列号")
// @Excel(name = "SN号", readConverterExp = "产品序列号")
private String snCode;
/** 设备流水号 */
@ -107,10 +108,11 @@ public class AftersalesComplaintNoticeDetail extends BaseEntity
private String materialSum;
/** 数量合计 */
@Excel(name = "客诉数量",sort = 9)
private String enterpriseSum;
/** 备注 */
@Excel(name = "交货数量",sort = 12)
@Excel(name = "设备编号", sort = 14)
private String remark;
/** 客诉通知相关物料数据 */

8
ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/AftersalesComplaintNoticeDetailMapper.java

@ -28,7 +28,13 @@ public interface AftersalesComplaintNoticeDetailMapper
*/
public List<AftersalesComplaintNoticeDetail> selectAftersalesComplaintNoticeDetailList(AftersalesComplaintNoticeDetail aftersalesComplaintNoticeDetail);
/**
* 按客诉通知单号查询售后客诉通知单详情列表
*
* @param complaintNoticeCodes 售后客诉通知单号
* @return 售后客诉通知单详情集合
*/
public List<AftersalesComplaintNoticeDetail> selectDetailListByNoticeCodes(String[] complaintNoticeCodes);
public List<AftersalesComplaintNoticeDetail> selectComplaintNoticeDetailListByMakeNo(String makeNo);

9
ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAftersalesComplaintNoticeDetailService.java

@ -28,6 +28,15 @@ public interface IAftersalesComplaintNoticeDetailService
*/
public List<AftersalesComplaintNoticeDetail> selectAftersalesComplaintNoticeDetailList(AftersalesComplaintNoticeDetail aftersalesComplaintNoticeDetail);
/**
* 按客诉通知单号查询售后客诉通知单详情列表
*
* @param complaintNoticeCodes 售后客诉通知单号
* @return 售后客诉通知单详情集合
*/
public List<AftersalesComplaintNoticeDetail> selectDetailListByNoticeCodes(String[] complaintNoticeCodes);
/**
* 新增售后客诉通知单详情
*

5
ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AftersalesComplaintNoticeDetailServiceImpl.java

@ -62,6 +62,11 @@ public class AftersalesComplaintNoticeDetailServiceImpl implements IAftersalesCo
return aftersalesComplaintNoticeDetailMapper.selectAftersalesComplaintNoticeDetailList(aftersalesComplaintNoticeDetail);
}
@Override
public List<AftersalesComplaintNoticeDetail> selectDetailListByNoticeCodes(String[] complaintNoticeCodes) {
return aftersalesComplaintNoticeDetailMapper.selectDetailListByNoticeCodes(complaintNoticeCodes);
}
/**
* 新增售后客诉通知单详情
*

8
ruoyi-admin/src/main/resources/mapper/aftersales/AftersalesComplaintNoticeDetailMapper.xml

@ -67,6 +67,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where complaint_notice_code = #{complaintNoticeCode}
</select>
<select id="selectDetailListByNoticeCodes" parameterType="String" resultMap="AftersalesComplaintNoticeDetailResult">
<include refid="selectAftersalesComplaintNoticeDetailVo"/>
where complaint_notice_code in
<foreach item="complaintNoticeCode" collection="array" open="(" separator="," close=")">
#{complaintNoticeCode}
</foreach>
</select>
<insert id="insertAftersalesComplaintNoticeDetail" parameterType="AftersalesComplaintNoticeDetail" useGeneratedKeys="true" keyProperty="complaintNoticeDetailId">
insert into aftersales_complaint_notice_detail
<trim prefix="(" suffix=")" suffixOverrides=",">

Loading…
Cancel
Save