| | |
| | | import com.tencentcloudapi.sms.v20210111.SmsClient; |
| | | import com.tencentcloudapi.sms.v20210111.models.SendSmsRequest; |
| | | import com.tencentcloudapi.sms.v20210111.models.SendSmsResponse; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | import java.util.Random; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.servlet.http.HttpSession; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | public result<List<Loginjilu>> FindCard(Integer page, Integer limit) throws Exception { |
| | | PageInfo<Loginjilu> cz = this.loginJiLuService.FindLoginJiLu(page, limit); |
| | | |
| | | for(int i = 0; i < cz.getSize(); ++i) { |
| | | ((Loginjilu)cz.getList().get(i)).setLoginphone(DESUtil.decrypt(((Loginjilu)cz.getList().get(i)).getLoginphone(), DESUtil.key)); |
| | | for (int i = 0; i < cz.getSize(); ++i) { |
| | | ((Loginjilu) cz.getList().get(i)).setLoginphone(DESUtil.decrypt(((Loginjilu) cz.getList().get(i)).getLoginphone(), DESUtil.key)); |
| | | } |
| | | |
| | | return resultutil.returnSuccess(cz.getTotal(), cz.getList()); |
| | | } |
| | | |
| | | @GetMapping({"FindLoginJiLuZi"}) |
| | | public result<List<Loginjilu>> FindCardZi(String Zong, Integer page, Integer limit) throws Exception { |
| | | PageInfo<Loginjilu> cz = this.loginJiLuService.FindLoginJiLuZi(Zong, page, limit); |
| | | @PostMapping({"FindLoginJiLuZi"}) |
| | | public result<List<Loginjilu>> FindCardZi(Loginjilu loginjilu, Integer page, Integer limit) throws Exception { |
| | | PageInfo<Loginjilu> cz = this.loginJiLuService.FindLoginJiLuZi(loginjilu, page, limit); |
| | | |
| | | for(int i = 0; i < cz.getSize(); ++i) { |
| | | ((Loginjilu)cz.getList().get(i)).setLoginphone(DESUtil.decrypt(((Loginjilu)cz.getList().get(i)).getLoginphone(), DESUtil.key)); |
| | | for (int i = 0; i < cz.getSize(); ++i) { |
| | | ((Loginjilu) cz.getList().get(i)).setLoginphone(DESUtil.decrypt(((Loginjilu) cz.getList().get(i)).getLoginphone(), DESUtil.key)); |
| | | } |
| | | |
| | | return resultutil.returnSuccess(cz.getTotal(), cz.getList()); |
| | |
| | | public Company Login(Company company, HttpSession session) throws Exception { |
| | | company.setCompanyabbname(company.getCompanyabbname()); |
| | | company.setLoginphone(DESUtil.encrypt(company.getLoginphone(), DESUtil.key)); |
| | | if (company.getPassword()!=null){ |
| | | if (company.getPassword() != null) { |
| | | company.setPassword(DESUtil.encrypt(company.getPassword(), DESUtil.key)); |
| | | } |
| | | Company company1 = this.companyService.findUser(company); |