提交 135d5ee1 authored 作者: wyl's avatar wyl

Merge branch 'master' of git.yfzx.zjtys.com.cn:912-system/monitor/inspect into wyl

...@@ -33,6 +33,12 @@ public class EvaluationController { ...@@ -33,6 +33,12 @@ public class EvaluationController {
evaluationService.save(evaluation); evaluationService.save(evaluation);
return ResponseEntity.ok(200); return ResponseEntity.ok(200);
} }
@ApiOperation("根据用户名查询输出")
@GetMapping(value = "/{name}")
public ResponseEntity getName(@PathVariable String name) {
Evaluation evaluation = evaluationService.findByName(name);
return ResponseEntity.ok(evaluation.getOutEva());
}
/** /**
* 修改评估报告 * 修改评估报告
* @param evaluation 规则封装 * @param evaluation 规则封装
......
...@@ -6,5 +6,6 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor; ...@@ -6,5 +6,6 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
public interface EvaluationDao extends JpaRepository<Evaluation,String>, JpaSpecificationExecutor<Evaluation> { public interface EvaluationDao extends JpaRepository<Evaluation,String>, JpaSpecificationExecutor<Evaluation> {
Evaluation findByUsernameAndIdNot(String username,String id); Evaluation findByUsernameAndIdNot(String username,String id);
Evaluation findByUsername(String username);
} }
...@@ -13,4 +13,6 @@ public interface EvaluationService { ...@@ -13,4 +13,6 @@ public interface EvaluationService {
void update(Evaluation evaluation); void update(Evaluation evaluation);
void delete(String id); void delete(String id);
Page<Evaluation> findSearch(Map searchMap, int page, int size); Page<Evaluation> findSearch(Map searchMap, int page, int size);
Evaluation findByName(String name);
} }
...@@ -67,6 +67,11 @@ public class EvaluationServiceImpl implements EvaluationService { ...@@ -67,6 +67,11 @@ public class EvaluationServiceImpl implements EvaluationService {
return evaluationDao.findAll(specification, pageRequest); return evaluationDao.findAll(specification, pageRequest);
} }
@Override
public Evaluation findByName(String name) {
return evaluationDao.findByUsername(name);
}
/** /**
* 动态条件构建 * 动态条件构建
* *
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论