修改时间

master
wjt 1 year ago
parent bfee172d2b
commit 5d03b0cc49

@ -46,10 +46,11 @@ public interface AllCallInfoRepository extends JpaRepository<AllCallInfo, Long>,
* @param status
* @param duration
* @param id
* @param createTime
*/
@Modifying
@Query(value = "update AllCallInfo d set d.status =?1 , d.duration = ?2 where d.id =?3")
void updateByDurationAndStatus(Integer status, Integer duration, Long id);
@Query(value = "update AllCallInfo d set d.status =?1 , d.duration = ?2 ,d.createTime=?4 where d.id =?3")
void updateByDurationAndStatus(Integer status, Integer duration, Long id, String createTime);
/**

@ -310,7 +310,7 @@ public class TelephoneCallServiceImpl implements TelephoneCallService {
if (StrUtil.isNotBlank(rollCallBackDTO.getCallee_answer_time())) {
//表示接通,更新线索状态
callClueRepository.updateByStatus(DefaultNumberConstants.TWO_NUMBER, allCallInfo.getClueId());
allCallInfoRepository.updateByDurationAndStatus(DefaultNumberConstants.TWO_NUMBER, Integer.valueOf(rollCallBackDTO.getDuration()), allCallInfo.getId());
allCallInfoRepository.updateByDurationAndStatus(DefaultNumberConstants.TWO_NUMBER, Integer.valueOf(rollCallBackDTO.getDuration()), allCallInfo.getId(), DateUtil.now());
//更新资源通话状态
CompletableFuture.runAsync(() -> updateSourceCallStatus(allCallInfo.getClueId(), DefaultNumberConstants.TWO_NUMBER, allCallInfo.getClueType(), traceId));
//实时扣除话费

Loading…
Cancel
Save