Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
ac875b79
Commit
ac875b79
authored
Jan 14, 2025
by
knight
Committed by
wux
Jan 17, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求86 客户投诉页面和列表调整
parent
b92fdb89
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
1 deletion
+23
-1
CustomerComplaintDO.java
...al/dataobject/customer/complaint/CustomerComplaintDO.java
+7
-0
CustomerComplaintMapper.java
.../customer/dal/mysql/customer/CustomerComplaintMapper.java
+9
-0
CustomerComplaintServiceImpl.java
...vice/customer/complaint/CustomerComplaintServiceImpl.java
+1
-1
CustomerSelectReqVO.java
...o/module/customer/vo/customer/vo/CustomerSelectReqVO.java
+3
-0
CustomerMapper.xml
...ore/src/main/resources/mapper/customer/CustomerMapper.xml
+3
-0
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/dal/dataobject/customer/complaint/CustomerComplaintDO.java
View file @
ac875b79
...
@@ -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
;
}
}
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/dal/mysql/customer/CustomerComplaintMapper.java
View file @
ac875b79
...
@@ -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
({
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customer/complaint/CustomerComplaintServiceImpl.java
View file @
ac875b79
...
@@ -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
.
select
One
ById
(
id
);
}
}
@Override
@Override
...
...
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customer/vo/CustomerSelectReqVO.java
View file @
ac875b79
...
@@ -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
;
}
}
yudao-module-customer/yudao-module-customer-core/src/main/resources/mapper/customer/CustomerMapper.xml
View file @
ac875b79
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment