Compare commits
6 Commits
3ab838e27f
...
f23552a000
Author | SHA1 | Date | |
---|---|---|---|
|
f23552a000 | ||
|
deae03785a | ||
|
1002b7a3b9 | ||
|
7dc8fd45d4 | ||
|
3cf031f95b | ||
|
64b885e6b3 |
@ -40,7 +40,7 @@ namespace RhSolutions.Api.Controllers
|
|||||||
.Select(g => new Product(g.Key)
|
.Select(g => new Product(g.Key)
|
||||||
{
|
{
|
||||||
Name = g.First().Name,
|
Name = g.First().Name,
|
||||||
DeprecatedSkus = g.SelectMany(p => p.DeprecatedSkus).ToList(),
|
DeprecatedSkus = g.SelectMany(p => p.DeprecatedSkus).Distinct().ToList(),
|
||||||
ProductLines = g.SelectMany(p => p.ProductLines).Distinct().ToList(),
|
ProductLines = g.SelectMany(p => p.ProductLines).Distinct().ToList(),
|
||||||
IsOnWarehouse = g.Any(p => p.IsOnWarehouse == true),
|
IsOnWarehouse = g.Any(p => p.IsOnWarehouse == true),
|
||||||
ProductMeasure = g.First().ProductMeasure,
|
ProductMeasure = g.First().ProductMeasure,
|
||||||
|
@ -2,7 +2,7 @@ version: '3'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
rhsolutions-api:
|
rhsolutions-api:
|
||||||
build: ..
|
image: gitea.cebotari.ru/chebser/rhsolutions-api:latest
|
||||||
container_name: rhsolutions-api
|
container_name: rhsolutions-api
|
||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 5000:5000
|
||||||
@ -16,10 +16,10 @@ services:
|
|||||||
- rhsolutions-db
|
- rhsolutions-db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
rhsolutions-db:
|
rhsolutions-db:
|
||||||
|
image: gitea.cebotari.ru/chebser/rhsolutions-db:latest
|
||||||
container_name: rhsolutions-db
|
container_name: rhsolutions-db
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
build: ./Database
|
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=chebser
|
- POSTGRES_USER=chebser
|
||||||
- POSTGRES_PASSWORD=Rehau-987
|
- POSTGRES_PASSWORD=Rehau-987
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="7.0.4" />
|
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="7.0.4" />
|
||||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.Design" Version="1.1.0" />
|
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.Design" Version="1.1.0" />
|
||||||
<PackageReference Include="Rhsolutions.ProductSku" Version="0.2.13" />
|
<PackageReference Include="Rhsolutions.ProductSku" Version="1.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -18,7 +18,6 @@ namespace RhSolutions.Api.Services
|
|||||||
List<Product> products = new();
|
List<Product> products = new();
|
||||||
using (var wb = new XLWorkbook(memoryStream))
|
using (var wb = new XLWorkbook(memoryStream))
|
||||||
{
|
{
|
||||||
Dictionary<ProductSku, Product> collected = new();
|
|
||||||
var table = GetTable(wb);
|
var table = GetTable(wb);
|
||||||
var rows = table.DataRange.Rows();
|
var rows = table.DataRange.Rows();
|
||||||
foreach (var row in rows)
|
foreach (var row in rows)
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"sdk": {
|
|
||||||
"version": "6.0.311"
|
|
||||||
}
|
|
||||||
}
|
|
6
RhSolutions.Api/nuget.config
Normal file
6
RhSolutions.Api/nuget.config
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<packageSources>
|
||||||
|
<add key="Cebotari gitea" value="https://gitea.cebotari.ru/api/packages/chebser/nuget/index.json" />
|
||||||
|
</packageSources>
|
||||||
|
</configuration>
|
Loading…
x
Reference in New Issue
Block a user