|
@@ -232,7 +232,7 @@ public class ResumeDeliverServiceImpl extends ServiceImpl<ResumeDeliverMapper, R
|
|
|
body.set("template_id", "bxOGj5FbyGHSevmWf9yzwpSZDjlFZPnGBeqGgIj9w_o");
|
|
|
body.set("page", "pages/user/resume/application/invite");
|
|
|
content.set("thing4", new JSONObject().set("value", position.getTitle()));//兼职名称
|
|
|
- content.set("thing6", "对方已同意接单,请留意工作进度");//备注
|
|
|
+ content.set("thing6", new JSONObject().set("value", "对方已同意接单,请留意工作进度"));//备注
|
|
|
}
|
|
|
//兼职报名审核结果通知
|
|
|
if (resumeDeliver.getState() == 1 && resumeDeliver.getIsAccept() == 2 && resumeDeliver.getType() == 1) {
|
|
@@ -240,7 +240,16 @@ public class ResumeDeliverServiceImpl extends ServiceImpl<ResumeDeliverMapper, R
|
|
|
body.set("template_id", "pyUsW2HqOcXmFETHFUDjuH-ekf05QVc29k0tRaY9wP8");
|
|
|
body.set("page", "pages/user/resume/application/invite");
|
|
|
content.set("thing3", new JSONObject().set("value", position.getTitle()));//兼职名称
|
|
|
- content.set("thing5", "对方拒绝接单,请重新选择接单人员");//备注
|
|
|
+ content.set("thing5", new JSONObject().set("value", "对方拒绝接单,请重新选择接单人员"));//备注
|
|
|
+ }
|
|
|
+ //兼职薪资到账通知
|
|
|
+ if (resumeDeliver.getState() == 1 && resumeDeliver.getIsAccept() == 2 && resumeDeliver.getType() == 1 && resumeDeliver.getIsComplete() == 2) {
|
|
|
+ Position position = positionService.getById(resumeDeliver.getPositionId());
|
|
|
+ body.set("template_id", "87jYTnpeZJnvdQ6gHcscZ96eQYlSXpfGeFU3g9deTeA");
|
|
|
+ body.set("page", "pages/user/money/index");
|
|
|
+ content.set("thing1", new JSONObject().set("value", position.getTitle()));//兼职名称
|
|
|
+ content.set("amount4", new JSONObject().set("value", position.getSalary()));//佣金金额
|
|
|
+ content.set("thing5", new JSONObject().set("value", "平台充值到账号余额"));//到账渠道
|
|
|
}
|
|
|
body.set("data", content);
|
|
|
String result = HttpUtil.post("https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=" + jsonObject.getStr("access_token"), body.toString());
|
|
@@ -267,7 +276,7 @@ public class ResumeDeliverServiceImpl extends ServiceImpl<ResumeDeliverMapper, R
|
|
|
|
|
|
@Transactional
|
|
|
@Override
|
|
|
- public AjaxResult jTaskComplete(JTaskCompleteDto dto) {
|
|
|
+ public AjaxResult jTaskComplete(JTaskCompleteDto dto) throws ParseException {
|
|
|
ResumeDeliver resumeDeliver = getById(dto.getId());
|
|
|
if (resumeDeliver == null || !resumeDeliver.getEnterpriseId().equals(AppUtil.getUser().getId())) {
|
|
|
return AjaxResult.error("兼职任务不存在或非法操作");
|
|
@@ -302,6 +311,7 @@ public class ResumeDeliverServiceImpl extends ServiceImpl<ResumeDeliverMapper, R
|
|
|
throw new ServiceException("保存余额入账记录失败,请联系平台");
|
|
|
}
|
|
|
}
|
|
|
+ sendMessage(resumeDeliver);
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
|
}
|