Commit f17c5e23 by wang

erp推送状态为 2的

parent c6d054f5
......@@ -27,8 +27,6 @@ func main() {
if err := boot.Boot(path); err != nil {
panic(err)
}
//service.NewServiceSupplier().MappingHandle(1)
//return
switch taskName {
case "supplierMerge":
fmt.Println("供应商合并")
......
[xorm]
ShowSQL = false
ShowSQL = true
[pool_class]
user_name = root
......
......@@ -67,7 +67,8 @@ func (this *ErpService) SyncErp() {
for{
poolSupplierEntity:=&PoolSupplierEntity{}
count:=0
rows,err:= dbSpu.Table("lie_supplier_channel").Where("is_type=? and status in (?,?) and supplier_id>? ",0,2,-2,supplierId).Limit(10).Rows(poolSupplierEntity)
rows,err:= dbSpu.Table("lie_supplier_channel").Where("is_type=? and status = ? and supplier_id>? ",0,2,supplierId).Limit(10).Rows(poolSupplierEntity)
if err != nil {
syncLog.SyncInsertLog("erp_merger",ErpTaskName+"查询供应商列表出错,err:"+err.Error())
panic(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