Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
4a51433a
Commit
4a51433a
authored
Jul 01, 2020
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-经纪人商机详情查询增加申请专家状态
parent
e3192913
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
91 additions
and
0 deletions
+91
-0
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+21
-0
yd-api/src/main/java/com/yd/api/practitioner/vo/opportunity/OpportunityBasicInformationInfo.java
+13
-0
yd-api/src/main/java/com/yd/dal/mapper/marketing/MktLeadsExpertAssignMapper.java
+3
-0
yd-api/src/main/java/com/yd/dal/mapper/marketing/MktLeadsExpertRequestMapper.java
+3
-0
yd-api/src/main/java/com/yd/dal/service/marketing/Impl/MktLeadsExpertAssignDALServiceImpl.java
+20
-0
yd-api/src/main/java/com/yd/dal/service/marketing/Impl/MktLeadsExpertRequestDALServiceImpl.java
+5
-0
yd-api/src/main/java/com/yd/dal/service/marketing/MktLeadsExpertAssignDALService.java
+7
-0
yd-api/src/main/java/com/yd/dal/service/marketing/MktLeadsExpertRequestDALService.java
+2
-0
yd-api/src/main/resources/mapper/marketing/MktLeadsExpertAssignMapper.xml
+8
-0
yd-api/src/main/resources/mapper/marketing/MktLeadsExpertRequestMapper.xml
+9
-0
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
4a51433a
...
...
@@ -155,6 +155,8 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
@Autowired
private
MktLeadsExpertRequestDALService
mktLeadsExpertRequestDALService
;
@Autowired
private
MktLeadsExpertAssignDALService
mktLeadsExpertAssignDALService
;
@Autowired
private
MailService
mailService
;
@Override
...
...
@@ -726,6 +728,25 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
info
.
setTimeToClose
(
CommonUtil
.
dateParseString
(
mktLeadsAssigneds
.
getTimeToClose
(),
"yyyy-MM-dd"
));
info
.
setOpportunityDate
(
CommonUtil
.
dateParseString
(
mktLeadsAssigneds
.
getCreatedAt
(),
"yyyy-MM-dd HH:mm:ss"
));
info
.
setOpportunityCustomerTags
(
OpportunityCustomerTags
(
customerId
));
//查询此商机是否有申请专家
info
.
setExpertType
(
0L
);
MktLeadsExpertRequest
mktLeadsExpertRequest
=
mktLeadsExpertRequestDALService
.
findByLeadsAssignedId
(
mktLeadsAssigneds
.
getId
());
if
(
mktLeadsExpertRequest
!=
null
){
//有申请专家 查询是否指派专家
info
.
setExpertType
(
1L
);
Long
mktLeadsExpertRequestId
=
mktLeadsExpertRequest
.
getId
();
MktLeadsExpertAssign
mktLeadsExpertAssign
=
mktLeadsExpertAssignDALService
.
findByLeadsExpertRequestId
(
mktLeadsExpertRequestId
);
if
(
mktLeadsAssigneds
!=
null
){
//以指派专家
info
.
setExpertType
(
2L
);
Long
expertPractitionerId
=
mktLeadsExpertAssign
.
getExpertPractitionerId
();
AclPractitioner
expertPractitioner
=
aclPractitionerDALService
.
findById
(
expertPractitionerId
);
info
.
setExpertPractitionerId
(
expertPractitionerId
);
info
.
setExpertPractitionerName
(
expertPractitioner
.
getName
());
}
}
return
info
;
}
...
...
yd-api/src/main/java/com/yd/api/practitioner/vo/opportunity/OpportunityBasicInformationInfo.java
View file @
4a51433a
...
...
@@ -20,6 +20,19 @@ public class OpportunityBasicInformationInfo {
private
Long
mdDropOptionId
;
private
String
mdDropOptionName
;
/**
* 0.可申请 1.申请中 2.已分配
*/
private
Long
expertType
;
//0.可申请 1.申请中 2.已分配
/**
* 专家经纪人id
*/
private
Long
expertPractitionerId
;
//专家经纪人id
/**
* 专家经纪人名字
*/
private
String
expertPractitionerName
;
//专家经纪人名字
/**
* 星座id
*/
private
Integer
zodiacTypeId
;
//星座id
...
...
yd-api/src/main/java/com/yd/dal/mapper/marketing/MktLeadsExpertAssignMapper.java
View file @
4a51433a
...
...
@@ -22,4 +22,6 @@ public interface MktLeadsExpertAssignMapper {
int
updateBatchSelective
(
List
<
MktLeadsExpertAssign
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
MktLeadsExpertAssign
>
list
);
MktLeadsExpertAssign
selectByLeadsExpertRequestId
(
Long
mktLeadsExpertRequestId
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/mapper/marketing/MktLeadsExpertRequestMapper.java
View file @
4a51433a
...
...
@@ -22,4 +22,6 @@ public interface MktLeadsExpertRequestMapper {
int
updateBatchSelective
(
List
<
MktLeadsExpertRequest
>
list
);
int
batchInsert
(
@Param
(
"list"
)
List
<
MktLeadsExpertRequest
>
list
);
MktLeadsExpertRequest
selectByAassignedId
(
Long
assignedId
);
}
\ No newline at end of file
yd-api/src/main/java/com/yd/dal/service/marketing/Impl/MktLeadsExpertAssignDALServiceImpl.java
0 → 100644
View file @
4a51433a
package
com
.
yd
.
dal
.
service
.
marketing
.
Impl
;
import
com.yd.dal.entity.marketing.MktLeadsExpertAssign
;
import
com.yd.dal.mapper.marketing.MktLeadsExpertAssignMapper
;
import
com.yd.dal.service.marketing.MktLeadsExpertAssignDALService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
@Service
(
"mktLeadsExpertAssignDALService"
)
public
class
MktLeadsExpertAssignDALServiceImpl
implements
MktLeadsExpertAssignDALService
{
@Resource
private
MktLeadsExpertAssignMapper
mktLeadsExpertAssignMapper
;
@Override
public
MktLeadsExpertAssign
findByLeadsExpertRequestId
(
Long
mktLeadsExpertRequestId
)
{
return
mktLeadsExpertAssignMapper
.
selectByLeadsExpertRequestId
(
mktLeadsExpertRequestId
);
}
}
yd-api/src/main/java/com/yd/dal/service/marketing/Impl/MktLeadsExpertRequestDALServiceImpl.java
View file @
4a51433a
...
...
@@ -17,4 +17,9 @@ public class MktLeadsExpertRequestDALServiceImpl implements MktLeadsExpertReques
public
int
save
(
MktLeadsExpertRequest
mktLeadsExpertRequest
)
{
return
mktLeadsExpertRequestMapper
.
insert
(
mktLeadsExpertRequest
);
}
@Override
public
MktLeadsExpertRequest
findByLeadsAssignedId
(
Long
assignedId
)
{
return
mktLeadsExpertRequestMapper
.
selectByAassignedId
(
assignedId
);
}
}
yd-api/src/main/java/com/yd/dal/service/marketing/MktLeadsExpertAssignDALService.java
0 → 100644
View file @
4a51433a
package
com
.
yd
.
dal
.
service
.
marketing
;
import
com.yd.dal.entity.marketing.MktLeadsExpertAssign
;
public
interface
MktLeadsExpertAssignDALService
{
MktLeadsExpertAssign
findByLeadsExpertRequestId
(
Long
mktLeadsExpertRequestId
);
}
yd-api/src/main/java/com/yd/dal/service/marketing/MktLeadsExpertRequestDALService.java
View file @
4a51433a
...
...
@@ -4,4 +4,6 @@ import com.yd.dal.entity.marketing.MktLeadsExpertRequest;
public
interface
MktLeadsExpertRequestDALService
{
int
save
(
MktLeadsExpertRequest
mktLeadsExpertRequest
);
MktLeadsExpertRequest
findByLeadsAssignedId
(
Long
assignedId
);
}
yd-api/src/main/resources/mapper/marketing/MktLeadsExpertAssignMapper.xml
View file @
4a51433a
...
...
@@ -245,4 +245,11 @@
#{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT})
</foreach>
</insert>
<select
id=
"selectByLeadsExpertRequestId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_mkt_leads_expert_assign
where leads_expert_request_id = #{mktLeadsExpertRequestId,jdbcType=BIGINT}
and is_active = 1
</select>
</mapper>
\ No newline at end of file
yd-api/src/main/resources/mapper/marketing/MktLeadsExpertRequestMapper.xml
View file @
4a51433a
...
...
@@ -220,4 +220,12 @@
)
</foreach>
</insert>
<select
id=
"selectByAassignedId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ag_mkt_leads_expert_request
where leads_assigned_id = #{assignedId,jdbcType=BIGINT}
and is_active = 1
</select>
</mapper>
\ No newline at end of file
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