// // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) // package com.flow.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.flow.mapper.ChongZhMapper; import com.flow.mapper.ManagerMapper; import com.flow.mapper.TbFuwuqiMapper; import com.flow.mapper.zongInvoicesMapper; import com.flow.pojo.*; import com.flow.service.DuanxinlogService; import com.flow.service.zongInvoicesService; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import java.util.List; import java.util.Random; import com.tencentcloudapi.common.Credential; import com.tencentcloudapi.common.exception.TencentCloudSDKException; import com.tencentcloudapi.common.profile.ClientProfile; import com.tencentcloudapi.common.profile.HttpProfile; import com.tencentcloudapi.sms.v20210111.SmsClient; import com.tencentcloudapi.sms.v20210111.models.SendSmsRequest; import com.tencentcloudapi.sms.v20210111.models.SendSmsResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class ZongInvoiceServiceImpl extends ServiceImpl implements zongInvoicesService { private String SecretId = "AKIDrjZOI4e6KLZu9FAsSRN8eOwSt52lbMBz"; private String SecretKey = "xnRtHUL3YqdMyOLVSBjKkz1pQoxujS4d"; @Autowired ManagerMapper managerMapper; @Autowired DuanxinlogService duanxinlogService; public ZongInvoiceServiceImpl() { } public PageInfo findinvoicesjilu(Integer page, Integer limit) { QueryWrapper queryWrapper = new QueryWrapper(); queryWrapper.eq("none", "0"); PageHelper.startPage(page, limit); List cardList = ((zongInvoicesMapper)this.baseMapper).selectList(queryWrapper); PageInfo info = new PageInfo(cardList); return info; } public PageInfo findinvoicesjilu(Integer page, Integer limit, Zonginvoices zonginvoices) { QueryWrapper queryWrapper = new QueryWrapper(); queryWrapper.eq("none", "0"); queryWrapper.eq("company", zonginvoices.getCompany()); PageHelper.startPage(page, limit); List cardList = ((zongInvoicesMapper)this.baseMapper).selectList(queryWrapper); PageInfo info = new PageInfo(cardList); return info; } public int zongfpadd(Zonginvoices zonginvoices) throws TencentCloudSDKException { Credential cred = new Credential(this.SecretId, this.SecretKey); HttpProfile httpProfile = new HttpProfile(); httpProfile.setEndpoint("sms.tencentcloudapi.com"); ClientProfile clientProfile = new ClientProfile(); clientProfile.setHttpProfile(httpProfile); SmsClient client = new SmsClient(cred, "ap-beijing", clientProfile); SendSmsRequest req = new SendSmsRequest(); // String[] phoneNumberSet1 = new String[]{"15210640466"}; // req.setPhoneNumberSet(phoneNumberSet1); QueryWrapper sms = new QueryWrapper(); sms.eq("none", "0"); sms.eq("smsreception", "1"); List managerList = (managerMapper).selectList(sms); String phone = new String(); for (int s=0;s tableSearch(Zonginvoices manager, int page, int limit) throws Exception { QueryWrapper queryWrapper = new QueryWrapper(); PageHelper.startPage(page, limit); PageInfo info = null; queryWrapper.like("fptt", manager.getFptt()); queryWrapper.eq("none", 0); info = new PageInfo(((zongInvoicesMapper) this.baseMapper).selectList(queryWrapper)); return info; } }