|
@@ -13,6 +13,7 @@ import com.ym.mec.common.entity.HttpResponseResult;
|
|
import com.ym.mec.common.exception.BizException;
|
|
import com.ym.mec.common.exception.BizException;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -20,6 +21,8 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
|
+import java.util.List;
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
|
|
|
|
@RequestMapping("eduRepair")
|
|
@RequestMapping("eduRepair")
|
|
@@ -64,5 +67,16 @@ public class EduRepairController extends BaseController {
|
|
return succeed(studentRepairService.addRepair(repairInfo));
|
|
return succeed(studentRepairService.addRepair(repairInfo));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("获取学生的维修记录")
|
|
|
|
+ @GetMapping(value = "/getStudentRepairList")
|
|
|
|
+ public HttpResponseResult getStudentRepairList(RepairStudentQueryInfo queryInfo) {
|
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
|
+ if (sysUser == null) {
|
|
|
|
+ return failed("用户信息获取失败");
|
|
|
|
+ }
|
|
|
|
+ queryInfo.setEmployeeId(sysUser.getId());
|
|
|
|
+ return succeed(studentRepairService.queryPage(queryInfo));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|