Commit eae4f81d by zhiwj

修改导入分组逻辑

parent fbb27e05
......@@ -190,6 +190,7 @@ public class StoreTaskServiceImpl extends AbstractTaskAllocationOperation implem
storeDTO.setStoreType(Integer.parseInt(typeTmpDTO.get().getValue()));
}
if (StringUtils.isNotBlank(t.getStoreGroupName())) {
storeDTO.setIsEditStoreGroup(1);
TabStoreGroup group = storeGroupService.getStoreGroupByName(t.getStoreGroupName(), t.getEnterpriseId());
if (group != null) {
storeDTO.setStoreGroupId(group.getStoreGroupId());
......@@ -199,6 +200,8 @@ public class StoreTaskServiceImpl extends AbstractTaskAllocationOperation implem
logger.info("enterpriseId:{}, groupName:{}, 不存在该分组", t.getEnterpriseId(), t.getStoreGroupName());
return;
}
} else {
storeDTO.setIsEditStoreGroup(0);
}
// 判断分组
......@@ -265,7 +268,6 @@ public class StoreTaskServiceImpl extends AbstractTaskAllocationOperation implem
}
}
storeDTO.setStoreExtendList(extendList);
storeDTO.setIsEditStoreGroup(storeDTO.getStoreGroupName() == null ? 0 : 1);
storeDTO.setReason(StoreLogReasonEnum.WEB.getCode());
storeDTO.setRemark("批量导入");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment