Commit 28f1302d by jianan

客户告知书13

parent 1ea0aa74
...@@ -3670,6 +3670,8 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -3670,6 +3670,8 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
track.setTrackScore(dropOption.getDropOptionScore()); track.setTrackScore(dropOption.getDropOptionScore());
//保存 //保存
mktLeadsAssignedTrackDALService.saveTrack(track); mktLeadsAssignedTrackDALService.saveTrack(track);
//更新所有商机状态
mktLeadsAssignedTrackDALService.updateCustomerIdByLeadsAssignedId(newerCustomer.getId(), requestVO.getLeadsAssignedId());
resp.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000"))); resp.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
resp.setId(informed.getId()); resp.setId(informed.getId());
...@@ -3700,6 +3702,13 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -3700,6 +3702,13 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
public CommonResultIDResponseVO updateInformedSheetById(UpdateInformedSheetByIdRequestVO requestVO) { public CommonResultIDResponseVO updateInformedSheetById(UpdateInformedSheetByIdRequestVO requestVO) {
CommonResultIDResponseVO resp = new CommonResultIDResponseVO(); CommonResultIDResponseVO resp = new CommonResultIDResponseVO();
try { try {
String policyNo = requestVO.getPolicyNo();
String orderNo = poOrderDALService.findOrderNoByPolicyNo(policyNo);
if (StringUtils.isBlank(orderNo)) {
resp.setCommonResult(new CommonResult(false, "保单号不存在"));
return resp;
}
// 更新保单号 // 更新保单号
AgPoInformed informed = informedMapper.selectByPrimaryKey(requestVO.getId()); AgPoInformed informed = informedMapper.selectByPrimaryKey(requestVO.getId());
BeanUtils.copyProperties(requestVO, informed); BeanUtils.copyProperties(requestVO, informed);
......
...@@ -35,4 +35,6 @@ public interface MktLeadsAssignedTrackMapper { ...@@ -35,4 +35,6 @@ public interface MktLeadsAssignedTrackMapper {
void deleteScheduleTrackById(Long scheduleTrackId); void deleteScheduleTrackById(Long scheduleTrackId);
int updateInformedOssPathByInformedId(@Param("informedOssPath") String InformedOssPath, @Param("informedId") Long informedId); int updateInformedOssPathByInformedId(@Param("informedOssPath") String InformedOssPath, @Param("informedId") Long informedId);
int updateCustomerIdByLeadsAssignedId(@Param("customerId") Long customerId, @Param("leadsAssignedId") Long leadsAssignedId);
} }
\ No newline at end of file
...@@ -65,4 +65,9 @@ public class MktLeadsAssignedTrackDALServiceImpl implements MktLeadsAssignedTrac ...@@ -65,4 +65,9 @@ public class MktLeadsAssignedTrackDALServiceImpl implements MktLeadsAssignedTrac
public int updateInformedOssPathByInformedId(String ossPath, Long informedId) { public int updateInformedOssPathByInformedId(String ossPath, Long informedId) {
return mktLeadsAssignedTrackMapper.updateInformedOssPathByInformedId(ossPath, informedId); return mktLeadsAssignedTrackMapper.updateInformedOssPathByInformedId(ossPath, informedId);
} }
@Override
public int updateCustomerIdByLeadsAssignedId(Long customerId, Long leadsAssignedId) {
return mktLeadsAssignedTrackMapper.updateCustomerIdByLeadsAssignedId(customerId, leadsAssignedId);
}
} }
...@@ -36,4 +36,6 @@ public interface MktLeadsAssignedTrackDALService { ...@@ -36,4 +36,6 @@ public interface MktLeadsAssignedTrackDALService {
void deleteScheduleTrackById(Long scheduleTrackId); void deleteScheduleTrackById(Long scheduleTrackId);
int updateInformedOssPathByInformedId(String ossPath, Long informedId); int updateInformedOssPathByInformedId(String ossPath, Long informedId);
int updateCustomerIdByLeadsAssignedId(Long customerId, Long leadsAssignedId);
} }
...@@ -395,4 +395,9 @@ ...@@ -395,4 +395,9 @@
set informed_oss_path = #{informedOssPath,jdbcType=VARCHAR} set informed_oss_path = #{informedOssPath,jdbcType=VARCHAR}
where informed_id = #{informedId,jdbcType=BIGINT} where informed_id = #{informedId,jdbcType=BIGINT}
</update> </update>
<update id="updateCustomerIdByLeadsAssignedId">
update ag_mkt_leads_assigned_track
set customer_id = #{customerId,jdbcType=BIGINT}
where leads_assigned_id = #{leadsAssignedId,jdbcType=BIGINT}
</update>
</mapper> </mapper>
\ No newline at end of file
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