Commit 23be7568 by liushuangwu

rob

1 parent 1076cee0
......@@ -193,7 +193,7 @@ public class FeiShuEventController {
Integer givUpPainId = Integer.parseInt(feiShuMsgCardEventDTO.getAction().getValue().getKey().split("\\.")[3]);
String robOpenId = feiShuMsgCardEventDTO.getOpen_id();
Employee robEmployee = employeeService.findByOpenId(robOpenId);
Pain oldPain = painService.findByOpenId(oldOpenId);
Employee oldEmployee = employeeService.findByOpenId(oldOpenId);
//oldOpenId 放弃人的openId, robOpenId 抢到人 openId
int update = painService.updateByOpenId(robOpenId, robEmployee.getName(), oldOpenId);
......@@ -203,7 +203,7 @@ public class FeiShuEventController {
Pain pain = painService.findById(givUpPainId);
String fileName1 = String.format("/templates/massage-msg-card-rob-end.json");
return getInteractiveCardStr(fileName1, "【" + oldPain.getName() + "】放弃的资格" + "已经被【" + pain.getName() + "】抢啦,啦啦~");
return getInteractiveCardStr(fileName1, "【" + oldEmployee.getName() + "】放弃的资格" + "已经被【" + pain.getName() + "】抢啦,啦啦~");
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!