| | |
| | | package com.yuanchu.limslaboratory; |
| | | |
| | | import cn.hutool.crypto.SecureUtil; |
| | | import cn.hutool.crypto.symmetric.AES; |
| | | import com.yuanchu.limslaboratory.mapper.OrganizationalMapper; |
| | | import com.yuanchu.limslaboratory.service.PlanService; |
| | | import com.yuanchu.limslaboratory.service.UserService; |
| | | import com.yuanchu.limslaboratory.utils.MyUtil; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.FileInputStream; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | |
| | | class SysApplicationTests { |
| | | |
| | | @Resource |
| | | private PlanService planService; |
| | | private OrganizationalMapper organizationalMapper; |
| | | |
| | | @Resource |
| | | private UserService userService; |
| | | |
| | | @Test |
| | | void contextLoads() { |
| | | String newString = String.format("%06d", 77); |
| | | System.out.println("newString === " + newString); |
| | | |
| | | List<Map<String, Object>> test = organizationalMapper.OrganizationalTree(0); |
| | | MyUtil.PrintLog(test.toString()); |
| | | } |
| | | |
| | | @Test |
| | |
| | | } |
| | | |
| | | @Test |
| | | void TT2(){ |
| | | String adminMD5 = SecureUtil.md5(SecureUtil.md5("admin")); |
| | | System.out.println(adminMD5); |
| | | } |
| | | |
| | | @Test |
| | | void uploading() { |
| | | // 替换为doc或docx文件的路径 |
| | | String filePath = "D:\\20892\\desktop\\QR-14-01-02+++内部审核年度计划.doc"; |