Browse Source

Merge branch 'master' of http://git.dayaedu.com/yonge/edu-saas

zouxuan 5 năm trước cách đây
mục cha
commit
fd9da81c2d
19 tập tin đã thay đổi với 148 bổ sung43 xóa
  1. 1 2
      edu-auth/edu-auth-server/src/main/java/com/keao/edu/auth/AuthServerApplication.java
  2. 1 1
      edu-auth/edu-auth-server/src/main/resources/application.yml
  3. 6 0
      edu-cms/pom.xml
  4. 6 6
      edu-thirdparty/src/main/java/com/keao/edu/thirdparty/message/provider/JiguangPushPlugin.java
  5. 10 8
      edu-thirdparty/src/main/java/com/keao/edu/thirdparty/message/provider/MOxintongSMSPlugin.java
  6. 16 3
      edu-thirdparty/src/main/java/com/keao/edu/thirdparty/message/provider/YimeiSmsPlugin.java
  7. 1 3
      edu-user/edu-user-client-api/src/main/java/com/keao/edu/user/api/client/TaskRemoteService.java
  8. 10 1
      edu-user/edu-user-server/src/main/java/com/keao/edu/user/controller/ExamRoomController.java
  9. 30 3
      edu-user/edu-user-server/src/main/java/com/keao/edu/user/controller/ExamRoomStudentRelationController.java
  10. 1 1
      edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/ExamRoomService.java
  11. 3 3
      edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/ExamRoomStudentRelationService.java
  12. 4 1
      edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/impl/ExamRegistrationPaymentServiceImpl.java
  13. 16 1
      edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/impl/ExamRoomServiceImpl.java
  14. 23 3
      edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/impl/ExamRoomStudentRelationServiceImpl.java
  15. 14 0
      edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/impl/ExamSubjectSongServiceImpl.java
  16. 1 0
      edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/impl/OrganizationServiceImpl.java
  17. 3 5
      edu-user/edu-user-server/src/main/resources/application.yml
  18. 1 1
      edu-user/edu-user-server/src/main/resources/config/mybatis/ExamReviewMapper.xml
  19. 1 1
      edu-user/edu-user-server/src/main/resources/config/mybatis/StudentExamResultMapper.xml

+ 1 - 2
edu-auth/edu-auth-server/src/main/java/com/keao/edu/auth/AuthServerApplication.java

@@ -1,5 +1,6 @@
 package com.keao.edu.auth;
 
+import com.spring4all.swagger.EnableSwagger2Doc;
 import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -12,8 +13,6 @@ import org.springframework.context.annotation.Configuration;
 import org.springframework.scheduling.annotation.EnableAsync;
 import org.springframework.web.client.RestTemplate;
 
-import com.spring4all.swagger.EnableSwagger2Doc;
-
 @SpringBootApplication
 @EnableDiscoveryClient
 @EnableFeignClients({"com.keao.edu"})

+ 1 - 1
edu-auth/edu-auth-server/src/main/resources/application.yml

@@ -65,7 +65,7 @@ spring:
         min-idle: 1
 
 mybatis:
-  mapperLocations: classpath:config/config/*.xml
+  mapperLocations: classpath:config/mybatis/*.xml
 
 swagger:
   base-package: 'com.keao.edu.auth.web.controller'

+ 6 - 0
edu-cms/pom.xml

@@ -18,6 +18,12 @@
 		<dependency>
 			<groupId>com.keao.edu</groupId>
 			<artifactId>edu-datasource</artifactId>
+			<exclusions>
+				<exclusion>
+					<groupId>org.slf4j</groupId>
+					<artifactId>slf4j-simple</artifactId>
+				</exclusion>
+			</exclusions>
 		</dependency>
 		
 		<dependency>

+ 6 - 6
edu-thirdparty/src/main/java/com/keao/edu/thirdparty/message/provider/JiguangPushPlugin.java

@@ -24,19 +24,19 @@ import com.keao.edu.util.http.HttpUtil;
 @Service
 public class JiguangPushPlugin implements MessageSenderPlugin, InitializingBean {
 
-	@Value("${push.jiguang.appKey.student}")
+	@Value("${push.jiguang.appKey.student:1}")
 	private String studentAppKey;
-	@Value("${push.jiguang.masterSecret.student}")
+	@Value("${push.jiguang.masterSecret.student:1}")
 	private String studentMasterSecret;
 
-	@Value("${push.jiguang.appKey.teacher}")
+	@Value("${push.jiguang.appKey.teacher:1}")
 	private String teacherAppKey;
-	@Value("${push.jiguang.masterSecret.teacher}")
+	@Value("${push.jiguang.masterSecret.teacher:1}")
 	private String teacherMasterSecret;
 
-	@Value("${push.jiguang.appKey.system}")
+	@Value("${push.jiguang.appKey.system:1}")
 	private String systemAppKey;
-	@Value("${push.jiguang.masterSecret.system}")
+	@Value("${push.jiguang.masterSecret.system:1}")
 	private String systemMasterSecret;
 
 	@Value("${push.jiguang.apns_production:false}")

+ 10 - 8
edu-thirdparty/src/main/java/com/keao/edu/thirdparty/message/provider/MOxintongSMSPlugin.java

@@ -23,15 +23,17 @@ import com.keao.edu.util.http.HttpUtil;
 @Service
 public class MOxintongSMSPlugin implements MessageSenderPlugin, InitializingBean {
 
-	@Value("${Moxintong.username:1}")
+	@Value("${sms.moxintong.username:1}")
 	private String username;
-	
-	@Value("${Moxintong.pwd:1}")
+
+	@Value("${sms.moxintong.pwd:1}")
 	private String pwd;
-	
-	@Value("${Moxintong.reqUrl:1}")
+
+	@Value("${sms.moxintong.reqUrl:1}")
 	private String reqUrl;
-	
+	@Value("${sms.moxintong.companyName:酷乐秀}")
+	private String companyName;
+
 	public final static String PLUGIN_NAME = "MoXingTong";
 
 	@Override
@@ -50,7 +52,7 @@ public class MOxintongSMSPlugin implements MessageSenderPlugin, InitializingBean
 		reqParams.put("username", username);
 		reqParams.put("pwd", pwd);
 		reqParams.put("mobile", receiver);
-		reqParams.put("content", "【袋鼠卡】" + content);
+		reqParams.put("content", "【" + companyName + "】" + content);
 
 		String result = "";
 		try {
@@ -78,7 +80,7 @@ public class MOxintongSMSPlugin implements MessageSenderPlugin, InitializingBean
 		reqParams.put("username", username);
 		reqParams.put("pwd", pwd);
 		reqParams.put("mobile", stringBuilder.toString());
-		reqParams.put("content", "【兰鲸分期】" + content);
+		reqParams.put("content", "【" + companyName + "】" + content);
 
 		String result = "";
 		try {

+ 16 - 3
edu-thirdparty/src/main/java/com/keao/edu/thirdparty/message/provider/YimeiSmsPlugin.java

@@ -28,12 +28,14 @@ public class YimeiSmsPlugin implements MessageSenderPlugin, InitializingBean {
 
 	private Logger logger = LoggerFactory.getLogger(YimeiSmsPlugin.class);
 
-	@Value("${com.properties.sms-appId:EUCP-EMY-SMS1-DX0Y9}")
+	@Value("${sms.yimei.appId:EUCP-EMY-SMS1-DX0Y9}")
 	private String appId;
-	@Value("${com.properties.sms-secretKey:B0C8230D0F2ACC64}")
+	@Value("${sms.yimei.secretKey:B0C8230D0F2ACC64}")
 	private String secretKey;
-	@Value("${com.properties.sms-host-dev:http://bjmtn.b2m.cn}")
+	@Value("${sms.yimei.reqUrl:http://bjmtn.b2m.cn}")
 	private String host;
+	@Value("${sms.yimei.companyName:酷乐秀}")
+	private String companyName;
 	
 	public final static String PLUGIN_NAME = "YiMei";
 
@@ -67,6 +69,7 @@ public class YimeiSmsPlugin implements MessageSenderPlugin, InitializingBean {
 
 	@Override
 	public boolean send(String subject, String content, String receiver, String url, String jpushType) throws Exception {
+		content =  "【" + companyName + "】" + content;
 		String result = getParam(subject, content, receiver, host + "/simpleinter/sendSMS");
 		JSONObject json = JSONObject.parseObject(result);
 		if ("SUCCESS".equals(json.get("code"))) {
@@ -80,6 +83,7 @@ public class YimeiSmsPlugin implements MessageSenderPlugin, InitializingBean {
 	@Override
 	public boolean batchSend(String subject, String content, String[] receivers, String url, String jpushType) throws Exception {
 		String join = StringUtils.join(receivers, ",");
+		content =  "【" + companyName + "】" + content;
 		String result = getParam(subject, content, join, host + "/simpleinter/sendSMS");
 		logger.info("调用短信接口返回:{}", result);
 		JSONObject json = JSONObject.parseObject(result);
@@ -94,4 +98,13 @@ public class YimeiSmsPlugin implements MessageSenderPlugin, InitializingBean {
 	public void afterPropertiesSet() throws Exception {
 		MessageSenderPluginContext.addMessageSender(this);
 	}
+	
+	public static void main(String[] args) throws Exception {
+		YimeiSmsPlugin plugin  = new YimeiSmsPlugin();
+		plugin.appId = "EUCP-EMY-SMS1-DX0Y9";
+		plugin.companyName="酷乐秀";
+		plugin.host = "http://bjmtn.b2m.cn";
+		plugin.secretKey = "B0C8230D0F2ACC64";
+		plugin.send("", "测试内容", "13720176797", "", "");
+	}
 }

+ 1 - 3
edu-user/edu-user-client-api/src/main/java/com/keao/edu/user/api/client/TaskRemoteService.java

@@ -5,11 +5,9 @@ import com.keao.edu.user.api.client.fallback.TaskRemoteServiceFallback;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.GetMapping;
 
-@FeignClient(name = "web-server", contextId = "TaskRemoteService", configuration = { FeignConfiguration.class }, fallback = TaskRemoteServiceFallback.class)
+@FeignClient(name = "user-server", contextId = "TaskRemoteService", configuration = { FeignConfiguration.class }, fallback = TaskRemoteServiceFallback.class)
 public interface TaskRemoteService {
 
-
-
 	// 订单支付状态查询
 	@GetMapping("task/queryPaymentStatus")
 	void queryPaymentStatus();

+ 10 - 1
edu-user/edu-user-server/src/main/java/com/keao/edu/user/controller/ExamRoomController.java

@@ -126,7 +126,16 @@ public class ExamRoomController extends BaseController {
     @ApiOperation("删除教室")
     @PostMapping(value = "/deleteExamRooms")
     public HttpResponseResult deleteExamRooms(String examRoomIds){
-        examRoomService.deleteExamRooms(examRoomIds);
+        SysUser sysUser = sysUserFeignService.queryUserInfo();
+        Integer organId=null;
+        if(!sysUser.getIsSuperAdmin()){
+            Employee employee = employeeService.get(sysUser.getId());
+            if(Objects.isNull(employee)){
+                return failed("用户信息异常");
+            }
+            organId=employee.getOrganId();
+        }
+        examRoomService.deleteExamRooms(organId,examRoomIds);
         return succeed();
     }
 

+ 30 - 3
edu-user/edu-user-server/src/main/java/com/keao/edu/user/controller/ExamRoomStudentRelationController.java

@@ -116,14 +116,32 @@ public class ExamRoomStudentRelationController extends BaseController {
     @ApiOperation("给教室分配学员")
     @PostMapping(value = "/addStudentForRoom")
     public HttpResponseResult addStudentForRoom(Long examRoomId, String registIds){
-        examRoomStudentRelationService.addStudentForRoom(examRoomId, registIds);
+        SysUser sysUser = sysUserFeignService.queryUserInfo();
+        Integer organId=null;
+        if(!sysUser.getIsSuperAdmin()){
+            Employee employee = employeeService.get(sysUser.getId());
+            if(Objects.isNull(employee)){
+                return failed("用户信息异常");
+            }
+            organId=employee.getOrganId();
+        }
+        examRoomStudentRelationService.addStudentForRoom(examRoomId, registIds, organId);
         return succeed();
     }
 
     @ApiOperation("更换学员考场")
     @PostMapping(value = "/changeStudentExamRoom")
     public HttpResponseResult changeStudentExamRoom(Long registId, Long examRoomId){
-        examRoomStudentRelationService.changeStudentExamRoom(registId, examRoomId);
+        SysUser sysUser = sysUserFeignService.queryUserInfo();
+        Integer organId=null;
+        if(!sysUser.getIsSuperAdmin()){
+            Employee employee = employeeService.get(sysUser.getId());
+            if(Objects.isNull(employee)){
+                return failed("用户信息异常");
+            }
+            organId=employee.getOrganId();
+        }
+        examRoomStudentRelationService.changeStudentExamRoom(registId, examRoomId, organId);
         return succeed();
     }
 
@@ -143,7 +161,16 @@ public class ExamRoomStudentRelationController extends BaseController {
     @ApiOperation("删除指定教室学员")
     @PostMapping(value = "/deleteStudentFromRoom")
     public HttpResponseResult deleteStudentFromRoom(Long examRoomId, String registIds){
-        examRoomStudentRelationService.deleteStudentFromRoom(examRoomId, registIds);
+        SysUser sysUser = sysUserFeignService.queryUserInfo();
+        Integer organId=null;
+        if(!sysUser.getIsSuperAdmin()){
+            Employee employee = employeeService.get(sysUser.getId());
+            if(Objects.isNull(employee)){
+                return failed("用户信息异常");
+            }
+            organId=employee.getOrganId();
+        }
+        examRoomStudentRelationService.deleteStudentFromRoom(examRoomId, registIds, organId);
         return succeed();
     }
 }

+ 1 - 1
edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/ExamRoomService.java

@@ -54,7 +54,7 @@ public interface ExamRoomService extends BaseService<Long, ExamRoom> {
      * @param examRoomIds:
      * @return void
      */
-    void deleteExamRooms(String examRoomIds);
+    void deleteExamRooms(Integer organId,String examRoomIds);
 
     /**
      * @describe 发送考试安排

+ 3 - 3
edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/ExamRoomStudentRelationService.java

@@ -31,7 +31,7 @@ public interface ExamRoomStudentRelationService extends BaseService<Long, ExamRo
      * @param registIds:
      * @return void
      */
-    void addStudentForRoom(Long examRoomId, String registIds);
+    void addStudentForRoom(Long examRoomId, String registIds, Integer organId);
 
     /**
      * @describe 更换学员考场
@@ -41,7 +41,7 @@ public interface ExamRoomStudentRelationService extends BaseService<Long, ExamRo
      * @param examRoomId:
      * @return void
      */
-    void changeStudentExamRoom(Long registId, Long examRoomId);
+    void changeStudentExamRoom(Long registId, Long examRoomId, Integer organId);
 
     /**
      * @describe 获取教室学员
@@ -60,7 +60,7 @@ public interface ExamRoomStudentRelationService extends BaseService<Long, ExamRo
      * @param registIds:
      * @return void
      */
-    void deleteStudentFromRoom(Long examRoomId, String registIds);
+    void deleteStudentFromRoom(Long examRoomId, String registIds, Integer organId);
 
     /**
      * 获取教室学员关联

+ 4 - 1
edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/impl/ExamRegistrationPaymentServiceImpl.java

@@ -30,6 +30,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Isolation;
 import org.springframework.transaction.annotation.Transactional;
+import org.springframework.util.CollectionUtils;
 
 import java.math.BigDecimal;
 import java.util.*;
@@ -130,7 +131,9 @@ public class ExamRegistrationPaymentServiceImpl extends BaseServiceImpl<Long, Ex
             BigDecimal totalAmount = examOrgan.getTotalPaymentAmount().add(examRegistration.getLevelFee()).add(examRegistration.getTheoryLevelFee());
             examOrgan.setTotalPaymentAmount(totalAmount);
         }
-        examOrganizationRelationDao.batchUpdate(examOrgans);
+        if(!CollectionUtils.isEmpty(examOrgans)){
+            examOrganizationRelationDao.batchUpdate(examOrgans);
+        }
 
         return order;
     }

+ 16 - 1
edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/impl/ExamRoomServiceImpl.java

@@ -262,6 +262,11 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
 
 		ExamRoom existExamRoom = examRoomDao.get(examRoom.getId());
 
+		ExamOrganizationRelation examOrganizationRelation = examOrganizationRelationDao.getExamOrganizationRelation(existExamRoom.getExaminationBasicId(), examRoom.getOrganId());
+		if(Objects.isNull(examOrganizationRelation)||examOrganizationRelation.getIsAllowArrangeExam()==0){
+			throw new BizException("无权操作");
+		}
+
 		if(ExamModeEnum.ONLINE.equals(examRoom.getExamMode())){
 			examRoom.setExamLocationId(null);
 		}
@@ -317,7 +322,7 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
 
 	@Override
 	@Transactional(rollbackFor = Exception.class)
-	public void deleteExamRooms(String examRoomIdsStr) {
+	public void deleteExamRooms(Integer organId,String examRoomIdsStr) {
 		if(StringUtils.isBlank(examRoomIdsStr)){
 			return;
 		}
@@ -325,6 +330,11 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
 
 		ExamRoom examRoom = examRoomDao.get(examRoomIds.get(0));
 
+		ExamOrganizationRelation examOrganizationRelation = examOrganizationRelationDao.getExamOrganizationRelation(examRoom.getExaminationBasicId(), organId);
+		if(Objects.isNull(examOrganizationRelation)||examOrganizationRelation.getIsAllowArrangeExam()==0){
+			throw new BizException("无权操作");
+		}
+
 		List<ExamRoomStudentRelation> roomStudents = examRoomStudentRelationService.findStudentsWithExamRooms(examRoomIds);
 		List<Long> registIds = roomStudents.stream().map(ExamRoomStudentRelation::getExamRegistrationId).collect(Collectors.toList());
 
@@ -350,6 +360,11 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
 			throw new BizException("考级项目不存在");
 		}
 
+		ExamOrganizationRelation examOrganizationRelation = examOrganizationRelationDao.getExamOrganizationRelation(exam.getId(), organId);
+		if(Objects.isNull(examOrganizationRelation)||examOrganizationRelation.getIsAllowArrangeExam()==0){
+			throw new BizException("无权操作");
+		}
+
 		int withoutExamRoomStudentNum = examRegistrationDao.countWithoutExamRoomStudentNum(null, examId);
 		if(withoutExamRoomStudentNum>0){
 			throw new BizException("存在未安排教室的学员");

+ 23 - 3
edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/impl/ExamRoomStudentRelationServiceImpl.java

@@ -64,6 +64,8 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
 	private SysUserFeignService sysUserFeignService;
 	@Autowired
 	private SysConfigService sysConfigService;
+	@Autowired
+	private ExamOrganizationRelationDao examOrganizationRelationDao;
 
 	@Override
 	public BaseDAO<Long, ExamRoomStudentRelation> getDAO() {
@@ -77,7 +79,7 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
 
 	@Override
 	@Transactional(rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
-	public void addStudentForRoom(Long examRoomId, String registIdsStr) {
+	public void addStudentForRoom(Long examRoomId, String registIdsStr, Integer organId) {
 		if(Objects.isNull(examRoomId)){
 			throw new BizException("请指定教室");
 		}
@@ -88,6 +90,12 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
 		if(Objects.isNull(examRoom)){
 			throw new BizException("教室不存在");
 		}
+
+		ExamOrganizationRelation examOrganizationRelation = examOrganizationRelationDao.getExamOrganizationRelation(examRoom.getExaminationBasicId(), organId);
+		if(Objects.isNull(examOrganizationRelation)||examOrganizationRelation.getIsAllowArrangeExam()==0){
+			throw new BizException("无权操作");
+		}
+
 		ExamLocation examLocation = null;
 		if(ExamModeEnum.OFFLINE.equals(examRoom.getExamMode())){
 			examLocation = examLocationDao.get(examRoom.getExamLocationId());
@@ -171,7 +179,7 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
 
 	@Override
 	@Transactional(rollbackFor = Exception.class)
-	public void changeStudentExamRoom(Long registId, Long examRoomId) {
+	public void changeStudentExamRoom(Long registId, Long examRoomId, Integer organId) {
 		if(Objects.isNull(registId)){
 			throw new BizException("请指定报名信息");
 		}
@@ -186,6 +194,12 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
 		if(Objects.isNull(examRoom)){
 			throw new BizException("考场信息不存在");
 		}
+
+		ExamOrganizationRelation examOrganizationRelation = examOrganizationRelationDao.getExamOrganizationRelation(examRoom.getExaminationBasicId(), organId);
+		if(Objects.isNull(examOrganizationRelation)||examOrganizationRelation.getIsAllowArrangeExam()==0){
+			throw new BizException("无权操作");
+		}
+
 		ExamRoomStudentRelation studentExamRoom = examRoomStudentRelationDao.getStudentExamRoom(registId);
 		if(Objects.isNull(studentExamRoom)){
 			studentExamRoom=new ExamRoomStudentRelation();
@@ -246,7 +260,7 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
 
 	@Override
 	@Transactional(rollbackFor = Exception.class, isolation = Isolation.READ_COMMITTED)
-	public void deleteStudentFromRoom(Long examRoomId, String registIdsStr) {
+	public void deleteStudentFromRoom(Long examRoomId, String registIdsStr, Integer organId) {
 		if(Objects.isNull(examRoomId)){
 			throw new BizException("请指定教室");
 		}
@@ -254,6 +268,12 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
 		if(Objects.isNull(examRoom)){
 			throw new BizException("教室不存在");
 		}
+
+		ExamOrganizationRelation examOrganizationRelation = examOrganizationRelationDao.getExamOrganizationRelation(examRoom.getExaminationBasicId(), organId);
+		if(Objects.isNull(examOrganizationRelation)||examOrganizationRelation.getIsAllowArrangeExam()==0){
+			throw new BizException("无权操作");
+		}
+
 		if(StringUtils.isBlank(registIdsStr)){
 			return;
 		}

+ 14 - 0
edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/impl/ExamSubjectSongServiceImpl.java

@@ -92,6 +92,20 @@ public class ExamSubjectSongServiceImpl extends BaseServiceImpl<Long, ExamSubjec
 				throw new BizException("请指定报名费用");
 			}
 
+			boolean praNull = Objects.isNull(examSubjectSong.getPracticeNum());
+
+			boolean perNull = Objects.isNull(examSubjectSong.getPerformNum());
+
+			if(praNull&&perNull){
+				throw new BizException("参数错误");
+			}
+
+			if(!praNull){
+				examSubjectSong.setPerformNum(0);
+			}else if(!perNull){
+				examSubjectSong.setPracticeNum(0);
+			}
+
 			examSubjectSong.setTenantId(TenantContextHolder.getTenantId());
 
 			if(existSubjectIds.contains(examSubjectSong.getExamSubjectId().longValue())){

+ 1 - 0
edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/impl/OrganizationServiceImpl.java

@@ -143,6 +143,7 @@ public class OrganizationServiceImpl extends BaseServiceImpl<Integer, Organizati
 				employee.setDelFlag(false);
 				employee.setTenantId(organ.getTenantId());
 				employee.setEmployeeType("ORGAN");
+				employee.setOrganId(organization.getId());
 				employeeDao.update(employee);
 				organ.setParentOrganIdTag(currentOrganization.getParentOrganIdTag() + "," + organization.getId());
 				organ.setDelFlag(YesOrNoEnum.NO);

+ 3 - 5
edu-user/edu-user-server/src/main/resources/application.yml

@@ -74,12 +74,10 @@ spring:
         #连接池中的最小空闲连接
         min-idle: 1
 
-
-
 mybatis:
-    mapperLocations: classpath:config/mybatis/*.xml
-    configuration:
-      log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+  mapperLocations: classpath:config/mybatis/*.xml
+  configuration:
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
 
 swagger:
   base-package: com.keao.edu.user.controller

+ 1 - 1
edu-user/edu-user-server/src/main/resources/config/mybatis/ExamReviewMapper.xml

@@ -138,7 +138,7 @@
 				AND er.teacher_type_=#{teacherType}
 			</if>
 			<if test="examStartTime!=null and examEndTime!=null">
-				AND DATE_FORMAT( ero.exam_start_time_, '%Y-%m-%d' ) BETWEEN  #{examStartTime} AND #{examEndTime}
+				AND DATE_FORMAT( ero.exam_start_time_, '%Y-%m-%d' ) BETWEEN  DATE_FORMAT( #{examStartTime}, '%Y-%m-%d' ) AND DATE_FORMAT( #{examEndTime}, '%Y-%m-%d' )
 			</if>
 			<if test="search!=null and search!=''">
 				AND su.real_name_ LIKE CONCAT('%', #{search}, '%')

+ 1 - 1
edu-user/edu-user-server/src/main/resources/config/mybatis/StudentExamResultMapper.xml

@@ -164,7 +164,7 @@
 				AND er.level_=#{level}
 			</if>
 			<if test="examStartTime!=null and examEndTime!=null">
-				AND DATE_FORMAT(eb.actual_exam_start_time_, '%Y-%m-%d') BETWEEN #{examStartTime} AND #{examEndTime}
+				AND DATE_FORMAT(eb.actual_exam_start_time_, '%Y-%m-%d') BETWEEN DATE_FORMAT(#{examStartTime}, '%Y-%m-%d') AND DATE_FORMAT(#{examEndTime}, '%Y-%m-%d')
 			</if>
 			<if test="isFinishedExam!=null">
 				AND ser.is_finished_exam_=#{isFinishedExam}