Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
Bailun.PmsAPI
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pds
Bailun.PmsAPI
Commits
648a11d5
Commit
648a11d5
authored
May 07, 2021
by
zhousiqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
621f7beb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
ProductServices.cs
API.Services/ProductManageServices/ProductServices.cs
+11
-0
No files found.
API.Services/ProductManageServices/ProductServices.cs
View file @
648a11d5
...
@@ -459,12 +459,17 @@ namespace API.Services.ProductManageServices
...
@@ -459,12 +459,17 @@ namespace API.Services.ProductManageServices
if
(!
isBatch
||
(
isBatch
&&
string
.
IsNullOrWhiteSpace
(
sql
.
SQL
)))
if
(!
isBatch
||
(
isBatch
&&
string
.
IsNullOrWhiteSpace
(
sql
.
SQL
)))
{
{
var
objState
=
yt_product_state
.
FirstOrDefault
(
" where st_sid = @0"
,
objModel
.
s_id
);
var
objState
=
yt_product_state
.
FirstOrDefault
(
" where st_sid = @0"
,
objModel
.
s_id
);
//已上传环球SKU则不能再修改
//已上传环球SKU则不能再修改
if
(
objState
!=
null
)
{
if
(
objState
.
st_isupapi
==
1
&&
objModel
.
s_sku
!=
item
.
s_sku
)
if
(
objState
.
st_isupapi
==
1
&&
objModel
.
s_sku
!=
item
.
s_sku
)
{
{
item
.
s_product
=
objModel
.
s_product
;
item
.
s_product
=
objModel
.
s_product
;
item
.
s_sku
=
objModel
.
s_sku
;
item
.
s_sku
=
objModel
.
s_sku
;
}
}
}
//百伦分类名称改变时重新获取分类路径
//百伦分类名称改变时重新获取分类路径
if
(
item
.
s_category_bailun_id
>
0
)
if
(
item
.
s_category_bailun_id
>
0
)
{
{
...
@@ -637,12 +642,15 @@ namespace API.Services.ProductManageServices
...
@@ -637,12 +642,15 @@ namespace API.Services.ProductManageServices
if
(!
isBatch
||
(
isBatch
&&
string
.
IsNullOrWhiteSpace
(
sql
.
SQL
)))
if
(!
isBatch
||
(
isBatch
&&
string
.
IsNullOrWhiteSpace
(
sql
.
SQL
)))
{
{
var
objState
=
yt_product_state
.
FirstOrDefault
(
" where st_sid = @0"
,
objBase
.
s_id
);
var
objState
=
yt_product_state
.
FirstOrDefault
(
" where st_sid = @0"
,
objBase
.
s_id
);
if
(
objState
!=
null
)
{
//已上传环球SKU则不能再修改
//已上传环球SKU则不能再修改
if
(
objState
.
st_isupapi
==
1
&&
objModel
.
ex_sku
!=
item
.
ex_sku
)
if
(
objState
.
st_isupapi
==
1
&&
objModel
.
ex_sku
!=
item
.
ex_sku
)
{
{
item
.
ex_sku
=
objModel
.
ex_sku
;
item
.
ex_sku
=
objModel
.
ex_sku
;
}
}
}
}
}
if
(
isSame
)
if
(
isSame
)
{
{
//修改采购仓库,如果可为发货仓同时修改该区域下的发货仓,没有则新增
//修改采购仓库,如果可为发货仓同时修改该区域下的发货仓,没有则新增
...
@@ -828,12 +836,15 @@ namespace API.Services.ProductManageServices
...
@@ -828,12 +836,15 @@ namespace API.Services.ProductManageServices
if
(!
isBatch
||
(
isBatch
&&
string
.
IsNullOrWhiteSpace
(
sql
.
SQL
)))
if
(!
isBatch
||
(
isBatch
&&
string
.
IsNullOrWhiteSpace
(
sql
.
SQL
)))
{
{
var
objState
=
yt_product_state
.
FirstOrDefault
(
" where st_sid = @0"
,
objBase
.
s_id
);
var
objState
=
yt_product_state
.
FirstOrDefault
(
" where st_sid = @0"
,
objBase
.
s_id
);
if
(
objState
!=
null
)
{
//已上传环球SKU则不能再修改
//已上传环球SKU则不能再修改
if
(
objState
.
st_isupapi
==
1
&&
objModel
.
sp_sku
!=
item
.
sp_sku
)
if
(
objState
.
st_isupapi
==
1
&&
objModel
.
sp_sku
!=
item
.
sp_sku
)
{
{
item
.
sp_sku
=
objModel
.
sp_sku
;
item
.
sp_sku
=
objModel
.
sp_sku
;
}
}
}
}
}
var
dicModel
=
ConvertToDictionary
(
objModel
);
var
dicModel
=
ConvertToDictionary
(
objModel
);
strSql
=
GetPropertyValue
(
item
,
dicModel
,
out
paralist
,
out
_logList
);
strSql
=
GetPropertyValue
(
item
,
dicModel
,
out
paralist
,
out
_logList
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment