修复时间bug

master
wjt 1 year ago
parent 09f3654240
commit 8b711c2175

@ -144,7 +144,7 @@ public class TelephoneCallController {
} }
telephoneCallService.rollCallBack(rollCallBackDTO); telephoneCallService.rollCallBack(rollCallBackDTO);
} catch (Exception e) { } catch (Exception e) {
CommonLog.error("点呼回调话单错误:" + json); CommonLog.error("点呼回调,处理错误:" + json);
return CommonResponse.createByError(); return CommonResponse.createByError();
} }
return CommonResponse.createBySuccess(); return CommonResponse.createBySuccess();

@ -7,6 +7,7 @@ import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query; import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List; import java.util.List;
/** /**
@ -39,7 +40,7 @@ public interface AllCallInfoRepository extends JpaRepository<AllCallInfo, Long>,
*/ */
@Modifying @Modifying
@Query(value = "update AllCallInfo d set d.recordFlag =?1 , d.recordFileDownloadUrl = ?2 ,d.createTime=?4 where d.id =?3") @Query(value = "update AllCallInfo d set d.recordFlag =?1 , d.recordFileDownloadUrl = ?2 ,d.createTime=?4 where d.id =?3")
void updateByRecord(Integer recordFlag, String recordFileDownloadUrl, Long id, String createTime); void updateByRecord(Integer recordFlag, String recordFileDownloadUrl, Long id, Date createTime);
/** /**
* *

@ -300,7 +300,7 @@ public class TelephoneCallServiceImpl implements TelephoneCallService {
//相同说明是分机号的回调 //相同说明是分机号的回调
if (sessionId.equals(otherLeg) && StrUtil.isNotBlank(rollCallBackDTO.getRecord_file_url())) { if (sessionId.equals(otherLeg) && StrUtil.isNotBlank(rollCallBackDTO.getRecord_file_url())) {
CommonLog.infoBusinessPartyTypeNewTraceId("分机回调-点呼:" + rollCallBackDTO, BusinessPartyType.DB, traceId); CommonLog.infoBusinessPartyTypeNewTraceId("分机回调-点呼:" + rollCallBackDTO, BusinessPartyType.DB, traceId);
allCallInfoRepository.updateByRecord(DefaultNumberConstants.ONE_NUMBER, rollCallBackDTO.getRecord_file_url(), allCallInfo.getId(), DateUtil.now()); allCallInfoRepository.updateByRecord(DefaultNumberConstants.ONE_NUMBER, rollCallBackDTO.getRecord_file_url(), allCallInfo.getId(), DateUtil.date());
} else { } else {
CommonLog.infoBusinessPartyType("被叫回调-点呼:" + rollCallBackDTO, BusinessPartyType.DB); CommonLog.infoBusinessPartyType("被叫回调-点呼:" + rollCallBackDTO, BusinessPartyType.DB);
UserDto user = userService.findById(allCallInfo.getMemberId()); UserDto user = userService.findById(allCallInfo.getMemberId());

Loading…
Cancel
Save