mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package com.panzhihua.service_dangjian.api;
 
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.community.building.NewFightShoppingOrderVO;
import com.panzhihua.service_dangjian.service.NewFightShoppingOrderService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
 
 
@Slf4j
@Api(tags = {"新增双争双评"})
@RestController
@RequestMapping("/NewFightOrder")
public class NewFightShoppingOrderApi
{
 
    @Resource
    private NewFightShoppingOrderService orderService;
 
    /**
     * 分页查询
     * @param
     * @return
     */
    @GetMapping("/orderGetList")
    public R orderGetList(@RequestParam("pageNum") int pageNum,
                          @RequestParam("pageSize") int pageSize,
                          @RequestParam(value = "userId", required = false) String userId,
                          @RequestParam(value = "goodsId", required = false) String goodsId,
                          @RequestParam(value = "orderNumber", required = false) String orderNumber,
                          @RequestParam(value = "goodName", required = false) String goodName,
                          @RequestParam(value = "name", required = false) String name,
                          @RequestParam(value = "cancelType", required = false) String cancelType,
                          @RequestParam(value = "communityId", required = false) String communityId,
                          @RequestParam(value = "merchantId", required = false) String merchantId,
                          @RequestParam(value = "orderType", required = false) String orderType)
    {
        return orderService.getList(pageNum,pageSize,userId,goodsId,orderNumber,
                goodName,name,cancelType,communityId,merchantId,orderType);
    }
 
    /**
     * 分页详情
     * @param
     * @return
     */
    @GetMapping("/orderGetDetails")
    public R orderGetDetails(@RequestParam("id") String id,
                             @RequestParam(value = "communityId") String communityId)
    {
        return R.ok(orderService.getDetails(id,communityId));
    }
 
    /**
     * 新增
     * @param
     * @return
     */
    @PostMapping("/orderAddData")
    public R orderAddData(@RequestBody NewFightShoppingOrderVO item)
    {
        return orderService.addData(item);
    }
 
 
    /**
     * 编辑
     * @param
     * @return
     */
    @PostMapping("/orderEditData")
    public R orderEditData(@RequestBody NewFightShoppingOrderVO item)
    {
        return orderService.editData(item);
    }
 
 
    /**
     * 取消
     * @param
     * @return
     */
    @GetMapping("/orderCancelOrder")
    public R orderCancelOrder(@RequestParam("orderId") String orderId,
                              @RequestParam(value = "communityId") String communityId)
    {
        return orderService.cancelOrder(orderId,communityId);
    }
 
 
    /**
     * 删除
     * @param
     * @return
     */
    @DeleteMapping("/orderExpurgateData")
    public R orderExpurgateData(@RequestParam("id") String id,
                                @RequestParam(value = "communityId") String communityId)
    {
        return orderService.expurgateData(id,communityId);
    }
 
 
}