Commit b3d073e9 by 裴大威

Merge branch 'fixbug-1021251' into 'master'

修改return异步

See merge request rays/pcloud-book!487
parents 8cca8c56 7bc3a378
......@@ -210,21 +210,25 @@ public class SelfPlanBizImpl implements SelfPlanBiz {
selfPlanItemMapper.deleteByPlanId(planId);
selfPlanItemMapper.batchInsert(selfPlanItemList);
TimeControlSelfPlan plan = timeControlSelfPlanMapper.getById(planId);
plan.setUpdateTime(new Date());
timeControlSelfPlanMapper.update(plan);
if(plan != null && plan.getHasClickPlan() == 1) {
String robotWxId = plan.getRobotWxId();
String userWxId = plan.getWxId();
GroupRobotDTO groupRobotDTO = wechatGroupConsr.getGroupRobotByWxId(robotWxId);
String ip = weixinQrcodeBiz.getRobotIpByGeneration(groupRobotDTO.getVersion());
SendTextMessageVO sendTextMessageVO = new SendTextMessageVO();
sendTextMessageVO.setContent(plan.getChangeReply());
sendTextMessageVO.setCode(SendMessageTypeEnum.SELF.getCode());
sendTextMessageVO.setWxId(robotWxId);
sendTextMessageVO.setAltId(robotWxId);
sendTextMessageVO.setWxGroupId(userWxId);
sendTextMessageVO.setIp(ip);
WxGroupSDK.sendTextMessage(sendTextMessageVO);
if(plan != null) {
plan.setUpdateTime(new Date());
timeControlSelfPlanMapper.update(plan);
if(plan.getHasClickPlan() == 1) {
ThreadPoolUtils.OTHER_THREAD_POOL.execute(() -> {
String robotWxId = plan.getRobotWxId();
String userWxId = plan.getWxId();
GroupRobotDTO groupRobotDTO = wechatGroupConsr.getGroupRobotByWxId(robotWxId);
String ip = weixinQrcodeBiz.getRobotIpByGeneration(groupRobotDTO.getVersion());
SendTextMessageVO sendTextMessageVO = new SendTextMessageVO();
sendTextMessageVO.setContent(plan.getChangeReply());
sendTextMessageVO.setCode(SendMessageTypeEnum.SELF.getCode());
sendTextMessageVO.setWxId(robotWxId);
sendTextMessageVO.setAltId(robotWxId);
sendTextMessageVO.setWxGroupId(userWxId);
sendTextMessageVO.setIp(ip);
WxGroupSDK.sendTextMessage(sendTextMessageVO);
});
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment