|
@@ -4,10 +4,8 @@ package com.ym.mec.web.controller;
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.biz.dal.dao.EmployeeDao;
|
|
|
-import com.ym.mec.biz.dal.dao.StudentDao;
|
|
|
import com.ym.mec.biz.dal.dao.StudentInstrumentDao;
|
|
|
import com.ym.mec.biz.dal.entity.Employee;
|
|
|
-import com.ym.mec.biz.dal.entity.Goods;
|
|
|
import com.ym.mec.biz.dal.entity.StudentInstrument;
|
|
|
import com.ym.mec.biz.dal.page.StudentInstrumentQueryInfo;
|
|
|
import com.ym.mec.biz.service.StudentInstrumentService;
|
|
@@ -81,6 +79,11 @@ public class StudentInstrumentController extends BaseController {
|
|
|
if (studentInstrument.getStudentId() == null) {
|
|
|
return failed("学生id不能为空");
|
|
|
}
|
|
|
+ StudentInstrument oldInstrument = studentInstrumentService.getStudentInstrument(studentInstrument.getStudentId(), studentInstrument.getGoodsId());
|
|
|
+ if (oldInstrument != null) {
|
|
|
+ return failed("学生乐器信息已存在,请核查");
|
|
|
+ }
|
|
|
+
|
|
|
Date nowDate = new Date();
|
|
|
//不是乐保
|
|
|
if (studentInstrument.getStatus().equals(0)) {
|