package com.thhy.materials.modules.biz.pipeoutplan.controller; import com.thhy.general.common.BasicResult; import com.thhy.materials.modules.biz.pipeoutplan.entity.PipeOutPlanEntity; import com.thhy.materials.modules.biz.pipeoutplan.service.PipeOutPlanService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.Map; /** * @Author QiuYuHao * @CreateDate 2023-11-03 9:38:16 * 发运计划 */ @RestController @RequestMapping(value = "pipeoutplan") public class PipeOutPlanController { @Autowired private PipeOutPlanService pipeOutPlanService; @PostMapping("insert") BasicResult insert(@RequestBody PipeOutPlanEntity pipeOutPlanEntity){ return pipeOutPlanService.insert(pipeOutPlanEntity); } @GetMapping("delete") BasicResult delete(@RequestParam String planOutId){ return pipeOutPlanService.delete(planOutId); } @PostMapping("update") BasicResult update(@RequestBody PipeOutPlanEntity pipeOutPlanEntity){ return pipeOutPlanService.update(pipeOutPlanEntity); } @GetMapping("selectInfo") BasicResult selectInfo(@RequestParam String planOutId){ return pipeOutPlanService.selectInfo(planOutId); } @PostMapping("findAll") BasicResult findAll(@RequestBody Map map){ return pipeOutPlanService.findAll(map); } }