|
|
@@ -315,7 +315,7 @@ public class CusFollowService extends BaseService<CusFollow> {
|
|
|
// 只要有跟进日期
|
|
|
if (cusFollow.getNextFollowTime() != null) {
|
|
|
// 保存跟进信息
|
|
|
-// saveToXxlJob(cusFollow);
|
|
|
+ saveToXxlJob(cusFollow);
|
|
|
}
|
|
|
|
|
|
return ResponseResultUtil.success();
|
|
|
@@ -342,15 +342,15 @@ public class CusFollowService extends BaseService<CusFollow> {
|
|
|
//发消息
|
|
|
String msg = sendFollowMessage(follow, followPlan);
|
|
|
if (msg == null) {
|
|
|
- plan.setCallStatus(Constant.IntegerConstant.CALL_STATUS_DONE.getValue() + "");
|
|
|
+ plan.setCallStatus(Constant.CallStatus.CALL_STATUS_DONE.getName() + "");
|
|
|
} else {
|
|
|
- plan.setCallStatus(Constant.IntegerConstant.CALL_STATUS_ERROR.getValue() + "").setRemarks(msg);
|
|
|
+ plan.setCallStatus(Constant.CallStatus.CALL_STATUS_ERROR.getName() + "").setRemarks(msg);
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
log.error("客户跟进发送消息异常:{}", e.getMessage());
|
|
|
- plan.setCallStatus(Constant.IntegerConstant.CALL_STATUS_ERROR.getValue() + "").setRemarks(e.getMessage());
|
|
|
+ plan.setCallStatus(Constant.CallStatus.CALL_STATUS_ERROR.getName() + "").setRemarks(e.getMessage());
|
|
|
}
|
|
|
|
|
|
//修改状态
|
|
|
@@ -381,14 +381,14 @@ public class CusFollowService extends BaseService<CusFollow> {
|
|
|
//发消息
|
|
|
String msg = sendFollowPlanMessage(followPlan);
|
|
|
if (msg == null) {
|
|
|
- plan.setCallStatus(Constant.IntegerConstant.CALL_STATUS_DONE.getValue() + "");
|
|
|
+ plan.setCallStatus(Constant.CallStatus.CALL_STATUS_DONE.getName() + "");
|
|
|
} else {
|
|
|
- plan.setCallStatus(Constant.IntegerConstant.CALL_STATUS_ERROR.getValue() + "").setRemarks(msg);
|
|
|
+ plan.setCallStatus(Constant.CallStatus.CALL_STATUS_ERROR.getName() + "").setRemarks(msg);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
log.error("跟进任务发送消息异常:{}", e.getMessage());
|
|
|
- plan.setCallStatus(Constant.IntegerConstant.CALL_STATUS_ERROR.getValue() + "").setRemarks(e.getMessage());
|
|
|
+ plan.setCallStatus(Constant.CallStatus.CALL_STATUS_ERROR.getName() + "").setRemarks(e.getMessage());
|
|
|
}
|
|
|
//修改状态
|
|
|
followPlanMapper.updateById(plan);
|
|
|
@@ -398,7 +398,6 @@ public class CusFollowService extends BaseService<CusFollow> {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @desc : 发送跟进消息
|
|
|
* @author : 姜永辉
|
|
|
@@ -595,7 +594,9 @@ public class CusFollowService extends BaseService<CusFollow> {
|
|
|
.setFollowUser(cusFollow.getFollowStaff())
|
|
|
.setNextFollowPlan(cusFollow.getNextFollowPlan())
|
|
|
.setNextFollowTime(cusFollow.getNextFollowTime())
|
|
|
+ .setCallStatus(Constant.CallStatus.CALL_STATUS_UN_DONE.getName() + "")
|
|
|
.setXxlJobId(id)
|
|
|
+ .setOpAppCode(Constant.AppCode.WEIXIN.getCode()+"")
|
|
|
.setCpId(cusFollow.getCpId())
|
|
|
);
|
|
|
}
|