Commit 3589a3f1 by wang

增加必要的日志打印

parent 59d05237
...@@ -68,6 +68,8 @@ func (this *ServiceLy) Merger() { ...@@ -68,6 +68,8 @@ func (this *ServiceLy) Merger() {
} }
} }
} }
common.PrintStdout().Printf("%s,完成",LyTaskName)
} }
......
...@@ -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) {
......
...@@ -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...)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment