1、过渡版需求
This commit is contained in:
parent
f0add5e114
commit
16a71b3af3
|
|
@ -1,47 +0,0 @@
|
|||
package com.nflg.product.bomnew.api.user;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.mzt.logapi.starter.annotation.LogRecord;
|
||||
import com.nflg.product.base.core.api.BaseApi;
|
||||
import com.nflg.product.bomnew.pojo.dto.VirtualPackageParamDto;
|
||||
import com.nflg.product.bomnew.service.*;
|
||||
import com.nflg.product.bomnew.util.VUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import nflg.product.common.vo.ResultVO;
|
||||
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.annotation.Resource;
|
||||
import java.io.IOException;
|
||||
|
||||
|
||||
/**
|
||||
* ebom-临时过渡接口
|
||||
*
|
||||
*/
|
||||
@Api(tags = "EBom临时接口")
|
||||
@RestController
|
||||
@RequestMapping("bom/new/ebom/temp")
|
||||
public class EbomTempApi extends BaseApi {
|
||||
|
||||
/**
|
||||
* 服务对象
|
||||
*/
|
||||
@Resource
|
||||
private BomNewEbomParentService bomNewEbomParentService;
|
||||
|
||||
@PostMapping("generateVirtualPackage")
|
||||
@ApiOperation("生成虚拟包")
|
||||
@LogRecord(success = "生成虚拟包:物料编码:{{#gvbom.materialNo}} 版本:{{#gvbom.currentVersion}},操作结果:{{#_ret}}",
|
||||
bizNo = "{{#paramDto.bomRowId}}", type = "生成虚拟包")
|
||||
public ResultVO<Boolean> generateVirtualPackage(@RequestBody VirtualPackageParamDto paramDto) throws IOException {
|
||||
VUtils.isTure(CollUtil.isEmpty(paramDto.getVirtualPackageValue())).throwMessage("请选择要生成的虚拟包");
|
||||
|
||||
//检查-是否已
|
||||
bomNewEbomParentService.generateVirtualPackage(paramDto);
|
||||
return ResultVO.success(true);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue