| | |
| | | |
| | | import com.doumee.dao.system.SystemUserMapper; |
| | | import com.doumee.dao.system.join.NoticesJoinMapper; |
| | | import com.doumee.dao.system.model.Notices; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.dao.web.reqeust.PlatformBooksApplyDTO; |
| | | import com.doumee.dao.web.reqeust.PlatformBooksCheckNumDTO; |
| | |
| | | .eq(SystemUser::getDeleted, Constants.ZERO) |
| | | .eq(SystemUser::getType, Constants.ZERO) |
| | | .eq(SystemUser::getMobile,platformBooks.getDriverPhone()) |
| | | .isNotNull(SystemUser::getOpenid) |
| | | .last(" limit 1 ")); |
| | | |
| | | if(Objects.nonNull(driver)&&StringUtils.isNotBlank(driver.getOpenid())){ |
| | | WxPlatNotice wxPlatNotice = new WxPlatNotice(); |
| | | wxPlatNotice.sendPlatformBookTemplateNotice(systemDictDataBiz, |
| | | wxNoticeConfigMapper,platformBooks, |
| | | wxNoticeConfigMapper, platformBooks, |
| | | WxPlatConstants.platformBookContent.platformBookUpload, |
| | | systemDictDataBiz.queryByCode(Constants.WX_PLATFORM,Constants.WX_PLATFORM_ACCESS_TOKEN).getCode(), |
| | | Arrays.asList(driver.getOpenid().split(",")),0); |
| | |
| | | approve.setCheckDate(model.getCancelTime()); |
| | | approveList.add(approve); |
| | | } |
| | | |
| | | Notices notices = noticesJoinMapper.selectOne(new QueryWrapper<Notices>().lambda() |
| | | .eq(Notices::getObjId,id) |
| | | .eq(Notices::getType,Constants.noticesObjectType.reason) |
| | | .eq(Notices::getUserId,memberId) |
| | | .eq(Notices::getSendacopy,Constants.ZERO) |
| | | .orderByDesc(Notices::getId).last(" limit 1 ")); |
| | | if(Objects.nonNull(notices)){ |
| | | if(Constants.equalsInteger(notices.getStatus(),Constants.ZERO)){ |
| | | model.setInfo("待我处理"); |
| | | }else{ |
| | | model.setInfo(notices.getInfo()); |
| | | } |
| | | } |
| | | return model; |
| | | } |
| | | |
| | |
| | | public void revoke(RevokeDTO revokeDTO, LoginUserInfo loginUserInfo){ |
| | | if(Objects.isNull(revokeDTO) |
| | | || Objects.isNull(revokeDTO.getId()) |
| | | || StringUtils.isBlank(revokeDTO.getInfo()) |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | |
| | | .eq(Approve::getObjId,revokeDTO.getId()) |
| | | ); |
| | | |
| | | noticesJoinMapper.update(null,new UpdateWrapper<Notices>().lambda() |
| | | .set(Notices::getEditDate,new Date()) |
| | | .set(Notices::getInfo,"物流车预约申请取消") |
| | | .set(Notices::getReaded,Constants.ONE) |
| | | .set(Notices::getParam2,Constants.TWO) |
| | | .set(Notices::getStatus,Constants.ONE) |
| | | .eq(Notices::getType,Constants.noticesObjectType.reason) |
| | | .eq(Notices::getObjId,model.getId()) |
| | | ); |
| | | |
| | | //发送短信通知 |
| | | SmsEmailServiceImpl.sendPlatformBookSms(systemDictDataBiz, |
| | | emayService,smsEmailMapper,smsConfigMapper,platformBooksMapper,model.getId(), |