Merge remote-tracking branch 'origin/master'

master
bynt 10 months ago
commit 585ad048ff

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

@ -65,4 +65,7 @@ public class ClueEntity extends LogicDeletedBaseEntity {
@Schema(title = "资源线索名称") @Schema(title = "资源线索名称")
private String clueStageName; 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) { public void pushClue(String appKey, DBPushClueDTO dbPushClueDTO) {
log.info("推送appKey{},推送信息:{}", appKey, dbPushClueDTO); log.info("推送appKey{},推送信息:{}", appKey, dbPushClueDTO);
if (dbPushClueDTO != null && (dbPushClueDTO.getMobile() != null || dbPushClueDTO.getCalled() != null)) { if (dbPushClueDTO != null && (dbPushClueDTO.getMobile() != null || dbPushClueDTO.getCalled() != null)) {
String mobileDecodeStr = null; String mobileDecodeStr;
String remark = dbPushClueDTO.getRemark(); String remark = dbPushClueDTO.getRemark();
String empClientTypeName = dbPushClueDTO.getEmpClientTypeName(); String empClientTypeName = dbPushClueDTO.getEmpClientTypeName();
String called = dbPushClueDTO.getCalled(); String called = dbPushClueDTO.getCalled();
Long variable = dbPushClueDTO.getVariable();
try { try {
if (StringUtils.isNotBlank(dbPushClueDTO.getMobile())) { if (StringUtils.isNotBlank(dbPushClueDTO.getMobile())) {
@ -59,7 +60,7 @@ public class OutsideReqServiceImpl implements OutsideReqService {
} }
// 添加线索 // 添加线索
boolean bool = MobileUtil.checkPhone(mobileDecodeStr); boolean bool = MobileUtil.checkPhone(mobileDecodeStr);
if (bool) syncTaskService.pushClueExecuteTask(appKey, mobileDecodeStr, remark); if (bool) syncTaskService.pushClueExecuteTask(appKey, mobileDecodeStr, remark, variable);
else log.error("============号码非法============"); else log.error("============号码非法============");
} }
} }

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

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

Loading…
Cancel
Save