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
5358d0a3
Commit
5358d0a3
authored
2 months ago
by
knight
Committed by
wux
2 months ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求86 客户投诉页面和列表调整
parent
5bb3515b
release_bak
jd_dev
1 merge request
!84
Release分支合并到jd分支0117
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 @
5358d0a3
...
...
@@ -113,5 +113,12 @@ public class CustomerComplaintDO extends BaseDO {
*/
private
String
cancelReason
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"客户名称"
)
private
String
customerName
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"客户编号"
)
private
String
customerNumber
;
}
This diff is collapsed.
Click to expand it.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/dal/mysql/customer/CustomerComplaintMapper.java
View file @
5358d0a3
...
...
@@ -12,6 +12,7 @@ import org.apache.ibatis.annotations.Param;
import
org.apache.ibatis.annotations.ResultType
;
import
org.apache.ibatis.annotations.Select
;
import
java.util.Collection
;
import
java.util.List
;
/**
...
...
@@ -22,6 +23,14 @@ import java.util.List;
@Mapper
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
)
@Select
({
...
...
This diff is collapsed.
Click to expand it.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/service/customer/complaint/CustomerComplaintServiceImpl.java
View file @
5358d0a3
...
...
@@ -119,7 +119,7 @@ public class CustomerComplaintServiceImpl extends AbstractService<CustomerCompla
@Override
public
CustomerComplaintDO
getCustomerComplaint
(
Long
id
)
{
return
customerComplaintMapper
.
selectById
(
id
);
return
customerComplaintMapper
.
select
One
ById
(
id
);
}
@Override
...
...
This diff is collapsed.
Click to expand it.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customer/vo/CustomerSelectReqVO.java
View file @
5358d0a3
...
...
@@ -23,4 +23,7 @@ public class CustomerSelectReqVO extends PageParam {
@ApiModelProperty
(
value
=
"客户等级"
)
private
Integer
customerLevel
;
@ApiModelProperty
(
value
=
"客户编号"
)
private
String
customerNumber
;
}
This diff is collapsed.
Click to expand it.
yudao-module-customer/yudao-module-customer-core/src/main/resources/mapper/customer/CustomerMapper.xml
View file @
5358d0a3
...
...
@@ -942,6 +942,9 @@
<if
test=
"reqVO.customerType != null"
>
AND a.type = #{reqVO.customerType}
</if>
<if
test=
"reqVO.customerNumber != null"
>
AND a.`number` like concat("%",concat(#{reqVO.customerNumber},"%"))
</if>
<if
test=
"reqVO.customerLevel != null"
>
AND a.type = #{reqVO.customerLevel}
</if>
...
...
This diff is collapsed.
Click to expand it.
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