上传代码

hehai
zhiyong.ning 4 years ago
parent 2f4a5627ea
commit c9bc6e1989
  1. 2
      src/main/java/com/msdw/tms/dao/UserDao.java
  2. 2
      src/main/resources/mapper/tms/StudentDao.xml
  3. 4
      src/main/resources/mapper/tms/UserInfoDao.xml
  4. 13
      src/test/java/com/msdw/tms/service/AchievementManagementTest.java

@ -41,7 +41,7 @@ public interface UserDao extends BaseMapper<UserEntity> {
List<String> findPhoneSetTime(String phone, String checkCode,Integer types); List<String> findPhoneSetTime(String phone, String checkCode,Integer types);
boolean saveCheckPhoneCode(CheckVo checkVo); // boolean saveCheckPhoneCode(CheckVo checkVo);
List<Integer> queryPhone(CheckVo checkVo); List<Integer> queryPhone(CheckVo checkVo);
} }

@ -43,7 +43,7 @@
AND u.isdel = 0 AND u.isdel = 0
AND l.isdel = 0 AND l.isdel = 0
AND s.isdel = 0 AND s.isdel = 0
<if test="searchContent!=null">AND (u.userName LIKE CONCAT('%',#{searchContent},'%') OR s.workNumber LIKE CONCAT('%',#{searchContent},'%'))</if> <if test="searchContent!=null">AND (u.account LIKE CONCAT('%',#{searchContent},'%') OR u.userName LIKE CONCAT('%',#{searchContent},'%') OR s.workNumber LIKE CONCAT('%',#{searchContent},'%'))</if>
ORDER BY ORDER BY
lastLoginTime DESC,studentId DESC lastLoginTime DESC,studentId DESC
</select> </select>

@ -215,7 +215,7 @@
</update> </update>
<select id="queryPersonalFileES" parameterType="com.msdw.tms.entity.UserPersonalFileEntity" <select id="queryPersonalFileES" parameterType="com.msdw.tms.entity.UserPersonalFileEntity"
resultType="hashMap"> resultType="com.msdw.tms.entity.vo.UserProsonalEntityVo">
SELECT SELECT
personalFileId, personalFileId,
schoolId, schoolId,
@ -233,7 +233,7 @@
userId = #{userId} userId = #{userId}
</select> </select>
<select id="queryPersonalInfo" parameterType="com.msdw.tms.entity.UserInfoEntity" <select id="queryPersonalInfo" parameterType="com.msdw.tms.entity.UserInfoEntity"
resultType="hashMap"> resultType="com.msdw.tms.entity.vo.UserProsonalEntityVo">
SELECT SELECT
u.userId, u.userId,
userName, userName,

@ -2,17 +2,14 @@ package com.msdw.tms.service;
import com.msdw.tms.common.utils.R; import com.msdw.tms.common.utils.R;
import com.msdw.tms.dao.AchievementManagementDao; import com.msdw.tms.dao.AchievementManagementDao;
import com.msdw.tms.entity.ProjectEntity;
import com.msdw.tms.entity.ProjectRecordEntity; import com.msdw.tms.entity.ProjectRecordEntity;
import com.msdw.tms.entity.request.AchievementImportRequest; import com.msdw.tms.entity.request.AchievementImportRequest;
import com.msdw.tms.entity.vo.AchievementManagementVo; import com.msdw.tms.entity.vo.AchievementManagementVO;
import com.msdw.tms.entity.vo.SearchAchievementVo;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date;
import java.util.List; import java.util.List;
@SpringBootTest @SpringBootTest
@ -30,7 +27,7 @@ public class AchievementManagementTest {
//测试新增实验记录 //测试新增实验记录
// @Test // @Test
// public void addReport(){ // public void addReport(){
// AchievementManagementVo vo = new AchievementManagementVo(); // AchievementManagementVO vo = new AchievementManagementVO();
// ProjectRecordEntity entity = new ProjectRecordEntity(); // ProjectRecordEntity entity = new ProjectRecordEntity();
// Date date = new Date(); // Date date = new Date();
// //用户id // //用户id
@ -86,7 +83,7 @@ public class AchievementManagementTest {
public void daleteReport(){ public void daleteReport(){
Integer reportId = 4; Integer reportId = 4;
Integer recordId = 100; Integer recordId = 100;
AchievementManagementVo vo = new AchievementManagementVo(); AchievementManagementVO vo = new AchievementManagementVO();
ProjectRecordEntity entity = new ProjectRecordEntity(); ProjectRecordEntity entity = new ProjectRecordEntity();
entity.setRecordid(recordId); entity.setRecordid(recordId);
vo.setReportId(reportId); vo.setReportId(reportId);
@ -116,7 +113,7 @@ public class AchievementManagementTest {
String staingTime = ""; String staingTime = "";
String endTime = ""; String endTime = "";
List<Integer> list = achievementManagementDao.countEducationProjectId(); List<Integer> list = achievementManagementDao.countEducationProjectId();
List<AchievementManagementVo> result = achievementManagementDao.queryEducationRecord(systemId, searchContent, staingTime, endTime, month, list); List<AchievementManagementVO> result = achievementManagementDao.queryEducationRecord(systemId, searchContent, staingTime, endTime, month, list);
System.out.println(result); System.out.println(result);
} }
//筛选查询-虚拟实验 //筛选查询-虚拟实验
@ -128,7 +125,7 @@ public class AchievementManagementTest {
String staingTime = ""; String staingTime = "";
String endTime = ""; String endTime = "";
List<Integer> list = achievementManagementDao.countFictitiousProjectId(); List<Integer> list = achievementManagementDao.countFictitiousProjectId();
List<AchievementManagementVo> result = achievementManagementDao.queryFictitiousRecord(systemId, searchContent, staingTime, endTime, month, list); List<AchievementManagementVO> result = achievementManagementDao.queryFictitiousRecord(systemId, searchContent, staingTime, endTime, month, list);
System.out.println(result); System.out.println(result);
} }

Loading…
Cancel
Save