Commit b3d073e9 by 裴大威

Merge branch 'fixbug-1021251' into 'master'

修改return异步

See merge request rays/pcloud-book!487
parents 8cca8c56 7bc3a378
...@@ -210,9 +210,11 @@ public class SelfPlanBizImpl implements SelfPlanBiz { ...@@ -210,9 +210,11 @@ 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);
if(plan != null) {
plan.setUpdateTime(new Date()); plan.setUpdateTime(new Date());
timeControlSelfPlanMapper.update(plan); timeControlSelfPlanMapper.update(plan);
if(plan != null && plan.getHasClickPlan() == 1) { if(plan.getHasClickPlan() == 1) {
ThreadPoolUtils.OTHER_THREAD_POOL.execute(() -> {
String robotWxId = plan.getRobotWxId(); String robotWxId = plan.getRobotWxId();
String userWxId = plan.getWxId(); String userWxId = plan.getWxId();
GroupRobotDTO groupRobotDTO = wechatGroupConsr.getGroupRobotByWxId(robotWxId); GroupRobotDTO groupRobotDTO = wechatGroupConsr.getGroupRobotByWxId(robotWxId);
...@@ -225,6 +227,8 @@ public class SelfPlanBizImpl implements SelfPlanBiz { ...@@ -225,6 +227,8 @@ public class SelfPlanBizImpl implements SelfPlanBiz {
sendTextMessageVO.setWxGroupId(userWxId); sendTextMessageVO.setWxGroupId(userWxId);
sendTextMessageVO.setIp(ip); sendTextMessageVO.setIp(ip);
WxGroupSDK.sendTextMessage(sendTextMessageVO); 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