Commit 5358d0a3 authored by knight's avatar knight Committed by wux

需求86 客户投诉页面和列表调整

parent 5bb3515b
...@@ -113,5 +113,12 @@ public class CustomerComplaintDO extends BaseDO { ...@@ -113,5 +113,12 @@ public class CustomerComplaintDO extends BaseDO {
*/ */
private String cancelReason; private String cancelReason;
@TableField(exist = false)
@ApiModelProperty(value = "客户名称")
private String customerName;
@TableField(exist = false)
@ApiModelProperty(value = "客户编号")
private String customerNumber;
} }
...@@ -12,6 +12,7 @@ import org.apache.ibatis.annotations.Param; ...@@ -12,6 +12,7 @@ import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType; import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import java.util.Collection;
import java.util.List; import java.util.List;
/** /**
...@@ -22,6 +23,14 @@ import java.util.List; ...@@ -22,6 +23,14 @@ import java.util.List;
@Mapper @Mapper
public interface CustomerComplaintMapper extends BaseMapperX<CustomerComplaintDO> { public interface CustomerComplaintMapper extends BaseMapperX<CustomerComplaintDO> {
@ResultType(CustomerComplaintDO.class)
@Select({
"SELECT cc.* , c.`name` as customer_name , c.number as customer_number FROM ecw_customer_complaint AS cc " +
"LEFT JOIN ecw_customer as c ON c.id = cc.customer_id " +
"WHERE cc.id = #{id} AND cc.deleted = 0"
})
CustomerComplaintDO selectOneById(@Param("id") Long id);
@ResultType(CustomerComplaintRespVO.class) @ResultType(CustomerComplaintRespVO.class)
@Select({ @Select({
......
...@@ -119,7 +119,7 @@ public class CustomerComplaintServiceImpl extends AbstractService<CustomerCompla ...@@ -119,7 +119,7 @@ public class CustomerComplaintServiceImpl extends AbstractService<CustomerCompla
@Override @Override
public CustomerComplaintDO getCustomerComplaint(Long id) { public CustomerComplaintDO getCustomerComplaint(Long id) {
return customerComplaintMapper.selectById(id); return customerComplaintMapper.selectOneById(id);
} }
@Override @Override
......
...@@ -23,4 +23,7 @@ public class CustomerSelectReqVO extends PageParam { ...@@ -23,4 +23,7 @@ public class CustomerSelectReqVO extends PageParam {
@ApiModelProperty(value = "客户等级") @ApiModelProperty(value = "客户等级")
private Integer customerLevel; private Integer customerLevel;
@ApiModelProperty(value = "客户编号")
private String customerNumber;
} }
...@@ -942,6 +942,9 @@ ...@@ -942,6 +942,9 @@
<if test="reqVO.customerType != null"> <if test="reqVO.customerType != null">
AND a.type = #{reqVO.customerType} AND a.type = #{reqVO.customerType}
</if> </if>
<if test="reqVO.customerNumber != null">
AND a.`number` like concat("%",concat(#{reqVO.customerNumber},"%"))
</if>
<if test="reqVO.customerLevel != null"> <if test="reqVO.customerLevel != null">
AND a.type = #{reqVO.customerLevel} AND a.type = #{reqVO.customerLevel}
</if> </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment