| 
														
															@@ -4,6 +4,7 @@ package com.ym.mec.web.controller; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.auth.api.client.SysUserFeignService; 
														 | 
														
														 | 
														
															 import com.ym.mec.auth.api.client.SysUserFeignService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.auth.api.entity.SysUser; 
														 | 
														
														 | 
														
															 import com.ym.mec.auth.api.entity.SysUser; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.dao.EmployeeDao; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.dao.EmployeeDao; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import com.ym.mec.biz.dal.dao.StudentDao; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.entity.Employee; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.entity.Employee; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.entity.Goods; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.entity.Goods; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.ym.mec.biz.dal.entity.StudentInstrument; 
														 | 
														
														 | 
														
															 import com.ym.mec.biz.dal.entity.StudentInstrument; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -74,6 +75,8 @@ public class StudentInstrumentController extends BaseController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (studentInstrument.getStudentId() == null) { 
														 | 
														
														 | 
														
															         if (studentInstrument.getStudentId() == null) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return failed("学生id不能为空"); 
														 | 
														
														 | 
														
															             return failed("学生id不能为空"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        SysUser student = sysUserFeignService.queryUserById(studentInstrument.getStudentId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        studentInstrument.setOrganId(student.getOrganId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return succeed(studentInstrumentService.addStudentInstrument(studentInstrument)); 
														 | 
														
														 | 
														
															         return succeed(studentInstrumentService.addStudentInstrument(studentInstrument)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 |