fix 修改商品sku上架后不可修改
This commit is contained in:
parent
d030dc0e72
commit
1040898c3e
25
.dockerignore
Normal file
25
.dockerignore
Normal file
@ -0,0 +1,25 @@
|
||||
**/.classpath
|
||||
**/.dockerignore
|
||||
**/.env
|
||||
**/.git
|
||||
**/.gitignore
|
||||
**/.project
|
||||
**/.settings
|
||||
**/.toolstarget
|
||||
**/.vs
|
||||
**/.vscode
|
||||
**/*.*proj.user
|
||||
**/*.dbmdl
|
||||
**/*.jfm
|
||||
**/azds.yaml
|
||||
**/bin
|
||||
**/charts
|
||||
**/docker-compose*
|
||||
**/Dockerfile*
|
||||
**/node_modules
|
||||
**/npm-debug.log
|
||||
**/obj
|
||||
**/secrets.dev.yaml
|
||||
**/values.dev.yaml
|
||||
LICENSE
|
||||
README.md
|
@ -200,6 +200,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.Goodss
|
||||
/// </summary>
|
||||
public class SkuDto
|
||||
{
|
||||
public int GoodsSkuId { get; set; }
|
||||
|
||||
public string SpecValue{ get; set; }
|
||||
|
||||
|
@ -696,6 +696,9 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.Goodss
|
||||
}
|
||||
|
||||
if (model.GoodsSpecType == 2)
|
||||
{
|
||||
// 如果是下架状态就修改规格
|
||||
if (model.GoodsShelfStatus == 2)
|
||||
{
|
||||
// 删除所有关于该商品的规格
|
||||
var specList = await _GoodsSpecRelService.GetListAsync(s => s.GoodsGuid == model.GoodsGuid);
|
||||
@ -709,6 +712,7 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.Goodss
|
||||
await _GoodsSkuService.DeleteAsync(s => s.GoodsGuid == model.GoodsGuid);
|
||||
// 再重新添加该商品的规格
|
||||
await HandleAddMultiSpec(model);
|
||||
}
|
||||
|
||||
// 计算价格和库存总量
|
||||
model = HandlMultipleSpecCompute(model);
|
||||
|
@ -7,6 +7,7 @@
|
||||
<DocumentationFile></DocumentationFile>
|
||||
<AssemblyName>ARW.WebApi</AssemblyName>
|
||||
<RootNamespace>ARW.WebApi</RootNamespace>
|
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<Optimize>False</Optimize>
|
||||
@ -49,6 +50,7 @@
|
||||
<PackageReference Include="Geocoding.Google" Version="4.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.9" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.9" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.4" />
|
||||
<PackageReference Include="Senparc.Weixin" Version="6.15.7" />
|
||||
<PackageReference Include="Senparc.Weixin.MP" Version="16.18.9" />
|
||||
<PackageReference Include="Senparc.Weixin.Open" Version="4.14.12" />
|
||||
|
@ -1,12 +1,28 @@
|
||||
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||
WORKDIR /app
|
||||
|
||||
WORKDIR /src
|
||||
COPY ["ARW.WebApi/ARW.WebApi.csproj", "ARW.WebApi/"]
|
||||
COPY ["ARW.CodeGenerator/ARW.CodeGenerator.csproj", "ARW.CodeGenerator/"]
|
||||
COPY ["ARW.Repository/ARW.Repository.csproj", "ARW.Repository/"]
|
||||
COPY ["Infrastructure/Infrastructure.csproj", "Infrastructure/"]
|
||||
COPY ["ARW.Model/ARW.Model.csproj", "ARW.Model/"]
|
||||
COPY ["ARW.Common/ARW.Common.csproj", "ARW.Common/"]
|
||||
COPY ["ARW.Service/ARW.Service.csproj", "ARW.Service/"]
|
||||
COPY ["ARW.Tasks/ARW.Tasks.csproj", "ARW.Tasks/"]
|
||||
RUN dotnet restore "ARW.WebApi/ARW.WebApi.csproj"
|
||||
COPY . .
|
||||
RUN dotnet restore
|
||||
RUN dotnet publish -c Release -o publish
|
||||
WORKDIR "/src/ARW.WebApi"
|
||||
RUN dotnet build "ARW.WebApi.csproj" -c Release -o /app/build
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "ARW.WebApi.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=build /src/publish ./
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "ARW.WebApi.dll"]
|
12
ARW.WebApi/Dockerfile.original
Normal file
12
ARW.WebApi/Dockerfile.original
Normal file
@ -0,0 +1,12 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||
WORKDIR /app
|
||||
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
RUN dotnet restore
|
||||
RUN dotnet publish -c Release -o publish
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
||||
WORKDIR /app
|
||||
COPY --from=build /src/publish ./
|
||||
ENTRYPOINT ["dotnet", "ARW.WebApi.dll"]
|
@ -8,8 +8,8 @@
|
||||
},
|
||||
"ConnectionStrings": {
|
||||
"conn_db": "server=47.242.159.172;Database=shop_template;Uid=shop_template;Pwd=tKFJjWwL2kxMYtJK;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;",
|
||||
//"conn_db": "server=127.0.0.1;Database=shop_template;Uid=root;Pwd=root;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;",
|
||||
"conn_db_type": "8" //数据库类型 MySql = 0, SqlServer = 1
|
||||
//"conn_db": "server=127.0.0.1;Database=shop;Uid=root;Pwd=root;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;",
|
||||
"conn_db_type": "0" //数据库类型 MySql = 0, SqlServer = 1
|
||||
},
|
||||
"urls": "http://localhost:8888", //项目启动url,如果改动端口前端对应devServer也需要进行修改
|
||||
"corsUrls": "http://localhost:8887", //跨域地址(前端启动项目,前后端分离单独部署需要设置),多个用","隔开
|
||||
|
1984
document/shop_template_20231010_095909.sql
Normal file
1984
document/shop_template_20231010_095909.sql
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user