Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wang
/
go_supplier_task
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
b40f98d7
authored
Mar 23, 2021
by
wang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
^
parent
f170cb12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
2 deletions
cmd/cron/merge/cron.go
resources/zySupplier.csv
service/service_mapping.go
service/service_supplier.go
cmd/cron/merge/cron.go
View file @
b40f98d7
...
...
@@ -27,6 +27,8 @@ func main() {
if
err
:=
boot
.
Boot
(
path
);
err
!=
nil
{
panic
(
err
)
}
service
.
NewServiceSupplier
()
.
MappingHandle
(
1
)
return
switch
taskName
{
case
"supplierMerge"
:
fmt
.
Println
(
"供应商合并"
)
...
...
resources/zySupplier.csv
View file @
b40f98d7
This diff is collapsed.
Click to expand it.
service/service_mapping.go
View file @
b40f98d7
...
...
@@ -106,9 +106,9 @@ func (this *ServiceSupplier) GetStatus2SupplierInfo(supplierName string,purchase
syncLog
.
SyncInsertLog
(
"mapping_insert"
,
"[插入映射-新增标准]查询标供应商出错:"
+
"供应商标准名称:"
+
supplierName
+
err
.
Error
(),
syncLog
.
LogLevelFatal
)
panic
(
nil
)
}
has
,
poolSupplierEntity
:=
this
.
onlyOpenHandle
(
supplierName
,
poolSupplierEntitys
)
_
,
poolSupplierEntity
:=
this
.
onlyOpenHandle
(
supplierName
,
poolSupplierEntitys
)
if
(
has
==
true
){
if
(
len
(
poolSupplierEntitys
)
>
0
){
poolSupplierEntity
.
IsType
=
0
//组装采购员
oldUids
:=
php2go
.
Explode
(
","
,
poolSupplierEntity
.
ChannelUid
)
...
...
service/service_supplier.go
View file @
b40f98d7
...
...
@@ -119,6 +119,7 @@ func (this *ServiceSupplier) onlyOpenHandle(groupName string,PoolSupplierEntity
return
true
,
onlyOpenSupplier
}
}
else
{
return
false
,
oneSupplierEntity
}
...
...
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