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
e668f8c6
Commit
e668f8c6
authored
Jan 07, 2025
by
knight
Committed by
wux
Jan 17, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求31 报价单列表新增创建人
parent
4923008c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
OfferMapper.java
...ocoder/yudao/module/sale/dal/mysql/offer/OfferMapper.java
+16
-1
OfferPageReqVO.java
...cn/iocoder/yudao/module/sale/vo/offer/OfferPageReqVO.java
+3
-0
OfferRespVO.java
...va/cn/iocoder/yudao/module/sale/vo/offer/OfferRespVO.java
+5
-1
No files found.
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/dal/mysql/offer/OfferMapper.java
View file @
e668f8c6
...
@@ -98,7 +98,9 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
...
@@ -98,7 +98,9 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
"if(#{lang} = 0, o.objective ->> '$.titleZh', o.objective ->> '$.titleEn') as objective_name, "
,
"if(#{lang} = 0, o.objective ->> '$.titleZh', o.objective ->> '$.titleEn') as objective_name, "
,
"user.number as customer_number, "
,
"user.number as customer_number, "
,
"(select count(1) from ecw_customer_followup l where l.offer_id = o.offer_id) as log_count, "
,
"(select count(1) from ecw_customer_followup l where l.offer_id = o.offer_id) as log_count, "
,
"u.nickname as creator_name, "
,
"(SELECT su.nickname FROM system_user as su WHERE su.id = o.creator AND su.deleted = 0 ) as creator_name,"
,
// 跟进客户经理
"u.nickname as follow_up_salesman_name, "
,
"u.nickname as business_manager_name, "
,
"u.nickname as business_manager_name, "
,
"cc.name as relation_name, "
,
"cc.name as relation_name, "
,
"cc.area_code as relation_area_code, "
,
"cc.area_code as relation_area_code, "
,
...
@@ -198,6 +200,12 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
...
@@ -198,6 +200,12 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
"AND o.`follow_up_salesman_id` IN "
,
"AND o.`follow_up_salesman_id` IN "
,
"<foreach item='id' collection='pageVO.salesmanIds' open='(' close=')' separator=','> #{id} </foreach>"
,
"<foreach item='id' collection='pageVO.salesmanIds' open='(' close=')' separator=','> #{id} </foreach>"
,
"</when>"
,
"</when>"
,
// 根据创建人查询
"<when test = 'pageVO.creatorIds != null and pageVO.creatorIds.size() > 0'>"
,
"AND o.`creator` IN "
,
"<foreach item='id' collection='pageVO.creatorIds' open='(' close=')' separator=','> #{id} </foreach>"
,
"</when>"
,
"<when test = 'pageVO.statusList != null and pageVO.statusList.size() > 0'>"
,
"<when test = 'pageVO.statusList != null and pageVO.statusList.size() > 0'>"
,
"AND o.`status` IN "
,
"AND o.`status` IN "
,
"<foreach item='it' collection='pageVO.statusList' open='(' close=')' separator=','> #{it} </foreach>"
,
"<foreach item='it' collection='pageVO.statusList' open='(' close=')' separator=','> #{it} </foreach>"
,
...
@@ -337,6 +345,11 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
...
@@ -337,6 +345,11 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
"AND o.`follow_up_salesman_id` IN "
,
"AND o.`follow_up_salesman_id` IN "
,
"<foreach item='id' collection='pageVO.salesmanIds' open='(' close=')' separator=','> #{id} </foreach>"
,
"<foreach item='id' collection='pageVO.salesmanIds' open='(' close=')' separator=','> #{id} </foreach>"
,
"</when>"
,
"</when>"
,
// 根据创建人查询
"<when test = 'pageVO.creatorIds != null and pageVO.creatorIds.size() > 0'>"
,
"AND o.`creator` IN "
,
"<foreach item='id' collection='pageVO.creatorIds' open='(' close=')' separator=','> #{id} </foreach>"
,
"</when>"
,
"<when test = 'pageVO.statusList != null and pageVO.statusList.size() > 0'>"
,
"<when test = 'pageVO.statusList != null and pageVO.statusList.size() > 0'>"
,
"AND o.`status` IN "
,
"AND o.`status` IN "
,
"<foreach item='it' collection='pageVO.statusList' open='(' close=')' separator=','> #{it} </foreach>"
,
"<foreach item='it' collection='pageVO.statusList' open='(' close=')' separator=','> #{it} </foreach>"
,
...
@@ -426,6 +439,8 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
...
@@ -426,6 +439,8 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
"<script>"
,
"<script>"
,
"SELECT"
,
"SELECT"
,
"o.*,"
,
"o.*,"
,
"(SELECT su.nickname FROM system_user as su WHERE su.id = o.creator AND su.deleted = 0 ) as creator_name,"
,
"(SELECT su.nickname FROM system_user as su WHERE su.id = o.updater AND su.deleted = 0 ) as updater_name,"
,
"d.name as dept_name,"
,
"d.name as dept_name,"
,
"u.nickname as business_manager_name,"
,
"u.nickname as business_manager_name,"
,
"if(#{lang} = 0, c.name_zh, c.name_en) as channel_name, "
,
"if(#{lang} = 0, c.name_zh, c.name_en) as channel_name, "
,
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/vo/offer/OfferPageReqVO.java
View file @
e668f8c6
...
@@ -189,6 +189,9 @@ public class OfferPageReqVO extends PageParam {
...
@@ -189,6 +189,9 @@ public class OfferPageReqVO extends PageParam {
@ApiModelProperty
(
value
=
"客户经理列表"
)
@ApiModelProperty
(
value
=
"客户经理列表"
)
private
List
<
Long
>
salesmanIds
;
private
List
<
Long
>
salesmanIds
;
@ApiModelProperty
(
value
=
"创建人列表"
)
private
List
<
Long
>
creatorIds
;
@ApiModelProperty
(
value
=
"阶段列表"
)
@ApiModelProperty
(
value
=
"阶段列表"
)
private
List
<
Integer
>
statusList
;
private
List
<
Integer
>
statusList
;
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/vo/offer/OfferRespVO.java
View file @
e668f8c6
...
@@ -49,10 +49,14 @@ public class OfferRespVO extends OfferBaseVO {
...
@@ -49,10 +49,14 @@ public class OfferRespVO extends OfferBaseVO {
@ApiModelProperty
(
value
=
"业务员名称"
)
@ApiModelProperty
(
value
=
"业务员名称"
)
private
String
creatorName
;
private
String
creatorName
;
@ApiModelProperty
(
value
=
"更新业务员名称"
)
private
String
updaterName
;
@ApiModelProperty
(
value
=
"跟进业务员"
)
@ApiModelProperty
(
value
=
"跟进业务员"
)
private
String
followUpSalesmanId
;
private
String
followUpSalesmanId
;
@ApiModelProperty
(
value
=
"跟进业务员名称"
)
private
String
followUpSalesmanName
;
@ApiModelProperty
(
value
=
"关联客户名称"
)
@ApiModelProperty
(
value
=
"关联客户名称"
)
private
String
relationName
;
private
String
relationName
;
...
...
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