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;
|
}
|
}
|