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
3589a3f1
authored
Mar 16, 2021
by
wang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加必要的日志打印
parent
59d05237
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
service/service_ly.go
service/service_mapping.go
service/service_supplier.go
service/service_ly.go
View file @
3589a3f1
...
@@ -68,6 +68,8 @@ func (this *ServiceLy) Merger() {
...
@@ -68,6 +68,8 @@ func (this *ServiceLy) Merger() {
}
}
}
}
}
}
common
.
PrintStdout
()
.
Printf
(
"%s,完成"
,
LyTaskName
)
}
}
...
...
service/service_mapping.go
View file @
3589a3f1
...
@@ -84,6 +84,8 @@ func (this *ServiceSupplier)MappingHandle(MappingType int) {
...
@@ -84,6 +84,8 @@ func (this *ServiceSupplier)MappingHandle(MappingType int) {
}
}
// panic("测试:执行一组就退出")//测试执行一个就退出
// panic("测试:执行一组就退出")//测试执行一个就退出
}
}
common
.
PrintStdout
()
.
Printf
(
"%s完成
\n
"
,
TaskName
)
}
}
...
@@ -154,10 +156,6 @@ func (this *ServiceSupplier) GetStatus2SupplierInfo(supplierName string,purchase
...
@@ -154,10 +156,6 @@ func (this *ServiceSupplier) GetStatus2SupplierInfo(supplierName string,purchase
}
}
}
}
func
getStat
()
{
}
//插入映射
//插入映射
func
(
this
*
ServiceSupplier
)
InsertMapping
(
SupplierInfoOne
SupplierMappingEntity
)
{
func
(
this
*
ServiceSupplier
)
InsertMapping
(
SupplierInfoOne
SupplierMappingEntity
)
{
...
...
service/service_supplier.go
View file @
3589a3f1
...
@@ -55,6 +55,8 @@ func (this *ServiceSupplier)MergerCriteria() {
...
@@ -55,6 +55,8 @@ func (this *ServiceSupplier)MergerCriteria() {
common
.
PrintStdout
()
.
Printf
(
"[整合标准数据]标准供应商:"
+
groupName
+
" 组内没有对应联营供应商数据"
)
common
.
PrintStdout
()
.
Printf
(
"[整合标准数据]标准供应商:"
+
groupName
+
" 组内没有对应联营供应商数据"
)
}
}
}
}
common
.
PrintStdout
()
.
Printf
(
"[整合标准数据]完成
\n
"
)
}
}
//启用唯一一个供应商处理
//启用唯一一个供应商处理
...
@@ -85,15 +87,18 @@ func (this *ServiceSupplier) onlyOpenHandle(groupName string,PoolSupplierEntity
...
@@ -85,15 +87,18 @@ func (this *ServiceSupplier) onlyOpenHandle(groupName string,PoolSupplierEntity
for
_
,
SupplierOne
:=
range
PoolSupplierEntitys
{
for
_
,
SupplierOne
:=
range
PoolSupplierEntitys
{
SupplierOne
.
SupplierName
=
groupName
SupplierOne
.
SupplierName
=
groupName
SupplierOne
.
IsType
=
0
//改成真的
SupplierOne
.
IsType
=
0
//改成真的
SupplierOne
.
Status
=-
2
//禁用
if
(
SupplierOne
.
Status
==
2
){
//有状态为2的
if
(
SupplierOne
.
Status
==
2
){
//有状态为2的
if
(
!
isUpdate
){
if
(
!
isUpdate
){
//todo 修改状态为启用
//todo 修改状态为启用
SupplierOne
.
Status
=
2
isUpdate
=
true
isUpdate
=
true
onlyOpenSupplier
=
SupplierOne
onlyOpenSupplier
=
SupplierOne
}
else
{
if
(
onlyOpenSupplier
.
SupplierId
!=
SupplierOne
.
SupplierId
){
SupplierOne
.
Status
=-
2
}
}
}
}
else
{
SupplierOne
.
Status
=-
2
}
}
this
.
updateSupplier
(
SupplierOne
,
updateCols
...
)
this
.
updateSupplier
(
SupplierOne
,
updateCols
...
)
}
}
...
...
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