Commit f2ac03f3 by wenyang

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

parent 6005e8c3
...@@ -1919,7 +1919,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -1919,7 +1919,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
} }
private void updateAgSfpAppointmentRecordInfo(OwnOpportunityRecordSaveRequestVO requestVO, MktLeadsAssignedTrack track) { private void updateAgSfpAppointmentRecordInfo(OwnOpportunityRecordSaveRequestVO requestVO, MktLeadsAssignedTrack track) {
MktLeadsPool pool = mktLeadsPoolDALService.findByCustomerIdForSfp(track.getCustomerId()); MktLeadsPool pool = mktLeadsPoolDALService.findByCustomerIdForSfp(track.getCustomerId(), track.getSfpMainId());
if(pool != null){ if(pool != null){
AgSfpAppointmentRecord agSfpAppointmentRecord = new AgSfpAppointmentRecord(); AgSfpAppointmentRecord agSfpAppointmentRecord = new AgSfpAppointmentRecord();
agSfpAppointmentRecord.setSfpMainId(pool.getSfpMainId()); agSfpAppointmentRecord.setSfpMainId(pool.getSfpMainId());
......
...@@ -29,7 +29,7 @@ public interface MktLeadsPoolMapper { ...@@ -29,7 +29,7 @@ public interface MktLeadsPoolMapper {
List<LeadsStatusInfo> findLeadsStatusMap(); List<LeadsStatusInfo> findLeadsStatusMap();
MktLeadsPool findByCustomerIdForSfp(Long customerId); MktLeadsPool findByCustomerIdForSfp(Long customerId, Long sfpMainId);
MktLeadsPool findBySfpMainId(Long sfpMainId); MktLeadsPool findBySfpMainId(Long sfpMainId);
} }
...@@ -64,8 +64,8 @@ public class MktLeadsPoolDALServiceImpl implements MktLeadsPoolDALService { ...@@ -64,8 +64,8 @@ public class MktLeadsPoolDALServiceImpl implements MktLeadsPoolDALService {
} }
@Override @Override
public MktLeadsPool findByCustomerIdForSfp(Long customerId) { public MktLeadsPool findByCustomerIdForSfp(Long customerId, Long sfpMainId) {
return mktLeadsPoolMapper.findByCustomerIdForSfp(customerId); return mktLeadsPoolMapper.findByCustomerIdForSfp(customerId, sfpMainId);
} }
@Override @Override
public MktLeadsPool findBySfpMainId(Long sfpMainId) { public MktLeadsPool findBySfpMainId(Long sfpMainId) {
......
...@@ -22,7 +22,7 @@ public interface MktLeadsPoolDALService { ...@@ -22,7 +22,7 @@ public interface MktLeadsPoolDALService {
void updateMktLeadsAssigneds(MktLeadsPool pool); void updateMktLeadsAssigneds(MktLeadsPool pool);
MktLeadsPool findByCustomerIdForSfp(Long customerId); MktLeadsPool findByCustomerIdForSfp(Long customerId, Long sfpMainId);
MktLeadsPool findBySfpMainId(Long sfpMainId); MktLeadsPool findBySfpMainId(Long sfpMainId);
} }
...@@ -276,6 +276,12 @@ ...@@ -276,6 +276,12 @@
where a.appointment_record_id=b.id and b.user_id=c.id where a.appointment_record_id=b.id and b.user_id=c.id
and b.status = 0 and b.is_complete =0 and b.status = 0 and b.is_complete =0
and a.customer_id = #{customerId,jdbcType=BIGINT} and a.customer_id = #{customerId,jdbcType=BIGINT}
<if test="sfpMainId != null">
and a.sfp_main_id = #{sfpMainId,jdbcType=BIGINT}
</if>
<if test="sfpMainId == null">
and a.sfp_main_id is null
</if>
and a.appointment_record_id is not null and a.appointment_record_id is not null
and a.is_active=1 and a.is_active=1
</select> </select>
......
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