Commit ce76b3ae by wang

fix

parent 02367f3c
Showing with 2 additions and 1 deletions
...@@ -91,6 +91,7 @@ func (this *UploadSkuSync)Sync() error{ ...@@ -91,6 +91,7 @@ func (this *UploadSkuSync)Sync() error{
//开始处理 //开始处理
func (this *UploadSkuSync) handle() { func (this *UploadSkuSync) handle() {
fmt.Printf("加1")
dao.IncrSyncQueue(this.SkuRes.UpSn)//redis 完成同步+1 dao.IncrSyncQueue(this.SkuRes.UpSn)//redis 完成同步+1
if(this.SkuRes.UpSn=="" || this.SkuRes.UploadLogId==0){ if(this.SkuRes.UpSn=="" || this.SkuRes.UploadLogId==0){
msg:=fmt.Sprintf("回调的消息UploadLogId 和 UpSn 为空或者为0%s",this.SkuReStr) msg:=fmt.Sprintf("回调的消息UploadLogId 和 UpSn 为空或者为0%s",this.SkuReStr)
...@@ -193,7 +194,7 @@ func (this *UploadSkuSync) IshandleSucess() (bool,error) { ...@@ -193,7 +194,7 @@ func (this *UploadSkuSync) IshandleSucess() (bool,error) {
} }
countSend,err:=dao.GetShouldSendQueueCount(this.SkuRes.UpSn) countSend,err:=dao.GetShouldSendQueueCount(this.SkuRes.UpSn)
fmt.Printf("up_sn:%s:应该发送的数量为:%d\n",this.SkuRes.UpSn,countSend) fmt.Printf("up_sn:%s:应该发送的数量为:%d\n",this.SkuRes.UpSn,countSend)
if(countSync==countSend){ if(countSync>=countSend){
return true,nil return true,nil
} }
return false,nil return false,nil
......
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