组织架构物料管理新增组织级别的属性管理 http://172.16.46.63:31560/index.php?m=task&f=view&id=688
This commit is contained in:
@@ -70,7 +70,7 @@ class MaterialHasPropertiesServiceImplTest extends BaseDbUnitTest {
|
||||
req.setInfomationId(infoId);
|
||||
req.setProperties(CollUtil.newArrayList(item1, item2, itemDuplicate));
|
||||
|
||||
MaterialHasPropertiesBatchSaveRespVO resp = materialHasPropertiesService.batchSave(req);
|
||||
MaterialHasPropertiesBatchSaveRespVO resp = materialHasPropertiesService.batchSave(req, null);
|
||||
|
||||
assertThat(resp.getRowErrors()).isEmpty();
|
||||
|
||||
@@ -94,7 +94,7 @@ class MaterialHasPropertiesServiceImplTest extends BaseDbUnitTest {
|
||||
@Test
|
||||
void batchSave_missingInfoId_shouldReturnErrorAndSkipInsert() {
|
||||
MaterialHasPropertiesBatchSaveReqVO req = new MaterialHasPropertiesBatchSaveReqVO();
|
||||
MaterialHasPropertiesBatchSaveRespVO resp = materialHasPropertiesService.batchSave(req);
|
||||
MaterialHasPropertiesBatchSaveRespVO resp = materialHasPropertiesService.batchSave(req, null);
|
||||
|
||||
assertThat(resp.getRowErrors()).hasSize(1);
|
||||
RowValidationErrorVO error = resp.getRowErrors().get(0);
|
||||
@@ -112,7 +112,7 @@ class MaterialHasPropertiesServiceImplTest extends BaseDbUnitTest {
|
||||
req.setInfomationId(infoId);
|
||||
req.setProperties(List.of());
|
||||
|
||||
MaterialHasPropertiesBatchSaveRespVO resp = materialHasPropertiesService.batchSave(req);
|
||||
MaterialHasPropertiesBatchSaveRespVO resp = materialHasPropertiesService.batchSave(req, null);
|
||||
assertThat(resp.getRowErrors()).isEmpty();
|
||||
|
||||
List<MaterialHasPropertiesDO> current = materialHasPropertiesMapper.selectList(new QueryWrapper<MaterialHasPropertiesDO>()
|
||||
@@ -132,7 +132,7 @@ class MaterialHasPropertiesServiceImplTest extends BaseDbUnitTest {
|
||||
req.setInfomationId(infoId);
|
||||
req.setProperties(List.of(item));
|
||||
|
||||
MaterialHasPropertiesBatchSaveRespVO resp = materialHasPropertiesService.batchSave(req);
|
||||
MaterialHasPropertiesBatchSaveRespVO resp = materialHasPropertiesService.batchSave(req, null);
|
||||
|
||||
assertThat(resp.getRowErrors()).hasSize(1);
|
||||
RowValidationErrorVO error = resp.getRowErrors().get(0);
|
||||
|
||||
Reference in New Issue
Block a user