组织架构物料管理新增组织级别的属性管理 http://172.16.46.63:31560/index.php?m=task&f=view&id=688

This commit is contained in:
ranke
2026-01-12 10:38:09 +08:00
parent 1ea3e847b4
commit 47fd100b44
20 changed files with 278 additions and 14 deletions

View File

@@ -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);