测试主数据申请
This commit is contained in:
parent
4b31aa654b
commit
4a8f37e146
|
|
@ -18,10 +18,7 @@ import com.nflg.product.bomnew.pojo.query.OptionalEbomConfigListQuery;
|
|||
import com.nflg.product.bomnew.pojo.query.OptionalEbomImportChildQuery;
|
||||
import com.nflg.product.bomnew.pojo.query.OptionalEbomMainListQuery;
|
||||
import com.nflg.product.bomnew.pojo.vo.*;
|
||||
import com.nflg.product.bomnew.service.OptionalEbomConfigService;
|
||||
import com.nflg.product.bomnew.service.OptionalEbomImportChildService;
|
||||
import com.nflg.product.bomnew.service.OptionalEbomImportService;
|
||||
import com.nflg.product.bomnew.service.OptionalEbomMainService;
|
||||
import com.nflg.product.bomnew.service.*;
|
||||
import com.nflg.product.bomnew.service.aggreg.AggregOptionConfigService;
|
||||
import com.nflg.product.bomnew.service.aggreg.OptionalExcelService;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
|
|
@ -72,7 +69,8 @@ public class OptionalEbomApi extends BaseApi {
|
|||
private OptionalExcelService optionalImportExcelService;
|
||||
|
||||
|
||||
|
||||
@Resource
|
||||
MaterialService materialService;
|
||||
|
||||
/**
|
||||
* 分页查询所有数据
|
||||
|
|
@ -321,6 +319,15 @@ public class OptionalEbomApi extends BaseApi {
|
|||
@ApiOperation("发布生成")
|
||||
public ResultVO<Boolean> publish(@RequestBody OptionalEbomPublishAddDTO dto) {
|
||||
|
||||
|
||||
try {
|
||||
String data = materialService.addMaterial("1111", "afafafa", "1234");
|
||||
System.out.println(data);
|
||||
|
||||
} catch (Exception e) {
|
||||
e.getMessage();
|
||||
}
|
||||
|
||||
return ResultVO.success(true);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,31 @@
|
|||
package com.nflg.product.bomnew.service.test;
|
||||
|
||||
import com.nflg.product.base.core.exception.NflgBusinessException;
|
||||
import com.nflg.product.bomnew.service.MaterialService;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest
|
||||
public class MaterialServiceTest {
|
||||
|
||||
@Resource
|
||||
MaterialService materialService;
|
||||
|
||||
@Test
|
||||
public void addMaterial() {
|
||||
try {
|
||||
String data = materialService.addMaterial("1111", "afafafa", "1234");
|
||||
System.out.println(data);
|
||||
|
||||
} catch (NflgBusinessException e) {
|
||||
e.getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue