Helius
2021-06-30 e47031a11b23168ceb5c0e8987baddada1a7b6ff
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
package com.xzx.gc.order.controller;
 
import com.xzx.gc.common.Result;
import com.xzx.gc.common.annotations.PassToken;
import com.xzx.gc.common.request.BaseController;
import com.xzx.gc.entity.OrderBatchInfo;
import com.xzx.gc.model.order.ScanDto;
import com.xzx.gc.order.service.OrderBatchInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.servlet.http.HttpServletRequest;
 
/**
 * @author :zz
 */
@RestController
@RequestMapping("/orderBatch")
@Api(tags = {"地磅打卡管理"})
@Validated
@Slf4j
public class OrderBatchInfoController extends BaseController {
 
    @Autowired
    private OrderBatchInfoService orderBatchInfoService;
 
 
 
    @PostMapping("")
    @ApiOperation(value = "打卡")
    @PassToken
    public Result<ScanDto> add(@Validated  @RequestBody OrderBatchInfo orderBatchInfo, HttpServletRequest request){
        Result<ScanDto> result=orderBatchInfoService.add(orderBatchInfo);
        return result;
    }
}