Commit 4746e394 by mushishixian

引包问题

parent 4f4bc2c7
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"fmt" "fmt"
"github.com/ichunt2019/go-rabbitmq/utils/rabbitmq" "github.com/ichunt2019/go-rabbitmq/utils/rabbitmq"
"github.com/tealeg/xlsx" "github.com/tealeg/xlsx"
"scm_server/configs"
"scm_server/internal/logic" "scm_server/internal/logic"
"scm_server/internal/model" "scm_server/internal/model"
) )
......
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"fmt" "fmt"
"github.com/ichunt2019/go-rabbitmq/utils/rabbitmq" "github.com/ichunt2019/go-rabbitmq/utils/rabbitmq"
"github.com/tealeg/xlsx" "github.com/tealeg/xlsx"
"scm_server/configs"
"scm_server/internal/logic" "scm_server/internal/logic"
"scm_server/internal/model" "scm_server/internal/model"
) )
......
...@@ -5,6 +5,7 @@ import ( ...@@ -5,6 +5,7 @@ import (
"fmt" "fmt"
"github.com/ichunt2019/go-rabbitmq/utils/rabbitmq" "github.com/ichunt2019/go-rabbitmq/utils/rabbitmq"
"github.com/tealeg/xlsx" "github.com/tealeg/xlsx"
"scm_server/configs"
"scm_server/internal/logic" "scm_server/internal/logic"
"scm_server/internal/model" "scm_server/internal/model"
) )
......
...@@ -18,7 +18,7 @@ const WriteGoodsSyncErrorSql = "UPDATE `lie_goods` SET sync_error = ? WHERE good ...@@ -18,7 +18,7 @@ const WriteGoodsSyncErrorSql = "UPDATE `lie_goods` SET sync_error = ? WHERE good
const SyncGoodsSuccessSql = "UPDATE `lie_goods` SET sync_status = 1 , sync_time = ? WHERE erp_id = ?" const SyncGoodsSuccessSql = "UPDATE `lie_goods` SET sync_status = 1 , sync_time = ? WHERE erp_id = ?"
const SyncGoodsSuccessSqlWithStatus = "UPDATE `lie_goods` SET sync_status = 1 , sync_time = ? , status = ? WHERE erp_id = ?" const SyncGoodsSuccessWithStatusSql = "UPDATE `lie_goods` SET sync_status = 1 , sync_time = ? , status = ? WHERE erp_id = ?"
//检查物料是否存在 //检查物料是否存在
func CheckGoodsExist(erpId string) (exist bool) { func CheckGoodsExist(erpId string) (exist bool) {
...@@ -61,7 +61,7 @@ func SyncGoodsSuccess(erpId string, isDelete bool) (err error) { ...@@ -61,7 +61,7 @@ func SyncGoodsSuccess(erpId string, isDelete bool) (err error) {
if !isDelete { if !isDelete {
_, err = dao.GetDb().Exec(SyncGoodsSuccessSql, time.Now().Unix(), erpId) _, err = dao.GetDb().Exec(SyncGoodsSuccessSql, time.Now().Unix(), erpId)
} else { } else {
_, err = dao.GetDb().Exec(SyncGoodsSuccessSqlWithStatus, time.Now().Unix(), 0, erpId) _, err = dao.GetDb().Exec(SyncGoodsSuccessWithStatusSql, time.Now().Unix(), 0, erpId)
} }
return return
} }
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