MobileOneByOneReceiptController.java
1.33 KB
package com.huaheng.mobile.receipt;
import com.huaheng.framework.aspectj.lang.annotation.Log;
import com.huaheng.framework.aspectj.lang.constant.BusinessType;
import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.pc.receipt.receiptContainerHeader.domain.ReceiptContainerView;
import com.huaheng.pc.receipt.receiptContainerHeader.service.IReceiptContainerHeaderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.Map;
@CrossOrigin
@RestController
@RequestMapping("/mobile/receipt/oneByOne")
@Api(tags = {"MobileOneByOneReceiptController"}, description = "移动端逐件收货")
public class MobileOneByOneReceiptController {
@Resource
private IReceiptContainerHeaderService receiptContainerHeaderService;
@PostMapping("/save")
@ApiOperation("移动端逐件收货保存")
@Log(title = "移动端逐件收货保存", action = BusinessType.OTHER)
public AjaxResult save(@RequestBody @ApiParam(value="容器号") ReceiptContainerView record) throws Exception {
record.setQty(new BigDecimal("1"));
AjaxResult retResult = receiptContainerHeaderService.save(record);
return retResult;
}
}