Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
21e8ae00
authored
Mar 21, 2023
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
eccn全匹配
parent
88f65816
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
service/service_ly_common.go
service/service_price.go
service/service_ly_common.go
View file @
21e8ae00
...
@@ -416,6 +416,12 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
...
@@ -416,6 +416,12 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
break
outerLoop
break
outerLoop
}
}
}
}
}
else
{
if
sku
.
Eccn
==
eccn
{
fmt
.
Println
(
"全匹配"
)
findedRatio
=
true
break
outerLoop
}
}
}
}
}
}
}
...
...
service/service_price.go
View file @
21e8ae00
package
service
package
service
import
(
import
(
"github.com/gomodule/redigo/redis"
"github.com/syyongx/php2go"
"github.com/tidwall/gjson"
"go_sku_server/model"
"go_sku_server/model"
"go_sku_server/pkg/gredis"
"go_sku_server/pkg/gredis"
"strconv"
"strconv"
"strings"
"strings"
"time"
"time"
"github.com/gomodule/redigo/redis"
"github.com/syyongx/php2go"
"github.com/tidwall/gjson"
)
)
type
PriceService
struct
{
type
PriceService
struct
{
...
@@ -20,7 +21,6 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
...
@@ -20,7 +21,6 @@ func (ls *LyService) GetActivityPrice(sku model.LySku, suffix string, power Powe
if
len
(
sku
.
LadderPrice
)
==
0
{
if
len
(
sku
.
LadderPrice
)
==
0
{
return
sku
return
sku
}
}
// 这个是针对贸泽的活动价?如果有成本价就是代表有活动,而且活动模块没法设置mouse的活动价
// 这个是针对贸泽的活动价?如果有成本价就是代表有活动,而且活动模块没法设置mouse的活动价
if
suffix
==
""
&&
sku
.
SupplierId
==
14
{
if
suffix
==
""
&&
sku
.
SupplierId
==
14
{
return
getMouserActivityPrice
(
sku
)
return
getMouserActivityPrice
(
sku
)
...
...
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