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 { ...@@ -210,21 +210,25 @@ public class SelfPlanBizImpl implements SelfPlanBiz {
selfPlanItemMapper.deleteByPlanId(planId); selfPlanItemMapper.deleteByPlanId(planId);
selfPlanItemMapper.batchInsert(selfPlanItemList); selfPlanItemMapper.batchInsert(selfPlanItemList);
TimeControlSelfPlan plan = timeControlSelfPlanMapper.getById(planId); TimeControlSelfPlan plan = timeControlSelfPlanMapper.getById(planId);
plan.setUpdateTime(new Date()); if(plan != null) {
timeControlSelfPlanMapper.update(plan); plan.setUpdateTime(new Date());
if(plan != null && plan.getHasClickPlan() == 1) { timeControlSelfPlanMapper.update(plan);
String robotWxId = plan.getRobotWxId(); if(plan.getHasClickPlan() == 1) {
String userWxId = plan.getWxId(); ThreadPoolUtils.OTHER_THREAD_POOL.execute(() -> {
GroupRobotDTO groupRobotDTO = wechatGroupConsr.getGroupRobotByWxId(robotWxId); String robotWxId = plan.getRobotWxId();
String ip = weixinQrcodeBiz.getRobotIpByGeneration(groupRobotDTO.getVersion()); String userWxId = plan.getWxId();
SendTextMessageVO sendTextMessageVO = new SendTextMessageVO(); GroupRobotDTO groupRobotDTO = wechatGroupConsr.getGroupRobotByWxId(robotWxId);
sendTextMessageVO.setContent(plan.getChangeReply()); String ip = weixinQrcodeBiz.getRobotIpByGeneration(groupRobotDTO.getVersion());
sendTextMessageVO.setCode(SendMessageTypeEnum.SELF.getCode()); SendTextMessageVO sendTextMessageVO = new SendTextMessageVO();
sendTextMessageVO.setWxId(robotWxId); sendTextMessageVO.setContent(plan.getChangeReply());
sendTextMessageVO.setAltId(robotWxId); sendTextMessageVO.setCode(SendMessageTypeEnum.SELF.getCode());
sendTextMessageVO.setWxGroupId(userWxId); sendTextMessageVO.setWxId(robotWxId);
sendTextMessageVO.setIp(ip); sendTextMessageVO.setAltId(robotWxId);
WxGroupSDK.sendTextMessage(sendTextMessageVO); 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