Merge remote-tracking branch 'origin/master'

master
bynt 10 months ago
commit 585ad048ff

@ -60,4 +60,9 @@ public class DBPushClueDTO {
* , mobile
*/
private String called;
/**
* 线ID
*/
private Long variable;
}

@ -65,4 +65,7 @@ public class ClueEntity extends LogicDeletedBaseEntity {
@Schema(title = "资源线索名称")
private String clueStageName;
@Schema(title = "太空猫传递的线索ID")
private Long variable;
}

@ -39,10 +39,11 @@ public class OutsideReqServiceImpl implements OutsideReqService {
public void pushClue(String appKey, DBPushClueDTO dbPushClueDTO) {
log.info("推送appKey{},推送信息:{}", appKey, dbPushClueDTO);
if (dbPushClueDTO != null && (dbPushClueDTO.getMobile() != null || dbPushClueDTO.getCalled() != null)) {
String mobileDecodeStr = null;
String mobileDecodeStr;
String remark = dbPushClueDTO.getRemark();
String empClientTypeName = dbPushClueDTO.getEmpClientTypeName();
String called = dbPushClueDTO.getCalled();
Long variable = dbPushClueDTO.getVariable();
try {
if (StringUtils.isNotBlank(dbPushClueDTO.getMobile())) {
@ -59,7 +60,7 @@ public class OutsideReqServiceImpl implements OutsideReqService {
}
// 添加线索
boolean bool = MobileUtil.checkPhone(mobileDecodeStr);
if (bool) syncTaskService.pushClueExecuteTask(appKey, mobileDecodeStr, remark);
if (bool) syncTaskService.pushClueExecuteTask(appKey, mobileDecodeStr, remark, variable);
else log.error("============号码非法============");
}
}

@ -37,7 +37,7 @@ public class SyncTaskServiceImpl implements SyncTaskService {
private final DistributeTaskService distributeTaskService;
@Override
public void pushClueExecuteTask(String appKey, String mobile, String remark) {
public void pushClueExecuteTask(String appKey, String mobile, String remark, Long variable) {
// 查询appKey映射的记录
PushLinkEntity linkEntity = pushLinkService.getByAppKey(appKey);
if (linkEntity != null) {
@ -48,6 +48,7 @@ public class SyncTaskServiceImpl implements SyncTaskService {
// clueEntity.setOtherClue(JSONUtil.toJsonStr(dbPushClueDTO));
clueEntity.setCreateBy(linkEntity.getCreateBy());
clueEntity.setRemark(remark);
clueEntity.setVariable(variable);
clueService.save(clueEntity);
// 执行任务
DistributeTaskEntity entity = distributeTaskMapper.selectOne(

@ -6,7 +6,7 @@ import org.springframework.scheduling.annotation.Async;
public interface SyncTaskService {
@Async
void pushClueExecuteTask(String appKey, String mobile, String remark);
void pushClueExecuteTask(String appKey, String mobile, String remark, Long variable);
@Async
void clueUpload(ClueRecordEntity clueRecordEntity);

Loading…
Cancel
Save