私海列表查询sql优化

This commit is contained in:
xiaodong.hu
2023-11-24 14:33:34 +08:00
parent 8fc0a38dc8
commit c13f5395f9
2 changed files with 3 additions and 1 deletions

View File

@@ -674,7 +674,7 @@
</if>
</if>
<if test="sortField!=null and sortField != '' and sortField=='allotTime' ">
order by hptil.create_time
order by hpli.allot_time
<if test="sortOrder!=null and sortOrder != '' and sortOrder=='descend' ">
desc
</if>

View File

@@ -113,6 +113,7 @@ public class LineHighSeasServiceImpl implements LineHighSeasService {
//判断招商经理是否为空
if (StringUtil.isNotEmpty(request.getInvestmentManager())) {
resultLine.setInvestmentManager(request.getInvestmentManager()).setLineStatus(LineStatusEnum.PRIVATE_SEAS.getCode());
resultLine.setAllotTime(new Date());
flag = true;
} else {
//是否分配跟进人
@@ -121,6 +122,7 @@ public class LineHighSeasServiceImpl implements LineHighSeasService {
//查询跟进人
String investmentManager = hyPartnerLineInfoService.getAssignFollowUser(partnerId, "intent");
resultLine.setInvestmentManager(investmentManager).setLineStatus(LineStatusEnum.PRIVATE_SEAS.getCode());
resultLine.setAllotTime(new Date());
} else {
//直接放公海
resultLine.setLineStatus(LineStatusEnum.PUBLIC_SEAS.getCode());