邱宇豪
2023-11-03 bd74616204baf4e3f8bb124f142a07be8e5e9f13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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(String pipeNeedId){
        return pipeOutPlanService.delete(pipeNeedId);
    }
 
    @PostMapping("update")
    BasicResult update(@RequestBody PipeOutPlanEntity pipeOutPlanEntity){
        return pipeOutPlanService.update(pipeOutPlanEntity);
    }
 
    @GetMapping("selectInfo")
    BasicResult selectInfo(String pipeNeedId){
        return pipeOutPlanService.selectInfo(pipeNeedId);
    }
 
    @PostMapping("findAll")
    BasicResult findAll(@RequestBody Map<String,Object> map){
        return pipeOutPlanService.findAll(map);
    }
}