|
@@ -7,7 +7,6 @@ import com.yonge.cooleshow.auth.api.entity.SysUser;
|
|
|
import com.yonge.cooleshow.biz.dal.dto.search.StudentSearch;
|
|
|
import com.yonge.cooleshow.biz.dal.entity.TenantInfo;
|
|
|
import com.yonge.cooleshow.biz.dal.service.StudentService;
|
|
|
-import com.yonge.cooleshow.biz.dal.service.SysUserService;
|
|
|
import com.yonge.cooleshow.biz.dal.service.TenantInfoService;
|
|
|
import com.yonge.cooleshow.biz.dal.vo.StudentVo;
|
|
|
import com.yonge.cooleshow.biz.dal.wrapper.StudentWrapper;
|
|
@@ -29,6 +28,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
|
|
|
|
@RestController
|
|
@@ -38,7 +38,7 @@ public class StudentController extends BaseController {
|
|
|
@Autowired
|
|
|
private StudentService studentService;
|
|
|
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private SysUserFeignService sysUserFeignService;
|
|
|
|
|
|
@Autowired
|
|
@@ -80,8 +80,8 @@ public class StudentController extends BaseController {
|
|
|
@ApiOperation(value = "新增/修改", notes = "传入Student")
|
|
|
public HttpResponseResult<Boolean> save(
|
|
|
@Validated @RequestBody com.yonge.cooleshow.tenant.vo.StudentVo.Student student) {
|
|
|
- TenantInfo tenantInfo = getTenantInfo();
|
|
|
StudentWrapper.Student studentInfo = JSON.parseObject(JSON.toJSONString(student), StudentWrapper.Student.class);
|
|
|
+ TenantInfo tenantInfo = getTenantInfo();
|
|
|
studentInfo.setTenantId(tenantInfo.getId());
|
|
|
studentService.save(studentInfo);
|
|
|
return succeed();
|