| | |
| | | package cn.flightfeather.supervision.lightshare.web |
| | | |
| | | import cn.flightfeather.supervision.config.IgnoreResponseAdvice |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Itemevaluation |
| | | import cn.flightfeather.supervision.lightshare.service.ItemevaluationService |
| | | import cn.flightfeather.supervision.lightshare.vo.AreaVo |
| | |
| | | @RestController |
| | | @RequestMapping("/itemevaluation") |
| | | class ItemevaluationController (val itemevaluationService: ItemevaluationService){ |
| | | @IgnoreResponseAdvice |
| | | @GetMapping |
| | | fun getAll() = itemevaluationService.findAll() |
| | | |
| | | @IgnoreResponseAdvice |
| | | @GetMapping("/subtask/{id}") |
| | | fun getBySubtaskId(@PathVariable id:String) = itemevaluationService.findBySubTaskID(id) |
| | | |
| | | @IgnoreResponseAdvice |
| | | @PutMapping |
| | | fun add(@RequestBody itemevaluation: Itemevaluation) = itemevaluationService.save(itemevaluation) |
| | | |
| | | @IgnoreResponseAdvice |
| | | @PutMapping("/addlist") |
| | | fun addList(@RequestBody itemevaluationlist: List<Itemevaluation>) = itemevaluationService.savelist(itemevaluationlist) |
| | | |
| | | @IgnoreResponseAdvice |
| | | @PostMapping |
| | | fun update(@RequestBody itemevaluation: Itemevaluation) = itemevaluationService.update(itemevaluation) |
| | | |
| | | @IgnoreResponseAdvice |
| | | @PostMapping("/uplist") |
| | | fun updatelist(@RequestBody itemevaluationlist: List<Itemevaluation>) = itemevaluationService.updatelist(itemevaluationlist) |
| | | |
| | | @IgnoreResponseAdvice |
| | | @GetMapping("/{id}") |
| | | fun getById(@PathVariable id:String) = itemevaluationService.findOne(id) |
| | | |
| | | @IgnoreResponseAdvice |
| | | @DeleteMapping("/{id}") |
| | | fun delete (@PathVariable id: String) = itemevaluationService.delete(id) |
| | | |