Commit fee41887 by jianan

Merge branch 'dev_20221018' into dev

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