Commit 7556b068 by wenyang

专家处理商机,更新预约状态,给客户发送预约成功短信,小程序发送预约成功通知13

parent e256b9a2
......@@ -1016,7 +1016,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
MdDropOptions mdDropOption = mdDropOptionsDALService.findByDropOptionId(Long.valueOf(customer.getBloodTypeId()));
info.setBloodType(mdDropOption.getDropOptionName());
}
String mktCampaign = customer.getMktCampaign();
// String mktCampaign = customer.getMktCampaign();
MktLeadsPool pool = null;
if(null != requestVO.getSfpMainId()){
pool = mktLeadsPoolDALService.findBySfpMainId(requestVO.getSfpMainId());
......@@ -1033,6 +1033,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
MdMkCampaign mdMkCampaign = mdMkCampaignDALService.findByMktCampaignId(Long.valueOf(campaign));
info.setSourceChannel(mdMkCampaign.getName());
}
info.setSfpUserId(pool.getSfpUserId());
}
info.setAddress(customer.getAddress());
......
......@@ -61,5 +61,6 @@ public class OpportunityBasicInformationInfo {
*/
private String timeToClose;
private List<OpportunityCustomerTag> opportunityCustomerTags;
private Long sfpUserId;
}
......@@ -59,5 +59,6 @@ public class MktLeadsPool {
private Long sfpMainId;
private String mobile;
private String wxOpenId;//sfp 用户小程序openid
private Long sfpUserId;
}
......@@ -281,10 +281,10 @@
</select>
<select id="findBySfpMainId" resultType="com.yd.dal.entity.marketing.MktLeadsPool">
select
<include refid="Base_Column_List" />
from ag_mkt_leads_pool
where sfp_main_id = #{customerId,jdbcType=BIGINT}
and is_active=1
select t.id id, t.customer_id customerId, t.mkt_campaign mktCampaign, t.mkt_task mktTask, t.has_assigned hasAssigned, t.source_from sourceFrom,
t.is_active isActive,t.added_at addedAt, t.added_by addedBy,t.remark remark,t.appointment_record_id appointmentRecordId,m.user_id sfpUserId
from ag_mkt_leads_pool t,ag_sfp_main m
where t.sfp_main_id =m.id and t.sfp_main_id = #{customerId,jdbcType=BIGINT}
and t.is_active=1
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment