|
@@ -47,6 +47,7 @@ import com.zhongzheng.modules.user.domain.UserExamGoods;
|
|
|
import com.zhongzheng.modules.user.service.IUserExamGoodsService;
|
|
|
import com.zhongzheng.modules.user.service.IUserService;
|
|
|
import com.zhongzheng.modules.user.vo.*;
|
|
|
+import com.zhongzheng.modules.wx.service.IWxLoginService;
|
|
|
import org.apache.poi.hpsf.Thumbnail;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@@ -128,6 +129,8 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
|
@Autowired
|
|
|
private OssService ossService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IWxLoginService iWxLoginService;
|
|
|
|
|
|
|
|
|
@Autowired
|
|
@@ -356,6 +359,35 @@ public class UserSubscribeServiceImpl extends ServiceImpl<UserSubscribeMapper, U
|
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
|
IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), reservationSuccess);
|
|
|
}
|
|
|
+ if (informRemindVo.getGzhTpStatus().equals(1)) {
|
|
|
+ InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
|
+ informUserAddBo.setUserId(bo.getUserId());
|
|
|
+ informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setSendStatus(1);
|
|
|
+ informUserAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setRemindId(3L);
|
|
|
+ informUserAddBo.setSystemStatus(3);
|
|
|
+ informUserAddBo.setRemind("考试预约成功提醒");
|
|
|
+ informUserAddBo.setGoodsId(bo.getGoodsId());
|
|
|
+ GoodsVo goodsVo1 = iGoodsService.queryById(bo.getGoodsId());
|
|
|
+ informUserAddBo.setText("尊敬的用户:已成功预约施工现场专业人员" + goodsVo1.getGoodsName() + "考试");
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
+ UserVo userVo = iUserService.queryById(bo.getUserId());
|
|
|
+ Map<String, Object> param = new HashMap<>();
|
|
|
+ param.put("goods", goodsVo1.getGoodsName());
|
|
|
+ IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), reservationSuccess);
|
|
|
+ if(Validator.isNotEmpty(userVo.getOpenId())){
|
|
|
+ Map<String,String> paramMap = new HashMap<>();
|
|
|
+ paramMap.put("first","您已成功预约施工现场专业人员考试");
|
|
|
+ paramMap.put("keyword1",goodsVo1.getGoodsName());
|
|
|
+ paramMap.put("keyword2",DateUtils.getDate());
|
|
|
+ paramMap.put("keyword3","已成功");
|
|
|
+ paramMap.put("remark","如您存在异议可联系学校老师进行核对。");
|
|
|
+ paramMap.put("pagepath","pages2/exam/exam_appointment?current=0");
|
|
|
+ iWxLoginService.sendQdySubTpMsg(userVo.getOpenId(),paramMap);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|