|  |  | 
 |  |  |  | 
 |  |  | import com.zy.asrs.framework.common.R; | 
 |  |  | import com.zy.asrs.wms.apis.wcs.services.WaveManagentService; | 
 |  |  | import com.zy.asrs.wms.asrs.entity.param.WaveSeedReviewParam; | 
 |  |  | import com.zy.asrs.wms.system.controller.BaseController; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.web.bind.annotation.GetMapping; | 
 |  |  | import org.springframework.web.bind.annotation.RequestMapping; | 
 |  |  | import org.springframework.web.bind.annotation.RestController; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  |  | 
 |  |  | @RestController | 
 |  |  | @RequestMapping("/wave") | 
 |  |  | 
 |  |  |     public R sowSeeds() { | 
 |  |  |       return  waveManagentService.getSowSeeds(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 审核播种状态任务 | 
 |  |  |      * @param reviewParam | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @PostMapping("/sow/review") | 
 |  |  |     public R reviewSeeds(@RequestBody WaveSeedReviewParam reviewParam) { | 
 |  |  |         return waveManagentService.reviewSeeds(reviewParam); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 删除播种 | 
 |  |  |      * @param id | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @GetMapping("/sow/remove/{id}") | 
 |  |  |     public R delSowSeeds(@PathVariable Long id) { | 
 |  |  |          if (waveManagentService.removeSowSeed(id) > 0) { | 
 |  |  |              return R.ok("删除成功!!"); | 
 |  |  |          } else { | 
 |  |  |              return R.error("删除失败!!"); | 
 |  |  |          } | 
 |  |  |     } | 
 |  |  | } |