| | |
| | | package com.vincent.rsf.server.api.controller.erp; |
| | | |
| | | import com.vincent.rsf.framework.common.R; |
| | | import com.vincent.rsf.server.api.controller.erp.params.CheckDiffParams; |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.server.api.controller.erp.params.OrderParams; |
| | | import com.vincent.rsf.server.api.controller.erp.params.SyncOrderParams; |
| | | import com.vincent.rsf.server.api.controller.erp.params.SyncTransferParams; |
| | | import com.vincent.rsf.server.api.service.ReceiveMsgService; |
| | | import com.vincent.rsf.server.common.utils.ExcelUtil; |
| | | import com.vincent.rsf.server.manager.entity.excel.AsnOrderTemplate; |
| | | import com.vincent.rsf.server.system.controller.BaseController; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | @RestController |
| | | @RequestMapping("/order") |
| | | @Api(tags = "单据") |
| | | public class SyncOrderController { |
| | | public class SyncOrderController extends BaseController { |
| | | |
| | | @Autowired |
| | | private ReceiveMsgService receiveMsgService; |
| | |
| | | * @description: 同步盘点单据 |
| | | * @version 1.0 |
| | | */ |
| | | @ApiOperation("同步盘点单") |
| | | @ApiOperation("同步单据") |
| | | @PostMapping("/sync/checks") |
| | | public R syncCheckResult(@RequestBody List<CheckDiffParams> checkDiffs) { |
| | | |
| | | return R.ok(); |
| | | public R syncCheckResult(@RequestBody SyncOrderParams syncOrders) { |
| | | if (Objects.isNull(syncOrders)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return receiveMsgService.syncCheckOrder(syncOrders, getLoginUserId()); |
| | | } |
| | | |
| | | /** |
| | | * @author Ryan |
| | | * @date 2025/8/19 |
| | | * @description: 调拔单据同步 |
| | | * @version 1.0 |
| | | */ |
| | | @ApiOperation("调拔单同步") |
| | | @PostMapping("/sync/transfers") |
| | | public R syncTransfer(@RequestBody SyncTransferParams transferParams) { |
| | | if (Objects.isNull(transferParams)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return receiveMsgService.syncTransfer(transferParams); |
| | | } |
| | | |
| | | } |