baishaojie hace 3 años
padre
commit
2e454b8b4d
Se han modificado 90 ficheros con 1115 adiciones y 70 borrados
  1. 8 0
      .idea/.gitignore
  2. 4 0
      .idea/encodings.xml
  3. 8 0
      .idea/modules.xml
  4. 6 0
      .idea/vcs.xml
  5. 9 0
      .idea/xdmy.iml
  6. 2 0
      apiserver/config/config.go
  7. 3 2
      apiserver/dao/dao.go
  8. 12 4
      apiserver/model/buydetail.go
  9. 18 15
      apiserver/model/http/order.go
  10. 6 0
      apiserver/model/http/sap.go
  11. 4 0
      apiserver/model/provider.go
  12. 13 0
      apiserver/routers/api/db.go
  13. 37 0
      apiserver/routers/restful/sql_utils.go
  14. 1 0
      apiserver/routers/router.go
  15. 7 0
      apiserver/routers/sap.go
  16. 13 5
      apiserver/service/job.go
  17. 76 39
      apiserver/service/order.go
  18. 13 0
      apiserver/service/sap.go
  19. BIN
      cmd/cmd.exe
  20. 1 1
      cmd/conf/app.ini
  21. 4 2
      cmd/conf/conf.toml
  22. 3 0
      cmd/linux.bat
  23. 0 0
      cmd/logs/log20221014-132950.log
  24. 1 0
      cmd/logs/log20221014-133002.log
  25. 32 0
      cmd/logs/log20221014-134051.log
  26. 0 0
      cmd/logs/log20221017-140828.log
  27. 0 0
      cmd/logs/log20221017-140917.log
  28. 3 0
      cmd/logs/log20221017-141104.log
  29. 26 0
      cmd/logs/log20221017-152208.log
  30. 3 0
      cmd/logs/log20221017-152805.log
  31. 0 0
      cmd/logs/log20221017-153604.log
  32. 3 0
      cmd/logs/log20221017-153846.log
  33. 1 0
      cmd/logs/log20221017-154654.log
  34. 1 0
      cmd/logs/log20221017-154757.log
  35. 1 0
      cmd/logs/log20221017-154831.log
  36. 1 0
      cmd/logs/log20221017-155100.log
  37. 6 0
      cmd/logs/log20221017-161754.log
  38. 0 0
      cmd/logs/log20221017-163512.log
  39. 0 0
      cmd/logs/log20221017-163822.log
  40. 0 0
      cmd/logs/log20221017-164326.log
  41. 0 0
      cmd/logs/log20221017-164637.log
  42. 2 0
      cmd/logs/log20221017-164936.log
  43. 257 0
      cmd/logs/log20221017-170608.log
  44. 0 0
      cmd/logs/log20221017-173944.log
  45. 0 0
      cmd/logs/log20221017-174732.log
  46. 0 0
      cmd/logs/log20221018-115146.log
  47. 0 0
      cmd/logs/log20221018-122320.log
  48. 0 0
      cmd/logs/log20221018-122930.log
  49. 0 0
      cmd/logs/log20221018-123332.log
  50. 0 0
      cmd/logs/log20221018-123500.log
  51. 0 0
      cmd/logs/log20221018-123636.log
  52. 0 0
      cmd/logs/log20221018-123759.log
  53. 0 0
      cmd/logs/log20221018-123920.log
  54. 0 0
      cmd/logs/log20221018-132440.log
  55. 0 0
      cmd/logs/log20221018-141645.log
  56. 0 0
      cmd/logs/log20221018-141827.log
  57. 159 0
      cmd/logs/log20221018-144857.log
  58. 0 0
      cmd/logs/log20221018-150733.log
  59. 0 0
      cmd/logs/log20221018-151112.log
  60. 0 0
      cmd/logs/log20221018-151307.log
  61. 0 0
      cmd/logs/log20221018-151622.log
  62. 0 0
      cmd/logs/log20221018-152227.log
  63. 0 0
      cmd/logs/log20221018-152514.log
  64. 0 0
      cmd/logs/log20221018-152533.log
  65. 0 0
      cmd/logs/log20221018-153140.log
  66. 0 0
      cmd/logs/log20221018-153317.log
  67. 0 0
      cmd/logs/log20221018-153326.log
  68. 0 0
      cmd/logs/log20221018-153339.log
  69. 36 0
      cmd/logs/log20221018-153607.log
  70. 39 0
      cmd/logs/log20221018-154015.log
  71. 0 0
      cmd/logs/log20221018-154324.log
  72. 0 0
      cmd/logs/log20221018-154700.log
  73. 53 0
      cmd/logs/log20221018-154914.log
  74. 40 0
      cmd/logs/log20221018-155334.log
  75. 0 0
      cmd/logs/log20221018-155502.log
  76. 39 0
      cmd/logs/log20221018-155805.log
  77. 0 0
      cmd/logs/log20221018-155856.log
  78. 0 0
      cmd/logs/log20221018-155909.log
  79. 0 0
      cmd/logs/log20221018-155922.log
  80. 22 0
      cmd/logs/log20221018-160304.log
  81. 29 0
      cmd/logs/log20221018-160327.log
  82. 0 0
      cmd/logs/log20221018-160537.log
  83. 13 0
      cmd/logs/log20221018-160607.log
  84. 45 0
      cmd/logs/log20221018-161945.log
  85. 24 0
      cmd/logs/log20221018-163239.log
  86. 0 0
      cmd/logs/log20221018-171113.log
  87. 13 0
      cmd/logs/log20221018-171132.log
  88. 2 1
      cmd/main.go
  89. BIN
      cmd/sh/eqserver
  90. 16 1
      pkg/http/http.go

+ 8 - 0
.idea/.gitignore

@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml

+ 4 - 0
.idea/encodings.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Encoding" addBOMForNewFiles="with NO BOM" />
+</project>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/xdmy.iml" filepath="$PROJECT_DIR$/.idea/xdmy.iml" />
+    </modules>
+  </component>
+</project>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

+ 9 - 0
.idea/xdmy.iml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="Go" enabled="true" />
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 2 - 0
apiserver/config/config.go

@@ -17,6 +17,8 @@ type Http struct {
 	TimeOut time.Duration `toml:"timeout"`
 	SapName string        `toml:"sapname"`
 	SapPwd  string        `toml:"sappwd"`
+	SrmName string        `toml:"srmname"`
+	SrmPwd  string        `toml:"srmpwd"`
 }
 type Config struct {
 	DB   *MySQLConfig `toml:"db"`

+ 3 - 2
apiserver/dao/dao.go

@@ -43,8 +43,8 @@ func New(conf *config.Config) *Dao {
 			SingularTable: true,
 			NoLowerCase:   true,
 		},
-		Logger: newLogger,
-		// Logger: logger.Default.LogMode(logger.Silent),
+		//Logger: newLogger,
+		Logger: logger.Default.LogMode(logger.Silent),
 	}
 
 	db, err := gorm.Open(mysql.Open(conf.DB.DSN), gc)
@@ -63,6 +63,7 @@ func New(conf *config.Config) *Dao {
 	D = &Dao{
 		DB: tx,
 	}
+
 	return D
 }
 func Setup() {

+ 12 - 4
apiserver/model/buydetail.go

@@ -17,9 +17,9 @@ type BigBuyDetail struct {
 	Note         string    `gorm:"column:note"`      //关闭原因
 	PastureID    int       `gorm:"column:pastureId"`
 	ProviderID   int       `gorm:"column:providerId"`
-	Statu        int       `gorm:"column:statu"`   // 到货状态
-	ZeroCou      int       `gorm:"column:zeroCou"` //配单数量
-	SapNumber    string    `gorm:"column:sapNumber"`  //sap采购单号
+	Statu        int       `gorm:"column:statu"`     // 到货状态
+	ZeroCou      int       `gorm:"column:zeroCou"`   //配单数量
+	SapNumber    string    `gorm:"column:sapNumber"` //sap采购单号
 	SapStatus    int       `gorm:"column:sapStatus"` // 同步状态
 	SapError     string    `gorm:"column:sapError"`  // sap接口错误信息
 	SrmStatus    int       `gorm:"column:srmStatus"`
@@ -55,5 +55,13 @@ type BuyDetail struct {
 }
 type BigBuyDetailReq struct {
 	Code string `json:"matchCode" gorm:"column:matchcode"` //配单号
-	ID   string `json:"id" gorm:"column:id"`   //申购单id
+	ID   string `json:"id" gorm:"column:id"`               //申购单id
+}
+
+func (BuyDetail) TableName() string {
+	return "buydetail"
+}
+
+func (BigBuyDetail) TableName() string {
+	return "bigbuydetail"
 }

+ 18 - 15
apiserver/model/http/order.go

@@ -79,21 +79,24 @@ type SrmOrderDetail struct {
 }
 
 type SrmOrderData struct {
-	PurchaseOrderType   string           `json:"purchaseOrderType"`   //  采购订单类型
-	PurchaseOrderDate   string           `json:"purchaseOrderDate"`   //  订单日期
-	PurchasingOrgCode   string           `json:"purchasingOrgCode"`   //  采购组织
-	PurchasingGroupCode string           `json:"purchasingGroupCode"` //  采购组
-	CompanyCode         string           `json:"companyCode"`         //  公司
-	VendorErpCode       string           `json:"vendorErpCode"`       //  供应商编码
-	VendorName          string           `json:"vendorName"`          //  供应商名称
-	DeliveryTypeCode    string           `json:"deliveryTypeCode"`    //  配送类型
-	CurrencyCode        string           `json:"currencyCode"`        //  货币
-	ExchangeRate        string           `json:"exchangeRate"`        //  汇率
-	TotalNonTaxAmount   string           `json:"totalNonTaxAmount"`   //  订单未税金
-	TotalTaxAmount      string           `json:"totalTaxAmount"`      //  订单含税金额
-	IsReturn            string           `json:"isReturn"`            //  是否退货
-	Remark              string           `json:"remark"`              //  备注
-	Detail              []SrmOrderDetail `json:"purchaseOrderDetails"`
+	PurchaseOrderType   string `json:"purchaseOrderType"`   //  采购订单类型
+	PurchaseOrderDate   string `json:"purchaseOrderDate"`   //  订单日期
+	PurchasingOrgCode   string `json:"purchasingOrgCode"`   //  采购组织
+	PurchasingGroupCode string `json:"purchasingGroupCode"` //  采购组
+	CompanyCode         string `json:"companyCode"`         //  公司
+	VendorErpCode       string `json:"vendorErpCode"`       //  供应商编码
+	VendorName          string `json:"vendorName"`          //  供应商名称
+	DeliveryTypeCode    string `json:"deliveryTypeCode"`    //  配送类型
+	CurrencyCode        string `json:"currencyCode"`        //  货币
+	ExchangeRate        string `json:"exchangeRate"`        //  汇率
+	TotalNonTaxAmount   string `json:"totalNonTaxAmount"`   //  订单未税金
+	TotalTaxAmount      string `json:"totalTaxAmount"`      //  订单含税金额
+	IsReturn            string `json:"isReturn"`            //  是否退货
+	Remark              string `json:"remark"`              //  备注
+
+	ErpPurchaseOrderNo string           `json:"erpPurchaseOrderNo"` //  sap单号
+	PurchaseOrderNo    string           `json:"purchaseOrderNo"`    //  备注
+	Detail             []SrmOrderDetail `json:"purchaseOrderDetails"`
 }
 type SrmOrderReq struct {
 	Dest `json:"DEST"`

+ 6 - 0
apiserver/model/http/sap.go

@@ -48,3 +48,9 @@ func (d *Dest) GetName() string {
 func (d *Dest) GetDest() *Dest {
 	return d
 }
+
+type SrmResp struct {
+	Success bool   `json:"success"`
+	Code    string `json:"code"`
+	Message string `json:"message"`
+}

+ 4 - 0
apiserver/model/provider.go

@@ -26,3 +26,7 @@ type Provider struct {
 	CreatedAt        time.Time `gorm:"column:created_at"`
 	UpdatedAt        time.Time `gorm:"column:updated_at"`
 }
+
+func (Provider) TableName() string {
+	return "provider"
+}

+ 13 - 0
apiserver/routers/api/db.go

@@ -209,6 +209,19 @@ func GetDataByName(c *gin.Context) {
 				appG.Response(http.StatusOK, e.SUCCESS, totalData)
 				return
 			}
+			if sqlnamestr == "getMenuByRole" {
+				var list []interface{}
+				data := make(map[string]interface{})
+				fmt.Println(queryData, "aaaaa")
+				for _, item := range queryData.(map[string]interface{})["lists"].([]map[string]interface{}) {
+					fmt.Println(item["menu_id"])
+					list = append(list, item["menu_id"])
+				}
+				data["menu_id"] = list
+				queryData.(map[string]interface{})["lists"] = data
+				appG.Response(http.StatusOK, e.SUCCESS, queryData)
+				return
+			}
 			if err != nil {
 				logging.Error("GetDataByName  err: ", err)
 				msg := geterrmsg(err.Error())

+ 37 - 0
apiserver/routers/restful/sql_utils.go

@@ -1187,6 +1187,43 @@ func MapStrList(sql string, param ...interface{}) ([]map[string]string, error) {
 	}()
 	return ress, nil
 }
+
+// func MapInterList(sql string, param ...interface{}) ([]map[string]interface{}, error) {
+// 	ress := make([]map[string]interface{}, 0, 0)
+// 	rows, err := Dbs.Queryx(sql, param...)
+// 	if err != nil {
+// 		log.Default().Printf("MapInterList Queryx: %v", err)
+// 		return ress, err
+// 	}
+// 	col, err := rows.Columns()
+// 	if err != nil {
+// 		log.Default().Printf("BigpartUse clolumns: %v", err)
+// 		return ress, err
+// 	}
+// 	for rows.Next() {
+// 		m := make(map[string]interface{})
+// 		rs, err := rows.SliceScan()
+// 		if err != nil {
+// 			log.Default().Printf("BigpartUse SliceScan: %v", err)
+// 			return ress, err
+// 		}
+// 		for i, r := range rs {
+// 			switch r.(type) {
+// 			case []uint8:
+// 				m[col[i]] = string(r.([]uint8))
+// 			case int64:
+// 				m[col[i]] = r.(int64)
+// 			}
+// 		}
+// 		ress = append(ress, m)
+// 	}
+// 	defer func() {
+// 		if err := rows.Close(); err != nil {
+// 			log.Default().Printf("sqlx row  close:%v", err)
+// 		}
+// 	}()
+// 	return ress, nil
+// }
 func MapInterList(sql string, param ...interface{}) ([]map[string]interface{}, error) {
 	ress := make([]map[string]interface{}, 0, 0)
 	rows, err := Dbs.Queryx(sql, param...)

+ 1 - 0
apiserver/routers/router.go

@@ -63,6 +63,7 @@ func InitRouter() *gin.Engine {
 
 	{
 
+		apiV1.POST("srm/order/send", ManaulSrmOrderJob)
 		apiV1.POST("sap/order/send", ManaulSapOrder)
 		apiV1.POST("sap/transfer/send", ManualTransfer)
 		apiV1.POST("part/eas/batch", EasBatch)

+ 7 - 0
apiserver/routers/sap.go

@@ -47,3 +47,10 @@ func ManaulSapOrder(c *gin.Context) {
 		c.JSON(200, "fail")
 	}
 }
+
+func ManaulSrmOrderJob(c *gin.Context) {
+	// code := c.PostForm("code")
+	service.ManaulSrmOrderJob()
+	c.JSON(200, "success")
+
+}

+ 13 - 5
apiserver/service/job.go

@@ -1,7 +1,10 @@
 package service
 
 import (
+	"fmt"
 	"time"
+
+	"github.com/robfig/cron"
 )
 
 func SapJobInit() {
@@ -16,12 +19,17 @@ func SapJobInit() {
 	// 	// if _, e := c.AddFunc("@every 1m", jobTransfer); e != nil {
 	// 	log.Error("transfer ", e)
 	// }
+	duetimecst, _ := time.ParseInLocation("15:04:05", "00:01:00", time.Local)
+	duetimecst1, _ := time.ParseInLocation("15:04:05", "00:00:00", time.Local)
+	spec := fmt.Sprintf("@every %v", duetimecst.Sub(duetimecst1))
+	c := cron.New()
+	c.AddFunc(spec, func() {
+		AutoSapOrderJob()
+		AutoSrmOrderJob()
+		// fmt.Println(time.Now())
+	})
 
-	// if _, e := c.AddFunc("@every 1m", test); e != nil {
-	// 	logrus.Error(e)
-	// }
-
-	// c.Start()
+	c.Start()
 
 }
 

+ 76 - 39
apiserver/service/order.go

@@ -16,7 +16,7 @@ import (
 	"kpt.xdmy/pkg/util"
 )
 
-// 推送采购订单到sap(业务触发),已关闭 
+// 推送采购订单到sap(业务触发),已关闭
 func (s *Service) PurchaseOrder(p interface{}) {
 	r := new(model.BigBuyDetailReq)
 	if e := util.Unmarshal(p, r); e != nil {
@@ -56,6 +56,7 @@ func (s *Service) PurchaseOrder(p interface{}) {
 		SrmOrder(&v)
 	}
 }
+
 // 定时(每分钟 一次)读取未同步的采购订单,同步到sap
 // 同步失败的采购订单,变更状态,改为手动同步
 // 状态(sapStatus):0,未同步;1,成功;2,失败
@@ -79,6 +80,7 @@ func AutoSapOrderJob() {
 		}
 	}
 }
+
 // 手动同步采购订单到sap
 func ManaulSapOrderJob(buyeCode string) (err error) {
 	order := new(model.BigBuyDetail)
@@ -95,11 +97,12 @@ func ManaulSapOrderJob(buyeCode string) (err error) {
 	} else {
 		up.SapStatus = 1
 	}
-	if e := s.d.DB.Model(order).Where("buyeCode=?", buyeCode).Updates(up); e != nil {
+	if e := s.d.DB.Model(order).Where("buyeCode=?", buyeCode).Updates(up).Error; e != nil {
 		log.Errorf("BigBuyDetail update error: %v", e)
 	}
 	return
 }
+
 // 发送采购订单到sap
 func SapOrder(p *model.BigBuyDetail) (error, string) {
 	r := new(http.SapOrderReq)
@@ -111,6 +114,7 @@ func SapOrder(p *model.BigBuyDetail) (error, string) {
 
 	r.Dest.DestID = "EQMAN"
 	r.Dest.BussTp = "MM007"
+	//sap
 	r.Dest.Url = "https://app.modernfarming.cn:7443/sap/Common/MM007/PurchaseOrder"
 
 	if e := s.d.DB.First(pv, model.Provider{ID: p.ProviderID}).Error; e != nil {
@@ -164,7 +168,9 @@ func SapOrder(p *model.BigBuyDetail) (error, string) {
 		}
 	}
 
-	if e := s.SyncSap(r, rp); e != nil && rp.Dest.Status == "S" {
+	e := s.SyncSap(r, &rp)
+	fmt.Println(e != nil, rp.Dest.Status == "S")
+	if e == nil && rp.Dest.Status == "S" {
 		log.Infof("buy order success :eq=%s,sap=%s", rp.Data.EqNumber, rp.Data.SapNumber)
 		return nil, rp.Data.SapNumber
 	} else {
@@ -177,7 +183,7 @@ func SapOrder(p *model.BigBuyDetail) (error, string) {
 			s.d.DB.Create(saplog)
 		}
 		if e == nil {
-			return errors.Errorf("sap order fail:%s", rp.Data.MsgText), ""
+			return errors.Errorf("sap order :%s", rp.Data.MsgText), ""
 		} else {
 			return errors.Wrapf(e, "sap  order error:%v", e), ""
 		}
@@ -186,7 +192,7 @@ func SapOrder(p *model.BigBuyDetail) (error, string) {
 
 func AutoSrmOrderJob() {
 	orders := []model.BigBuyDetail{}
-	if e := s.d.DB.Where("srmStatus=0 and buyerDate >'2022-10-01'").Find(&orders, model.BigBuyDetail{SrmStatus: 0}).Error; e != nil {
+	if e := s.d.DB.Where("srmStatus=0 and buyerDate >'2022-10-01' and sapStatus=1").Find(&orders, model.BigBuyDetail{SrmStatus: 0}).Error; e != nil {
 		log.Errorf("AutoSrmOrderJob  error: %v", e)
 		return
 	}
@@ -196,7 +202,7 @@ func AutoSrmOrderJob() {
 }
 func ManaulSrmOrderJob() {
 	orders := []model.BigBuyDetail{}
-	if e := s.d.DB.Where("srmStatus=2").Find(&orders, model.BigBuyDetail{SrmStatus: 0}).Error; e != nil {
+	if e := s.d.DB.Where("srmStatus=2").Where("sapStatus=1").Find(&orders, model.BigBuyDetail{SrmStatus: 0}).Error; e != nil {
 		log.Errorf("ManaulSrmOrderJob error: %v", e)
 		return
 	}
@@ -206,45 +212,49 @@ func ManaulSrmOrderJob() {
 }
 func SrmOrder(p *model.BigBuyDetail) {
 	r := new(http.SrmOrderReq)
-	// rp := new(http.OrderResp)
+	rp := new(http.SrmResp)
 	parts := []model.BuyDetail{}
 	pa := new(model.Pasture)
 	pv := new(model.Provider)
 	// dp := new(model.Department)
 
-	r.Dest.DestID = "EQMAN"
-	r.Dest.BussTp = "MM007"
-	r.Dest.Url = "https://app.modernfarming.cn:7443/sap/Common/MM007/PurchaseOrder"
+	// r.Dest.DestID = "EQMAN"
+	// r.Dest.BussTp = "MM007"
+	r.Dest.Url = "http://192.168.61.100/gateway/serviceApi/invoke/QZbycode/saveByEquipment"
 
 	if e := s.d.DB.First(pv, model.Provider{ID: p.ProviderID}).Error; e != nil {
 		log.Error(e)
 		return
 	}
+
 	if e := s.d.DB.First(pa, model.Pasture{ID: p.PastureID}).Error; e != nil {
 		log.Errorf("pasture query :id=%d,%v", p.PastureID, e)
 		return
 	}
+
 	if e := s.d.DB.Where("amount>0").Find(&parts, model.BuyDetail{BigID: p.ID}).Error; e != nil || len(parts) == 0 {
 		log.Errorf("buydetail query :bigid=%d,%v", p.ID, e)
 		return
 	}
-	// r.Data.IsCancle = ""
-	// r.Data.PayCondition = ""
+
 	r.Data.CompanyCode = pa.CompanyCode
 	r.Data.VendorErpCode = pv.ProviderNumber
 	r.Data.PurchaseOrderDate = p.BuyerDate.Format("20060102")
 	r.Data.CurrencyCode = "CNY"
 	r.Data.PurchaseOrderType = "ZNB4"
-	// r.Data.EqSysCode = p.BuyeCode[4:]
-	// r.Data.Organization = pa.ParchaseOrganization
 	r.Data.PurchasingOrgCode = pa.CompanyCode
 	r.Data.PurchasingGroupCode = "A02"
-
+	r.Data.VendorName = pv.ProviderName
+	r.Data.DeliveryTypeCode = "1"
+	r.Data.IsReturn = "0"
+	r.Data.Remark = ""
+	r.Data.ErpPurchaseOrderNo = p.SapNumber
+	r.Data.PurchaseOrderNo = p.BuyeCode[4:]
 	for i, v := range parts {
 		detail := http.SrmOrderDetail{}
 		c := new(model.Contract)
 		bc := new(model.BigContract)
-
+		pr := new(model.PartRepertory)
 		if e := s.d.DB.First(c, model.Contract{ID: v.ContractID}).Error; e != nil {
 			log.Errorf("order detail error:%v", e)
 			return
@@ -253,7 +263,12 @@ func SrmOrder(p *model.BigBuyDetail) {
 			log.Errorf("order detail error:%v", e)
 			return
 		}
-
+		s.d.DB.First(pr, model.PartRepertory{ContractID: v.ContractID})
+		//  e != nil {
+		// 	log.Errorf("pasture query :id=%d,%v", p.PastureID, e)
+		// 	return
+		// }
+		r.Data.TotalNonTaxAmount += c.Price
 		detail.RowNo = fmt.Sprintf("%d", i+1)
 		detail.Manufacturer = pa.FactoryCode
 		detail.OrderQty = fmt.Sprintf("%d", v.Amount)
@@ -262,33 +277,55 @@ func SrmOrder(p *model.BigBuyDetail) {
 		// detail.OrderUnitCode = "1"
 		detail.NonTaxPrice = c.Price
 		detail.OrderUnitCode = c.Unit
-		detail.MaterialCode = c.PartCode
-		// detail.IsOwn = util.ZeroStr(bc.IsZeroStock == 1, "K")
+		// detail.MaterialCode = c.PartCode
+		// detail.MaterialName = c.PartName
+		detail.MaterialCode = "14.01.01.02.001072"
+		detail.MaterialName = "荧光灯电子镇流器"
+		detail.MaterialDesc = c.Specification
+		detail.MaterialGroupCode = c.Unit
 
+		detail.PricingUnitCode = c.Unit
+		detail.TaxPrice = c.Price
+		detail.NonTaxAmount = c.Price
+		detail.Tax = "0"
+		detail.TaxAmount = c.Price
+		detail.ConfirmDate = p.BuyerDate.Add(time.Hour * 24 * 7).Format("20060102")
+		detail.PlantCode = pa.PastureNumber
+		detail.StockLocationCode = pr.Location
+		detail.QualityCheck = "0"
+		detail.IsReturn = "0"
+		detail.OverDeliveryLimit = "0"
+		detail.ShortDeliveryLimit = "0"
+		detail.SourceNo = p.BuyeCode[4:]
+		detail.ContractCode = bc.ContractCode
+		detail.Remark = c.Remark
 		r.Data.Detail = append(r.Data.Detail, detail)
-
+		detail.PurchaseCategory = "0"
+		detail.IsFree = "0"
 		if e := s.d.DB.Model(&model.BuyDetail{}).Where("id=?", v.ID).Update("rowNumber", i+1).Error; e != nil {
 			log.Errorln(e, v.ID)
 		}
 	}
 
-	// if e := s.SyncSap(r, rp); e != nil {
-	// 	log.Errorf("sap buy order error: %v", e)
-	// 	p.SapStatus = 3
-	// } else {
-	// 	if rp.Dest.Status == "S" {
-	// 		log.Infof("buy order success :eq=%s,sap=%s", rp.Data.EqNumber, rp.Data.SapNumber)
-	// 		p.SapStatus = 1
-	// 		p.SapNumber = rp.Data.SapNumber
-	// 	} else {
-	// 		log.Warnf("buy order fail :msg=%s,r=%v", rp.Data.MsgText, r)
-	// 		p.SapStatus = 2
-	// 		pp.Print(r)
-	// 	}
-	// }
-	// if p.SapStatus == 1 {
-	// 	if e := s.d.DB.Where("id=?", p.ID).Updates(&model.BigBuyDetail{SapStatus: p.SapStatus, SapNumber: p.SapNumber}).Error; e != nil {
-	// 		log.Errorf("update big buy detail error: %v", e)
-	// 	}
-	// }
+	rbyte, _ := json.Marshal([]interface{}{r.Data})
+	fmt.Println(string(rbyte))
+	if e := s.SyncSrm(r, rp, rbyte); e != nil {
+		log.Errorf("sap buy order error: %v", e)
+		p.SapStatus = 3
+	} else {
+		if rp.Success {
+			// log.Infof("buy order success :eq=%s,sap=%s", rp.Data.EqNumber, rp.Data.SapNumber)
+			p.SapStatus = 1
+			p.SapNumber = rp.Code
+		} else {
+			log.Warnf("buy order fail :msg=%s,r=%v", rp.Code, r)
+			p.SapStatus = 2
+			// pp.Print(r)
+		}
+	}
+	if p.SapStatus == 1 {
+		if e := s.d.DB.Where("id=?", p.ID).Updates(&model.BigBuyDetail{SrmStatus: p.SapStatus, SrmNumber: p.SapNumber}).Error; e != nil {
+			log.Errorf("update big buy detail error: %v", e)
+		}
+	}
 }

+ 13 - 0
apiserver/service/sap.go

@@ -43,6 +43,19 @@ func (s *Service) SyncSap(r http.SapDest, rp interface{}) (err error) {
 	}
 	s.http.SetBasicAuth(req)
 
+	if err = s.http.Do(req, &rp); err != nil {
+		err = errors.Wrapf(err, "SyncSap")
+	}
+	return
+}
+
+func (s *Service) SyncSrm(r http.SapDest, rp interface{}, data interface{}) (err error) {
+	req, e := s.http.NewRequest("POST", r.GetUrl(), data)
+	if e != nil {
+		return errors.Wrapf(e, "SyncSap")
+	}
+	s.http.SetSrmBasicAuth(req)
+
 	if err = s.http.Do(req, rp); err != nil {
 		err = errors.Wrapf(err, "SyncSap")
 	}

BIN
cmd/main → cmd/cmd.exe


+ 1 - 1
cmd/conf/app.ini

@@ -67,7 +67,7 @@ User = root
 #####本地
 Password = kepaiteng!QAZ
 Host = 222.73.129.15:31306
-Name = eq2
+Name = eq
 TablePrefix =
 
 ShowXormlog = true

+ 4 - 2
cmd/conf/conf.toml

@@ -1,6 +1,6 @@
 [db]
 # dsn = "eq:Xdmy@1234@tcp(192.168.61.42:3306)/eq?charset=utf8&parseTime=True&loc=Local"
-dsn = "root:kepaiteng!QAZ@tcp(222.73.129.15:31306)/eq2?charset=utf8&parseTime=True&loc=Local"
+dsn = "root:kepaiteng!QAZ@tcp(222.73.129.15:31306)/eq1017?charset=utf8&parseTime=True&loc=Local"
 idle = 5
 idle_timeout = 3600
 [http]
@@ -8,4 +8,6 @@ timeout =600
 # sapname ="zinf_user"
 # sappwd ="init@1234"
 sapname ="zinf_sheb"
-sappwd ="zinf_sheb@1234"
+sappwd ="zinf_sheb@1234"
+srmname= "PEC"
+srmpwd = "weXnKdt4epafY2dDRJCGGcbkeQ7MNPYS"

+ 3 - 0
cmd/linux.bat

@@ -0,0 +1,3 @@
+set GOARCH=amd64
+set GOOS=linux
+go build -o eq

+ 0 - 0
cmd/logs/log20221014-132950.log


+ 1 - 0
cmd/logs/log20221014-133002.log

@@ -0,0 +1 @@
+[INFO][db.go:168]2022/10/14 13:31:03 [GetDataByName map[jwt_username:00611] 127.0.0.1:59667 getStockPastureList {"brandName":"","contractCode":"","isZeroStock":"","location":"","partCode":"14.03.02.05.000171","partName":"","pastureName":"汶上牧场","reportery":0,"specification":"","statue":"","warnings":""}]

+ 32 - 0
cmd/logs/log20221014-134051.log

@@ -0,0 +1,32 @@
+[INFO][db.go:168]2022/10/14 17:27:55 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61412 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:27:55 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61416 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:27:55 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61415 gethomepagemenu {}]
+[INFO][db.go:512]2022/10/14 17:27:56 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:61413 getmenu map[id:-1 jwt_username:00611]]
+[INFO][db.go:168]2022/10/14 17:27:57 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61413 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:512]2022/10/14 17:27:57 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:61412 getmenu map[id:-1 jwt_username:00611]]
+[INFO][db.go:168]2022/10/14 17:27:57 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61416 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:512]2022/10/14 17:28:28 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:61412 getmenu map[id:-1 jwt_username:00611]]
+[INFO][db.go:168]2022/10/14 17:28:29 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61416 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:28:29 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61415 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:29:26 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61415 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:29:26 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61416 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:512]2022/10/14 17:29:26 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:61412 getmenu map[id:-1 jwt_username:00611]]
+[INFO][db.go:168]2022/10/14 17:32:56 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61415 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:32:56 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61412 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:32:56 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61679 gethomepagemenu {}]
+[INFO][db.go:512]2022/10/14 17:32:56 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:61675 getmenu map[id:-1 jwt_username:00611]]
+[INFO][db.go:168]2022/10/14 17:32:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61678 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:32:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61412 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:512]2022/10/14 17:32:58 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:61415 getmenu map[id:-1 jwt_username:00611]]
+[INFO][db.go:168]2022/10/14 17:32:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61678 gethomepagemenu {}]
+[INFO][db.go:512]2022/10/14 17:32:59 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:61415 getmenu map[id:-1 jwt_username:00611]]
+[INFO][db.go:168]2022/10/14 17:32:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61678 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:32:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61412 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:32:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61678 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:32:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61415 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:32:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61678 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/14 17:32:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61675 gethomepagemenu {}]
+[INFO][db.go:512]2022/10/14 17:33:00 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:61415 getmenu map[id:-1 jwt_username:00611]]
+[INFO][db.go:168]2022/10/14 17:33:00 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61415 gethomepagemenu {}]
+[INFO][db.go:168]2022/10/14 17:33:00 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61679 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:512]2022/10/14 17:33:01 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:61694 getmenu map[id:-1 jwt_username:00611]]

+ 0 - 0
cmd/logs/log20221017-140828.log


+ 0 - 0
cmd/logs/log20221017-140917.log


+ 3 - 0
cmd/logs/log20221017-141104.log

@@ -0,0 +1,3 @@
+[INFO][db.go:168]2022/10/17 14:12:23 [GetDataByName map[jwt_username:11122] 127.0.0.1:61835 getPartApplyByBig {"id":215658,"pastureId":"628"}]
+[INFO][db.go:168]2022/10/17 14:12:51 [GetDataByName map[jwt_username:11122] 127.0.0.1:61835 getPartApplyByBig {"id":215658,"pastureId":"628"}]
+[INFO][db.go:168]2022/10/17 14:14:28 [GetDataByName map[jwt_username:11122] 127.0.0.1:61835 getPartApplyByBig {"id":215658,"pastureId":"628"}]

+ 26 - 0
cmd/logs/log20221017-152208.log

@@ -0,0 +1,26 @@
+[INFO][db.go:168]2022/10/17 15:22:14 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50927 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 15:22:33 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50928 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 15:22:37 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50930 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 15:22:37 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50927 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 15:22:38 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50956 gethomepagemenu {}]
+[INFO][db.go:168]2022/10/17 15:22:39 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50956 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 15:22:39 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50927 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:512]2022/10/17 15:22:39 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:50931 getmenu map[id:21 jwt_username:00611]]
+[INFO][db.go:512]2022/10/17 15:22:40 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:50951 getmenu map[id:21 jwt_username:00611]]
+[INFO][db.go:168]2022/10/17 15:22:40 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50967 gethomepagemenu {}]
+[INFO][db.go:512]2022/10/17 15:22:46 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:50963 getmenu map[id:21 jwt_username:00611]]
+[INFO][db.go:646]2022/10/17 15:22:46 [GetReportform  map[content-type:application/json jwt_username:00611] homepagePastureInfor 0xc000f7caa0]
+[INFO][db.go:168]2022/10/17 15:22:46 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50963 homepageRate {"pastureName":"现代牧业"}]
+[INFO][db.go:646]2022/10/17 15:22:46 [GetReportform  map[content-type:application/json jwt_username:00611] homepageEqstatus 0xc000f7df40]
+[INFO][db.go:168]2022/10/17 15:22:46 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50927 homepageUkdoneRatePasture {}]
+[INFO][db.go:646]2022/10/17 15:22:50 [GetReportform  map[content-type:application/json jwt_username:00611] homepageEqRunstatueListPasture 0xc00119e870]
+[INFO][db.go:646]2022/10/17 15:22:50 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeWX 0xc00119ecd0]
+[INFO][db.go:646]2022/10/17 15:22:56 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeWater 0xc00124a3c0]
+[INFO][db.go:168]2022/10/17 15:22:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50963 getRoleall {"pastureId":"18"}]
+[INFO][db.go:646]2022/10/17 15:22:58 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeElec 0xc00119fdb0]
+[INFO][db.go:188]2022/10/17 15:23:01 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50956 getMenuByRole [0xc001511270]]
+[INFO][db.go:646]2022/10/17 15:23:01 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeDiesel 0xc00124af50]
+[INFO][db.go:512]2022/10/17 15:23:20 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:50927 getMenuandButtonRecuRule map[params:[31]]]
+[INFO][db.go:168]2022/10/17 15:24:29 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50963 getRoleall {"pastureId":"18"}]
+[INFO][db.go:512]2022/10/17 15:24:49 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:50963 getMenuandButtonRecuRule map[params:[31]]]
+[INFO][db.go:188]2022/10/17 15:25:13 [GetDataByName map[jwt_username:11122] 127.0.0.1:51209 getMenuByRole [0xc00166b220]]

+ 3 - 0
cmd/logs/log20221017-152805.log

@@ -0,0 +1,3 @@
+[INFO][db.go:188]2022/10/17 15:28:13 [GetDataByName map[jwt_username:11122] 127.0.0.1:51552 getMenuByRole [0xc0002618b0]]
+[INFO][db.go:188]2022/10/17 15:33:38 [GetDataByName map[jwt_username:11122] 127.0.0.1:51969 getMenuByRole [0xc000fca870]]
+[INFO][db.go:188]2022/10/17 15:33:44 [GetDataByName map[jwt_username:11122] 127.0.0.1:51969 getMenuByRole [0xc0005a35e0]]

+ 0 - 0
cmd/logs/log20221017-153604.log


+ 3 - 0
cmd/logs/log20221017-153846.log

@@ -0,0 +1,3 @@
+[INFO][db.go:188]2022/10/17 15:38:46 [GetDataByName map[jwt_username:11122] 127.0.0.1:53049 getMenuByRole [0xc000070af0]]
+[INFO][db.go:188]2022/10/17 15:39:39 [GetDataByName map[jwt_username:11122] 127.0.0.1:53049 getMenuByRole [0xc000210dc0]]
+[INFO][db.go:188]2022/10/17 15:39:52 [GetDataByName map[jwt_username:11122] 127.0.0.1:53049 getMenuByRole [0xc000071bd0]]

+ 1 - 0
cmd/logs/log20221017-154654.log

@@ -0,0 +1 @@
+[INFO][db.go:188]2022/10/17 15:47:21 [GetDataByName map[jwt_username:11122] 127.0.0.1:53699 getMenuByRole [0xc00046c000]]

+ 1 - 0
cmd/logs/log20221017-154757.log

@@ -0,0 +1 @@
+[INFO][db.go:188]2022/10/17 15:48:08 [GetDataByName map[jwt_username:11122] 127.0.0.1:53754 getMenuByRole [0xc0000705a0]]

+ 1 - 0
cmd/logs/log20221017-154831.log

@@ -0,0 +1 @@
+[INFO][db.go:188]2022/10/17 15:48:32 [GetDataByName map[jwt_username:11122] 127.0.0.1:53793 getMenuByRole [0xc0000cc4b0]]

+ 1 - 0
cmd/logs/log20221017-155100.log

@@ -0,0 +1 @@
+[INFO][db.go:188]2022/10/17 15:51:03 [GetDataByName map[jwt_username:11122] 127.0.0.1:54027 getMenuByRole [0xc00024ed20]]

+ 6 - 0
cmd/logs/log20221017-161754.log

@@ -0,0 +1,6 @@
+[INFO][db.go:188]2022/10/17 16:17:55 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:57143 getMenuByRole [0xc0003580f0]]
+[INFO][db.go:168]2022/10/17 16:17:55 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:57146 getRoleall {"pastureId":"18"}]
+[INFO][db.go:188]2022/10/17 16:17:57 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:57143 getMenuByRole [0xc000590820]]
+[INFO][db.go:168]2022/10/17 16:17:58 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:57143 getRoleall {"pastureId":"18"}]
+[INFO][db.go:525]2022/10/17 16:18:20 [sqlname parammaps map[content-type:application/json jwt_username:00611] 127.0.0.1:57143 getMenuandButtonRecuRule map[params:[31]]]
+[INFO][db.go:525]2022/10/17 16:18:20 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:57146 getMenuandButtonRecuRule map[params:[31]]]

+ 0 - 0
cmd/logs/log20221017-163512.log


+ 0 - 0
cmd/logs/log20221017-163822.log


+ 0 - 0
cmd/logs/log20221017-164326.log


+ 0 - 0
cmd/logs/log20221017-164637.log


+ 2 - 0
cmd/logs/log20221017-164936.log

@@ -0,0 +1,2 @@
+[ERROR][db.go:226]2022/10/17 17:03:33 [GetDataByName  err:  dial tcp 222.73.129.15:31306: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.]
+[ERROR][db.go:226]2022/10/17 17:03:33 [GetDataByName  err:  dial tcp 222.73.129.15:31306: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.]

+ 257 - 0
cmd/logs/log20221017-170608.log

@@ -0,0 +1,257 @@
+[INFO][db.go:168]2022/10/17 17:09:45 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:09:45 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:09:45 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65456 gethomepagemenu {}]
+[INFO][db.go:525]2022/10/17 17:09:48 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:65303 getmenu map[id:21 jwt_username:00611]]
+[INFO][db.go:168]2022/10/17 17:09:49 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65303 getRoleall {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/17 17:10:03 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:65456]
+[INFO][db.go:168]2022/10/17 17:10:04 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/17 17:10:04 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:10:04 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65303 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:10:04 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:10:04 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65303 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:10:05 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/17 17:10:06 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:65456]
+[INFO][db.go:525]2022/10/17 17:10:11 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:65445 getMenuandButtonRecuRule map[params:[27]]]
+[INFO][db.go:552]2022/10/17 17:10:16 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:65444]
+[INFO][db.go:168]2022/10/17 17:10:16 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65456 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/17 17:10:16 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:168]2022/10/17 17:10:16 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65445 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:10:17 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65445 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:552]2022/10/17 17:10:17 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:65444]
+[INFO][db.go:168]2022/10/17 17:10:17 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:552]2022/10/17 17:10:17 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:65444]
+[INFO][db.go:552]2022/10/17 17:10:17 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:65444]
+[INFO][db.go:168]2022/10/17 17:10:17 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/17 17:10:19 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 getPartsListSG {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:10:23 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 getPartsListSGFlex {"pastureId":"18","providerId":"1975","providerName":"北京京东"}]
+[INFO][db.go:1904]2022/10/17 17:10:28 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:65473 map[returnmap:0] [map[name:insertBigPartpurchase parammaps:map[createTime:2022-10-17 departmentId:20 employeId:3 orderNumber:SG00221017001 pastureId:18 providerId:1975] type:e] map[children:[map[name:insertPartpurchase parammaps:map[amount:@insertSpotList.amount bigId:@insertBigPartpurchase.LastInsertId brandId:@insertSpotList.brandId contractId:@insertSpotList.contractId partCode:@insertSpotList.partCode partId:@insertSpotList.partId partName:@insertSpotList.partName pastureId:@insertSpotList.pastureId price:@insertSpotList.price purpose:@insertSpotList.purpose specification:@insertSpotList.specification storageAmount:@insertSpotList.reportery unit:@insertSpotList.unit] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 brandId:8308 brandName:北京京东 contractId:-181975468380 id:468380 partCode:14.01.01.01.000003 partId:468380 partName:UPS电源 pastureId:18 picpath: price:1 purpose:1 reportery:0.00 specification:C2K/2KV/1.4KW srcpath: unit:台]]]]]]
+[INFO][db.go:168]2022/10/17 17:10:29 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/17 17:10:29 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/17 17:10:33 [PostDataByName  map[content-type:application/json jwt_username:00611] [::1]:65473 partpurchaseCharge {"empId":"3","id":53099,"statue":3,"workflowNote":""}]
+[INFO][db.go:168]2022/10/17 17:10:33 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/17 17:10:36 [PostDataByName  map[content-type:application/json jwt_username:00611] [::1]:65473 partpurchaseCharge3 {"empId":"3","id":53099,"statue":5,"workflowNote":""}]
+[INFO][db.go:168]2022/10/17 17:10:36 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1904]2022/10/17 17:10:38 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:65473 map[returnmap:0] [map[name:partpurchaseCharge1 parammaps:map[empId:3 id:53099 statue:7 workflowNote:] type:e] map[name:createBuydetailBySG parammaps:map[id:53099 pastureId:18] type:e]]]
+[INFO][db.go:1904]2022/10/17 17:10:39 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:65304 map[returnmap:0] [map[name:partpurchaseCharge1 parammaps:map[empId:3 id:53099 statue:7 workflowNote:] type:e] map[name:createBuydetailBySG parammaps:map[id:53099 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/17 17:10:39 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/17 17:10:40 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/17 17:10:42 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:65473]
+[INFO][db.go:168]2022/10/17 17:10:43 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:10:43 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65445 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:10:43 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65303 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:10:44 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/17 17:10:44 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65456 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:10:44 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65445 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:552]2022/10/17 17:10:45 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:65473]
+[INFO][db.go:168]2022/10/17 17:10:46 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:168]2022/10/17 17:10:48 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/17 17:10:49 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65456 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:10:49 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":""}]
+[INFO][db.go:168]2022/10/17 17:10:52 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":""}]
+[INFO][db.go:168]2022/10/17 17:10:53 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65456 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/17 17:10:53 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/17 17:10:57 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:65445]
+[INFO][db.go:168]2022/10/17 17:10:57 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:10:57 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65456 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:168]2022/10/17 17:10:57 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/17 17:10:57 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:65445]
+[INFO][db.go:552]2022/10/17 17:10:57 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:65445]
+[INFO][db.go:552]2022/10/17 17:10:58 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:65445]
+[INFO][db.go:168]2022/10/17 17:10:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65445 findAllDepart {"eId":"3","pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:10:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/17 17:10:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65445 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:11:05 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/17 17:11:25 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:65445]
+[INFO][db.go:168]2022/10/17 17:11:25 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:11:25 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:11:25 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:11:26 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:552]2022/10/17 17:11:26 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:65445]
+[INFO][db.go:168]2022/10/17 17:11:26 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65456 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:11:28 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65303 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/17 17:11:47 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:65473]
+[INFO][db.go:168]2022/10/17 17:11:47 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65303 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:11:48 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65456 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:168]2022/10/17 17:11:48 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/17 17:11:50 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:65473]
+[INFO][db.go:552]2022/10/17 17:11:50 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:65473]
+[INFO][db.go:552]2022/10/17 17:11:51 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:65473]
+[INFO][db.go:168]2022/10/17 17:11:51 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 findAllDepart {"eId":"3","pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:11:53 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65473 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/17 17:11:53 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65456 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:11:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65456 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/17 17:12:00 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:65473]
+[INFO][db.go:168]2022/10/17 17:12:00 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65456 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:12:00 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:12:00 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65303 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:12:00 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:12:00 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65304 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/17 17:12:01 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65445 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:552]2022/10/17 17:12:01 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:65473]
+[INFO][db.go:552]2022/10/17 17:12:05 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:65473]
+[INFO][db.go:168]2022/10/17 17:12:05 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65445 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:12:05 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65303 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:552]2022/10/17 17:12:06 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:65473]
+[INFO][db.go:552]2022/10/17 17:12:06 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:65473]
+[INFO][db.go:168]2022/10/17 17:12:06 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/17 17:12:07 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:65473]
+[INFO][db.go:168]2022/10/17 17:12:07 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65444 findAllDepart {"eId":"3","pastureId":"18"}]
+[INFO][db.go:552]2022/10/17 17:19:22 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:49715]
+[INFO][db.go:168]2022/10/17 17:19:22 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49989 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":0,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:168]2022/10/17 17:19:22 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49714 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:19:23 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49988 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":2,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:552]2022/10/17 17:19:24 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllAssetType [::1]:49715]
+[INFO][db.go:552]2022/10/17 17:19:24 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:49715]
+[INFO][db.go:552]2022/10/17 17:19:24 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPastureForContract [::1]:49715]
+[INFO][db.go:552]2022/10/17 17:19:24 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllDepart [::1]:49715]
+[ERROR][db.go:598]2022/10/17 17:19:24 [GetDataByNames  err:  Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? AND a.isPasture = '0' and isDel = 0 and enable = 1' at line 1]
+[INFO][db.go:552]2022/10/17 17:19:24 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:49715]
+[INFO][db.go:552]2022/10/17 17:19:24 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllCategory [::1]:49715]
+[INFO][db.go:168]2022/10/17 17:19:25 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49715 autoCreatCode {"codeType":"HT","pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:19:28 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49988 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":2,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:552]2022/10/17 17:19:30 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:49715]
+[INFO][db.go:168]2022/10/17 17:19:30 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49988 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:19:30 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49714 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/17 17:19:30 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49989 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:552]2022/10/17 17:19:30 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:49715]
+[INFO][db.go:552]2022/10/17 17:19:30 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:49715]
+[INFO][db.go:168]2022/10/17 17:19:31 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49714 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:19:31 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49989 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:552]2022/10/17 17:19:32 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:49715]
+[INFO][db.go:168]2022/10/17 17:19:33 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49715 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/17 17:19:51 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49714 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/17 17:19:58 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:49715]
+[INFO][db.go:168]2022/10/17 17:19:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49714 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:19:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50095 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:19:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49714 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:19:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49988 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/17 17:19:59 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:49715]
+[INFO][db.go:168]2022/10/17 17:19:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49989 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/17 17:19:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50093 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:31:20 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50553 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:31:20 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50552 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:31:21 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50788 gethomepagemenu {}]
+[INFO][db.go:525]2022/10/17 17:31:23 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:50787 getmenu map[id:21 jwt_username:00611]]
+[INFO][db.go:659]2022/10/17 17:31:23 [GetReportform  map[content-type:application/json jwt_username:00611] homepagePastureInfor 0xc00111ea00]
+[INFO][db.go:168]2022/10/17 17:31:23 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50787 homepageRate {"pastureName":"现代牧业"}]
+[INFO][db.go:659]2022/10/17 17:31:23 [GetReportform  map[content-type:application/json jwt_username:00611] homepageEqstatus 0xc001bb6190]
+[INFO][db.go:168]2022/10/17 17:31:24 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50552 homepageUkdoneRatePasture {}]
+[INFO][db.go:659]2022/10/17 17:31:25 [GetReportform  map[content-type:application/json jwt_username:00611] homepageEqRunstatueListPasture 0xc001023bd0]
+[INFO][db.go:659]2022/10/17 17:31:25 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeWX 0xc001233040]
+[INFO][db.go:552]2022/10/17 17:31:29 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:50787]
+[INFO][db.go:168]2022/10/17 17:31:29 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50553 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:31:30 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50788 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":2,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:168]2022/10/17 17:31:30 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50809 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":0,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:552]2022/10/17 17:31:30 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllAssetType [::1]:50787]
+[INFO][db.go:552]2022/10/17 17:31:30 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:50787]
+[INFO][db.go:168]2022/10/17 17:31:30 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50553 autoCreatCode {"codeType":"HT","pastureId":"18"}]
+[INFO][db.go:552]2022/10/17 17:31:30 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPastureForContract [::1]:50787]
+[INFO][db.go:552]2022/10/17 17:31:31 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllDepart [::1]:50787]
+[ERROR][db.go:598]2022/10/17 17:31:31 [GetDataByNames  err:  Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? AND a.isPasture = '0' and isDel = 0 and enable = 1' at line 1]
+[INFO][db.go:552]2022/10/17 17:31:31 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:50787]
+[INFO][db.go:552]2022/10/17 17:31:31 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllCategory [::1]:50787]
+[INFO][db.go:659]2022/10/17 17:31:34 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeWater 0xc0016db0e0]
+[INFO][db.go:659]2022/10/17 17:31:35 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeElec 0xc0016db540]
+[INFO][db.go:659]2022/10/17 17:31:36 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeDiesel 0xc00142b900]
+[INFO][db.go:1904]2022/10/17 17:31:44 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:50552 map[returnmap:0] [map[name:checkbigcontract parammaps:map[pastureId:18 providerId:2990] type:v] map[name:insertBigContractV2 parammaps:map[SHtype:0 contractCode:BJ0022100003 creatorId:3 creatorMan:系统管理员 creatorTime:2022-10-17 isZeroStock:0 pastureId:18 providerId:2990 providerName:上海强尼传动 startTime:2022-10-17 statue:1 stopTime:2022-10-19] type:e] map[children:[map[name:insertPastureBigcontract parammaps:map[bigcontractId:@insertBigContractV2.LastInsertId pastureId:@insertSpotList.pastureId] type:e]] name:insertSpotList resultmaps:map[list:[map[pastureId:18]]]]]]
+[INFO][db.go:168]2022/10/17 17:31:45 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50788 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":0,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:168]2022/10/17 17:31:45 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50552 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":2,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:168]2022/10/17 17:31:50 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50552 providerPactListSH {"SHStatus":"","SHnums":2,"SHtype":"","contractCode":"","flag":607,"isZeroStock":0,"loginid":"3","pastureId":18,"providerId":3023,"startTime":"","statue":1,"stopTime":"","stopTime1":"2022-10-27","stuteSH":"","tab1InputDatetime3":""}]
+[INFO][db.go:168]2022/10/17 17:31:53 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50552 providerPactListSH {"SHStatus":"","SHnums":0,"SHtype":"","contractCode":"","flag":607,"isZeroStock":0,"loginid":"3","pastureId":18,"providerId":3023,"statue":1,"stopTime1":"2022-10-27","stuteSH":"","tab1InputDatetime3":""}]
+[INFO][db.go:552]2022/10/17 17:31:56 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:50552]
+[INFO][db.go:168]2022/10/17 17:31:57 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50788 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:31:57 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50787 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":0,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:552]2022/10/17 17:31:57 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllAssetType [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:31:58 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:50552]
+[INFO][db.go:168]2022/10/17 17:31:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50809 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":2,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:552]2022/10/17 17:31:58 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPastureForContract [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:31:58 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllDepart [::1]:50552]
+[ERROR][db.go:598]2022/10/17 17:31:58 [GetDataByNames  err:  Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? AND a.isPasture = '0' and isDel = 0 and enable = 1' at line 1]
+[INFO][db.go:552]2022/10/17 17:31:58 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:31:59 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllCategory [::1]:50552]
+[INFO][db.go:168]2022/10/17 17:32:05 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50809 getcontratListBybigV2 {"flag":607,"isZeroStock":0,"partCode":"","partName":"","pastureId":18,"providerId":3023,"specification":"","statue":1,"stopTime":"2022-10-27"}]
+[INFO][db.go:552]2022/10/17 17:32:09 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProviderByCt [::1]:50552]
+[INFO][db.go:525]2022/10/17 17:32:09 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:50787 getStockTypeList map[params:[-1]]]
+[INFO][db.go:552]2022/10/17 17:32:10 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:50787]
+[INFO][db.go:168]2022/10/17 17:32:10 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50858 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:32:10 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50858 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":0,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:168]2022/10/17 17:32:10 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50809 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":2,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:168]2022/10/17 17:32:11 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50553 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:552]2022/10/17 17:32:12 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllAssetType [::1]:50787]
+[INFO][db.go:552]2022/10/17 17:32:12 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:50787]
+[INFO][db.go:552]2022/10/17 17:32:12 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPastureForContract [::1]:50787]
+[INFO][db.go:552]2022/10/17 17:32:12 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllDepart [::1]:50787]
+[ERROR][db.go:598]2022/10/17 17:32:12 [GetDataByNames  err:  Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? AND a.isPasture = '0' and isDel = 0 and enable = 1' at line 1]
+[INFO][db.go:552]2022/10/17 17:32:12 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:50787]
+[INFO][db.go:168]2022/10/17 17:32:13 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50788 getStockPastureList {"brandName":"","contractCode":"","isZeroStock":"","location":"","partCode":"","partName":"","pastureName":"现代牧业","reportery":1,"specification":"","statue":"","warnings":""}]
+[INFO][db.go:552]2022/10/17 17:32:15 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllCategory [::1]:50787]
+[INFO][db.go:168]2022/10/17 17:32:16 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50787 getBigcontractPId {"bigcontract_id":547086}]
+[INFO][db.go:552]2022/10/17 17:32:17 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllAssetType [::1]:50552]
+[INFO][db.go:168]2022/10/17 17:32:18 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50553 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":2,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:552]2022/10/17 17:32:18 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:32:18 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllDepart [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:32:18 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:32:20 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllCategory [::1]:50552]
+[INFO][db.go:168]2022/10/17 17:32:23 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50788 providerPactListSH {"SHStatus":"","SHnums":2,"SHtype":"","contractCode":"","flag":607,"isZeroStock":0,"loginid":"3","pastureId":18,"providerId":3023,"startTime":"","statue":1,"stopTime":"","stopTime1":"2022-10-27","stuteSH":"","tab1InputDatetime3":""}]
+[INFO][db.go:168]2022/10/17 17:32:25 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50788 getcontratListBybigSH {"id":547087}]
+[INFO][db.go:552]2022/10/17 17:32:36 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:50858]
+[INFO][db.go:168]2022/10/17 17:32:36 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50788 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:32:36 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50552 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/17 17:32:37 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:50858]
+[INFO][db.go:552]2022/10/17 17:32:37 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:50858]
+[INFO][db.go:552]2022/10/17 17:32:38 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:50858]
+[INFO][db.go:168]2022/10/17 17:32:38 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50858 findAllDepart {"eId":"3","pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:32:39 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50552 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:32:39 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50858 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/17 17:32:39 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50553 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:168]2022/10/17 17:32:41 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50552 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/17 17:32:45 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50552 getpartpurchaseBybig {"id":53100}]
+[INFO][db.go:552]2022/10/17 17:33:06 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:50552]
+[INFO][db.go:168]2022/10/17 17:33:07 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50858 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":2,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:168]2022/10/17 17:33:07 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50553 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:33:07 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50788 providerPactListV2 {"SHdateTimeE":"","SHdateTimeF":"","SHnums":0,"contractCode":"","loginid":"3","pastureName":"现代牧业","providerName":"","startTime":"","statue":"","stopTime":"","stuteSH":"","tab1InputDatetime1":"","tab1InputDatetime2":""}]
+[INFO][db.go:552]2022/10/17 17:33:10 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllAssetType [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:33:10 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:33:10 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPastureForContract [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:33:10 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllDepart [::1]:50552]
+[ERROR][db.go:598]2022/10/17 17:33:10 [GetDataByNames  err:  Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? AND a.isPasture = '0' and isDel = 0 and enable = 1' at line 1]
+[INFO][db.go:552]2022/10/17 17:33:10 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:33:12 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllCategory [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:33:22 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProviderByCt [::1]:50552]
+[INFO][db.go:168]2022/10/17 17:33:22 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50958 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:33:22 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50553 getStockPastureList {"brandName":"","contractCode":"","isZeroStock":"","location":"","partCode":"","partName":"","pastureName":"现代牧业","reportery":1,"specification":"","statue":"","warnings":""}]
+[INFO][db.go:552]2022/10/17 17:33:22 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllAssetType [::1]:50552]
+[INFO][db.go:525]2022/10/17 17:33:22 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:50788 getStockTypeList map[params:[-1]]]
+[INFO][db.go:552]2022/10/17 17:33:22 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:33:22 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllDepart [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:33:22 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:50552]
+[INFO][db.go:552]2022/10/17 17:33:24 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:50788]
+[INFO][db.go:168]2022/10/17 17:33:24 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50858 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:168]2022/10/17 17:33:24 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50958 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:33:25 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50964 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/17 17:33:26 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50964 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/17 17:33:26 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50958 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:552]2022/10/17 17:33:26 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:50788]
+[INFO][db.go:552]2022/10/17 17:33:26 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:50788]
+[INFO][db.go:168]2022/10/17 17:33:27 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50958 getPartsListSG {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/17 17:33:28 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:50788]
+[INFO][db.go:168]2022/10/17 17:33:28 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50788 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:552]2022/10/17 17:33:28 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllCategory [::1]:50552]
+[INFO][db.go:168]2022/10/17 17:33:32 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50958 getPartsListSGv2 {"partCode":"14.01.01.01.000003","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/17 17:33:36 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:50958 map[returnmap:0] [map[name:insertBigPartpurchase parammaps:map[createTime:2022-10-17 departmentId:20 employeId:3 orderNumber:SG00221017008 pastureId:18 providerId:] type:e] map[children:[map[name:insertPartpurchase parammaps:map[amount:@insertSpotList.amount bigId:@insertBigPartpurchase.LastInsertId brandId:@insertSpotList.brandId contractId:@insertSpotList.contractId partCode:@insertSpotList.partCode partId:@insertSpotList.partId partName:@insertSpotList.partName pastureId:@insertSpotList.pastureId price:@insertSpotList.price purpose:@insertSpotList.purpose specification:@insertSpotList.specification storageAmount:@insertSpotList.reportery unit:@insertSpotList.unit] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 bigId:547087 brand:赛娜牧业 brandId:1982 brandName:赛娜牧业 contractId:623971 enable:1 id:623971 inventoryType:1 isZeroStock:0 partCode:14.01.01.01.000003 partId:468380 partName:UPS电源 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:   1.00   purpose: remark: reportery:114.00 specification:C2K/2KV/1.4KW srcpath: unit:台]]]]]]
+[INFO][db.go:168]2022/10/17 17:33:36 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50958 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/17 17:33:36 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50552 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/17 17:33:49 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:50958]
+[INFO][db.go:168]2022/10/17 17:33:49 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50552 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/17 17:33:49 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50858 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:33:50 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50552 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:552]2022/10/17 17:33:50 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:50958]
+[INFO][db.go:168]2022/10/17 17:33:51 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50964 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/17 17:33:51 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50553 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/17 17:33:52 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50788 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:1904]2022/10/17 17:33:56 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:50788 map[returnmap:0] [map[name:autoCreatCode parammaps:map[codeType:CG pastureId:18] type:sm]]]
+[INFO][db.go:168]2022/10/17 17:33:56 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50553 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/17 17:33:58 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:50553 map[returnmap:0] [map[name:insertBigbuydetail parammaps:map[buyeCode:CG00221017003 buyerDate:2022-10-17 buyerPerson:3 matchCode:PD00221017001 pastureId:18 providerId:3023] resultname:insertBigbuydetail0 type:e] map[children:[map[name:insertbuydetail parammaps:map[amount:@insertSpotList.amount bigId:@insertBigbuydetail0.LastInsertId contractCode:@insertSpotList.contractCode contractId:@insertSpotList.id departmentName:@insertSpotList.departmentName pastureId:@insertSpotList.pastureId remark:@insertSpotList.purpose sumAmount:@insertSpotList.sumAmount] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 amountPre:0 bigId:547087 brand:胜动济柴/中国 brandId:1981 contractCode:BJ0022100002-001 departmentName:信息部 enable:1 id:623970 inventoryType:1 isNo:Yes isParity:0 isZeroStock:0 orderNumber:SG00221017006 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:1 providerId:3023 providerName:上海都比机械 purpose:1 remark: specification:60A srcpath: sumAmount:1 sumPrice:1 unit:个]]]] map[children:[map[name:updateBigpartpurchaseStatu parammaps:map[id:@insertSpotListbpp.id matchCode:PD00221017001] type:e]] name:insertSpotListbpp resultmaps:map[list:[map[id:53100 orderNumber:SG00221017006]]]] map[name:insertbigpartdeal parammaps:map[empId:3 matchCode:PD00221017001 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/17 17:33:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50553 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:1904]2022/10/17 17:34:02 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:50553 map[returnmap:0] [map[name:partdealCharge parammaps:map[empId:3 id:8130 statue:1 workflowNote:] type:e] map[name:updatebigbuydetailenable parammaps:map[matchCode:PD00221017001] type:e] map[name:updatebigbuydetailZero parammaps:map[matchCode:PD00221017001] type:e]]]
+[INFO][db.go:168]2022/10/17 17:34:02 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50553 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]

+ 0 - 0
cmd/logs/log20221017-173944.log


+ 0 - 0
cmd/logs/log20221017-174732.log


+ 0 - 0
cmd/logs/log20221018-115146.log


+ 0 - 0
cmd/logs/log20221018-122320.log


+ 0 - 0
cmd/logs/log20221018-122930.log


+ 0 - 0
cmd/logs/log20221018-123332.log


+ 0 - 0
cmd/logs/log20221018-123500.log


+ 0 - 0
cmd/logs/log20221018-123636.log


+ 0 - 0
cmd/logs/log20221018-123759.log


+ 0 - 0
cmd/logs/log20221018-123920.log


+ 0 - 0
cmd/logs/log20221018-132440.log


+ 0 - 0
cmd/logs/log20221018-141645.log


+ 0 - 0
cmd/logs/log20221018-141827.log


La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 159 - 0
cmd/logs/log20221018-144857.log


+ 0 - 0
cmd/logs/log20221018-150733.log


+ 0 - 0
cmd/logs/log20221018-151112.log


+ 0 - 0
cmd/logs/log20221018-151307.log


+ 0 - 0
cmd/logs/log20221018-151622.log


+ 0 - 0
cmd/logs/log20221018-152227.log


+ 0 - 0
cmd/logs/log20221018-152514.log


+ 0 - 0
cmd/logs/log20221018-152533.log


+ 0 - 0
cmd/logs/log20221018-153140.log


+ 0 - 0
cmd/logs/log20221018-153317.log


+ 0 - 0
cmd/logs/log20221018-153326.log


+ 0 - 0
cmd/logs/log20221018-153339.log


+ 36 - 0
cmd/logs/log20221018-153607.log

@@ -0,0 +1,36 @@
+[INFO][db.go:552]2022/10/18 15:37:51 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:52280]
+[INFO][db.go:168]2022/10/18 15:37:51 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52279 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 15:37:51 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52222 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:37:51 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52221 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 15:37:51 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:52280]
+[INFO][db.go:552]2022/10/18 15:37:51 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:52280]
+[INFO][db.go:552]2022/10/18 15:37:51 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:52280]
+[INFO][db.go:168]2022/10/18 15:37:51 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52280 findAllDepart {"eId":"3","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:37:52 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52280 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:37:52 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52222 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/18 15:37:53 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52280 getPartsListSG {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:37:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52280 getPartsListSGv2 {"partCode":"14.01.01.01.000001","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 15:38:00 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52280 map[returnmap:0] [map[name:insertBigPartpurchase parammaps:map[createTime:2022-10-18 departmentId:20 employeId:3 orderNumber:SG00221018002 pastureId:18 providerId:] type:e] map[children:[map[name:insertPartpurchase parammaps:map[amount:@insertSpotList.amount bigId:@insertBigPartpurchase.LastInsertId brandId:@insertSpotList.brandId contractId:@insertSpotList.contractId partCode:@insertSpotList.partCode partId:@insertSpotList.partId partName:@insertSpotList.partName pastureId:@insertSpotList.pastureId price:@insertSpotList.price purpose:@insertSpotList.purpose specification:@insertSpotList.specification storageAmount:@insertSpotList.reportery unit:@insertSpotList.unit] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 bigId:547087 brand:胜动济柴/中国 brandId:1981 brandName:胜动济柴/中国 contractId:623970 enable:1 id:623970 inventoryType:1 isZeroStock:0 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:   1.00   purpose:1 remark: reportery:40.00 specification:60A srcpath: unit:个]]]]]]
+[INFO][db.go:168]2022/10/18 15:38:01 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52280 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:38:01 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52221 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 15:38:04 [PostDataByName  map[content-type:application/json jwt_username:00611] [::1]:52221 partpurchaseCharge {"empId":"3","id":53103,"statue":3,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 15:38:04 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52221 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 15:38:06 [PostDataByName  map[content-type:application/json jwt_username:00611] [::1]:52221 partpurchaseCharge3 {"empId":"3","id":53103,"statue":5,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 15:38:06 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52221 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1904]2022/10/18 15:38:09 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52221 map[returnmap:0] [map[name:partpurchaseCharge1 parammaps:map[empId:3 id:53103 statue:7 workflowNote:] type:e] map[name:createBuydetailBySG parammaps:map[id:53103 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 15:38:09 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52221 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 15:38:12 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:52280]
+[INFO][db.go:168]2022/10/18 15:38:12 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52221 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 15:38:12 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52327 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 15:38:12 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52323 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 15:38:12 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52222 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/18 15:38:12 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52279 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:38:13 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52221 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:552]2022/10/18 15:38:13 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:52280]
+[INFO][db.go:1904]2022/10/18 15:38:17 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52323 map[returnmap:0] [map[name:autoCreatCode parammaps:map[codeType:CG pastureId:18] type:sm]]]
+[INFO][db.go:168]2022/10/18 15:38:17 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52279 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:38:18 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52280 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 15:38:19 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52280 map[returnmap:0] [map[name:insertBigbuydetail parammaps:map[buyeCode:CG00221018003 buyerDate:2022-10-18 buyerPerson:3 matchCode:PD00221018004 pastureId:18 providerId:3023] resultname:insertBigbuydetail0 type:e] map[children:[map[name:insertbuydetail parammaps:map[amount:@insertSpotList.amount bigId:@insertBigbuydetail0.LastInsertId contractCode:@insertSpotList.contractCode contractId:@insertSpotList.id departmentName:@insertSpotList.departmentName pastureId:@insertSpotList.pastureId remark:@insertSpotList.purpose sumAmount:@insertSpotList.sumAmount] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 amountPre:0 bigId:547087 brand:胜动济柴/中国 brandId:1981 contractCode:BJ0022100002-001 departmentName:信息部 enable:1 id:623970 inventoryType:1 isNo:Yes isParity:0 isZeroStock:0 orderNumber:SG00221018002 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:1 providerId:3023 providerName:上海都比机械 purpose:1 remark: specification:60A srcpath: sumAmount:1 sumPrice:1 unit:个]]]] map[children:[map[name:updateBigpartpurchaseStatu parammaps:map[id:@insertSpotListbpp.id matchCode:PD00221018004] type:e]] name:insertSpotListbpp resultmaps:map[list:[map[id:53103 orderNumber:SG00221018002]]]] map[name:insertbigpartdeal parammaps:map[empId:3 matchCode:PD00221018004 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 15:38:20 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52280 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:1904]2022/10/18 15:38:23 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52279 map[returnmap:0] [map[name:partdealCharge parammaps:map[empId:3 id:8132 statue:1 workflowNote:] type:e] map[name:updatebigbuydetailenable parammaps:map[matchCode:PD00221018004] type:e] map[name:updatebigbuydetailZero parammaps:map[matchCode:PD00221018004] type:e]]]
+[INFO][db.go:168]2022/10/18 15:38:23 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52279 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]

+ 39 - 0
cmd/logs/log20221018-154015.log

@@ -0,0 +1,39 @@
+[INFO][db.go:552]2022/10/18 15:40:27 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:52404]
+[INFO][db.go:168]2022/10/18 15:40:27 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52405 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 15:40:27 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52412 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:40:28 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52417 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:40:28 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52405 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/18 15:40:28 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52410 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:40:29 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52417 getPartsListSG {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/18 15:40:31 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:52404]
+[INFO][db.go:552]2022/10/18 15:40:31 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:52404]
+[INFO][db.go:552]2022/10/18 15:40:32 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:52404]
+[INFO][db.go:168]2022/10/18 15:40:32 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52404 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/18 15:40:34 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52417 getPartsListSGv2 {"partCode":"14.01.01.01.000001","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 15:40:36 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52417 map[returnmap:0] [map[name:insertBigPartpurchase parammaps:map[createTime:2022-10-18 departmentId:20 employeId:3 orderNumber:SG00221018003 pastureId:18 providerId:] type:e] map[children:[map[name:insertPartpurchase parammaps:map[amount:@insertSpotList.amount bigId:@insertBigPartpurchase.LastInsertId brandId:@insertSpotList.brandId contractId:@insertSpotList.contractId partCode:@insertSpotList.partCode partId:@insertSpotList.partId partName:@insertSpotList.partName pastureId:@insertSpotList.pastureId price:@insertSpotList.price purpose:@insertSpotList.purpose specification:@insertSpotList.specification storageAmount:@insertSpotList.reportery unit:@insertSpotList.unit] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 bigId:547087 brand:胜动济柴/中国 brandId:1981 brandName:胜动济柴/中国 contractId:623970 enable:1 id:623970 inventoryType:1 isZeroStock:0 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:   1.00   purpose: remark: reportery:40.00 specification:60A srcpath: unit:个]]]]]]
+[INFO][db.go:168]2022/10/18 15:40:38 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52417 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:40:38 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52404 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 15:40:40 [PostDataByName  map[content-type:application/json jwt_username:00611] [::1]:52404 partpurchaseCharge {"empId":"3","id":53104,"statue":3,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 15:40:40 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52404 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 15:40:42 [PostDataByName  map[content-type:application/json jwt_username:00611] [::1]:52404 partpurchaseCharge3 {"empId":"3","id":53104,"statue":5,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 15:40:42 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52404 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1904]2022/10/18 15:40:44 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52404 map[returnmap:0] [map[name:partpurchaseCharge1 parammaps:map[empId:3 id:53104 statue:7 workflowNote:] type:e] map[name:createBuydetailBySG parammaps:map[id:53104 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 15:40:44 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52404 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 15:40:47 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:52417]
+[INFO][db.go:168]2022/10/18 15:40:47 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52410 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/18 15:40:48 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52410 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 15:40:48 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52404 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 15:40:48 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52438 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 15:40:48 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52405 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 15:40:49 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52412 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/18 15:40:49 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:52417]
+[INFO][db.go:1904]2022/10/18 15:40:51 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52417 map[returnmap:0] []]
+[INFO][db.go:168]2022/10/18 15:40:51 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52412 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:40:52 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52412 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/18 15:40:52 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52417 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 15:40:53 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52405 map[returnmap:0] [map[name:autoCreatCode parammaps:map[codeType:CG pastureId:18] type:sm]]]
+[INFO][db.go:168]2022/10/18 15:40:53 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52412 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 15:40:54 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52417 map[returnmap:0] [map[name:insertBigbuydetail parammaps:map[buyeCode:CG00221018004 buyerDate:2022-10-18 buyerPerson:3 matchCode:PD00221018006 pastureId:18 providerId:3023] resultname:insertBigbuydetail0 type:e] map[children:[map[name:insertbuydetail parammaps:map[amount:@insertSpotList.amount bigId:@insertBigbuydetail0.LastInsertId contractCode:@insertSpotList.contractCode contractId:@insertSpotList.id departmentName:@insertSpotList.departmentName pastureId:@insertSpotList.pastureId remark:@insertSpotList.purpose sumAmount:@insertSpotList.sumAmount] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 amountPre:0 bigId:547087 brand:胜动济柴/中国 brandId:1981 contractCode:BJ0022100002-001 departmentName:信息部 enable:1 id:623970 inventoryType:1 isNo:Yes isParity:0 isZeroStock:0 orderNumber:SG00221018003 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:1 providerId:3023 providerName:上海都比机械 purpose: remark: specification:60A srcpath: sumAmount:1 sumPrice:1 unit:个]]]] map[children:[map[name:updateBigpartpurchaseStatu parammaps:map[id:@insertSpotListbpp.id matchCode:PD00221018006] type:e]] name:insertSpotListbpp resultmaps:map[list:[map[id:53104 orderNumber:SG00221018003]]]] map[name:insertbigpartdeal parammaps:map[empId:3 matchCode:PD00221018006 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 15:40:55 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52417 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:1904]2022/10/18 15:40:58 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52417 map[returnmap:0] [map[name:partdealCharge parammaps:map[empId:3 id:8133 statue:1 workflowNote:] type:e] map[name:updatebigbuydetailenable parammaps:map[matchCode:PD00221018006] type:e] map[name:updatebigbuydetailZero parammaps:map[matchCode:PD00221018006] type:e]]]
+[INFO][db.go:168]2022/10/18 15:40:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52417 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]

+ 0 - 0
cmd/logs/log20221018-154324.log


+ 0 - 0
cmd/logs/log20221018-154700.log


+ 53 - 0
cmd/logs/log20221018-154914.log

@@ -0,0 +1,53 @@
+[INFO][db.go:552]2022/10/18 15:50:36 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:52804]
+[INFO][db.go:168]2022/10/18 15:50:36 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52805 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 15:50:36 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52858 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:50:36 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52860 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:50:37 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52805 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:50:37 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52858 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:552]2022/10/18 15:50:38 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:52804]
+[INFO][db.go:552]2022/10/18 15:50:38 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:52804]
+[INFO][db.go:552]2022/10/18 15:50:38 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:52804]
+[INFO][db.go:168]2022/10/18 15:50:38 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52860 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/18 15:50:38 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52860 getPartsListSG {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:50:42 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52860 getPartsListSGv2 {"partCode":"14.01.01.01.000001","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 15:50:44 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52860 map[returnmap:0] [map[name:insertBigPartpurchase parammaps:map[createTime:2022-10-18 departmentId:20 employeId:3 orderNumber:SG00221018004 pastureId:18 providerId:] type:e] map[children:[map[name:insertPartpurchase parammaps:map[amount:@insertSpotList.amount bigId:@insertBigPartpurchase.LastInsertId brandId:@insertSpotList.brandId contractId:@insertSpotList.contractId partCode:@insertSpotList.partCode partId:@insertSpotList.partId partName:@insertSpotList.partName pastureId:@insertSpotList.pastureId price:@insertSpotList.price purpose:@insertSpotList.purpose specification:@insertSpotList.specification storageAmount:@insertSpotList.reportery unit:@insertSpotList.unit] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 bigId:547087 brand:胜动济柴/中国 brandId:1981 brandName:胜动济柴/中国 contractId:623970 enable:1 id:623970 inventoryType:1 isZeroStock:0 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:   1.00   purpose: remark: reportery:40.00 specification:60A srcpath: unit:个]]]]]]
+[INFO][db.go:168]2022/10/18 15:50:44 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52860 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:50:44 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52805 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 15:50:47 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:52860]
+[INFO][db.go:168]2022/10/18 15:50:47 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52805 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 15:50:47 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52858 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:50:48 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52804 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 15:50:49 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:52860]
+[INFO][db.go:552]2022/10/18 15:50:49 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:52860]
+[INFO][db.go:552]2022/10/18 15:50:49 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:52860]
+[INFO][db.go:168]2022/10/18 15:50:50 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52860 findAllDepart {"eId":"3","pastureId":"18"}]
+[INFO][db.go:1689]2022/10/18 15:50:51 [PostDataByName  map[content-type:application/json jwt_username:00611] [::1]:52860 partpurchaseCharge {"empId":"3","id":53105,"statue":3,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 15:50:51 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52860 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 15:50:55 [PostDataByName  map[content-type:application/json jwt_username:00611] [::1]:52860 partpurchaseCharge3 {"empId":"3","id":53105,"statue":5,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 15:50:55 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52860 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1904]2022/10/18 15:50:57 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52860 map[returnmap:0] [map[name:partpurchaseCharge1 parammaps:map[empId:3 id:53105 statue:7 workflowNote:] type:e] map[name:createBuydetailBySG parammaps:map[id:53105 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 15:50:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52860 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 15:50:59 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:52804]
+[INFO][db.go:168]2022/10/18 15:50:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52860 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 15:51:00 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52858 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/18 15:51:00 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52858 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 15:51:01 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52895 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 15:51:01 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52805 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/18 15:51:02 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:52804]
+[INFO][db.go:168]2022/10/18 15:51:02 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52892 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:1904]2022/10/18 15:51:05 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52805 map[returnmap:0] [map[name:autoCreatCode parammaps:map[codeType:CG pastureId:18] type:sm]]]
+[INFO][db.go:168]2022/10/18 15:51:05 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52892 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:51:06 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52804 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 15:51:07 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52892 map[returnmap:0] [map[name:insertBigbuydetail parammaps:map[buyeCode:CG00221018005 buyerDate:2022-10-18 buyerPerson:3 pastureId:18 providerId:3023] resultname:insertBigbuydetail0 type:e] map[children:[map[name:insertbuydetail parammaps:map[amount:@insertSpotList.amount bigId:@insertBigbuydetail0.LastInsertId contractCode:@insertSpotList.contractCode contractId:@insertSpotList.id departmentName:@insertSpotList.departmentName pastureId:@insertSpotList.pastureId remark:@insertSpotList.purpose sumAmount:@insertSpotList.sumAmount] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 amountPre:0 bigId:547087 brand:胜动济柴/中国 brandId:1981 contractCode:BJ0022100002-001 departmentName:信息部 enable:1 id:623970 inventoryType:1 isNo:Yes isParity:0 isZeroStock:0 orderNumber:SG00221018004 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:1 providerId:3023 providerName:上海都比机械 purpose: remark: specification:60A srcpath: sumAmount:1 sumPrice:1 unit:个]]]] map[children:[map[name:updateBigpartpurchaseStatu parammaps:map[id:@insertSpotListbpp.id] type:e]] name:insertSpotListbpp resultmaps:map[list:[map[id:53105 orderNumber:SG00221018004]]]] map[name:insertbigpartdeal parammaps:map[empId:3 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 15:51:07 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52804 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[ERROR][db.go:1952]2022/10/18 15:51:08 [ExecDataParam error: Error 1062: Duplicate entry '' for key 'matchCode']
+[INFO][db.go:1904]2022/10/18 15:51:10 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52804 map[returnmap:0] [map[name:insertBigbuydetail parammaps:map[buyeCode:CG00221018005 buyerDate:2022-10-18 buyerPerson:3 matchCode:PD00221018008 pastureId:18 providerId:3023] resultname:insertBigbuydetail0 type:e] map[children:[map[name:insertbuydetail parammaps:map[amount:@insertSpotList.amount bigId:@insertBigbuydetail0.LastInsertId contractCode:@insertSpotList.contractCode contractId:@insertSpotList.id departmentName:@insertSpotList.departmentName pastureId:@insertSpotList.pastureId remark:@insertSpotList.purpose sumAmount:@insertSpotList.sumAmount] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 amountPre:0 bigId:547087 brand:胜动济柴/中国 brandId:1981 contractCode:BJ0022100002-001 departmentName:信息部 enable:1 id:623970 inventoryType:1 isNo:Yes isParity:0 isZeroStock:0 orderNumber:SG00221018004 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:1 providerId:3023 providerName:上海都比机械 purpose: remark: specification:60A srcpath: sumAmount:1 sumPrice:1 unit:个]]]] map[children:[map[name:updateBigpartpurchaseStatu parammaps:map[id:@insertSpotListbpp.id matchCode:PD00221018008] type:e]] name:insertSpotListbpp resultmaps:map[list:[map[id:53105 orderNumber:SG00221018004]]]] map[name:insertbigpartdeal parammaps:map[empId:3 matchCode:PD00221018008 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 15:51:10 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52804 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:1904]2022/10/18 15:51:14 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52895 map[returnmap:0] [map[name:partdealCharge parammaps:map[empId:3 id:8135 statue:1 workflowNote:] type:e] map[name:updatebigbuydetailenable parammaps:map[matchCode:PD00221018008] type:e] map[name:updatebigbuydetailZero parammaps:map[matchCode:PD00221018008] type:e]]]
+[INFO][db.go:1904]2022/10/18 15:51:23 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52805 map[returnmap:0] [map[name:partdealCharge parammaps:map[empId:3 id:8135 statue:1 workflowNote:] type:e] map[name:updatebigbuydetailenable parammaps:map[matchCode:PD00221018008] type:e] map[name:updatebigbuydetailZero parammaps:map[matchCode:PD00221018008] type:e]]]
+[INFO][db.go:1904]2022/10/18 15:51:23 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52892 map[returnmap:0] [map[name:partdealCharge parammaps:map[empId:3 id:8135 statue:1 workflowNote:] type:e] map[name:updatebigbuydetailenable parammaps:map[matchCode:PD00221018008] type:e] map[name:updatebigbuydetailZero parammaps:map[matchCode:PD00221018008] type:e]]]
+[INFO][db.go:1904]2022/10/18 15:51:23 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:52804 map[returnmap:0] [map[name:partdealCharge parammaps:map[empId:3 id:8135 statue:1 workflowNote:] type:e] map[name:updatebigbuydetailenable parammaps:map[matchCode:PD00221018008] type:e] map[name:updatebigbuydetailZero parammaps:map[matchCode:PD00221018008] type:e]]]
+[INFO][db.go:168]2022/10/18 15:51:29 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52895 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:168]2022/10/18 15:51:29 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52805 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:168]2022/10/18 15:51:30 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52892 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:168]2022/10/18 15:51:31 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:52804 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]

+ 40 - 0
cmd/logs/log20221018-155334.log

@@ -0,0 +1,40 @@
+[INFO][db.go:168]2022/10/18 15:53:37 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:53003 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:552]2022/10/18 15:53:40 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:53012]
+[INFO][db.go:168]2022/10/18 15:53:40 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:53003 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 15:53:40 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:53013 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:53:40 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:53014 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 15:53:41 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:53012]
+[INFO][db.go:552]2022/10/18 15:53:41 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:53012]
+[INFO][db.go:168]2022/10/18 15:53:41 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:53021 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/18 15:53:41 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:53022 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:552]2022/10/18 15:53:42 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:53012]
+[INFO][db.go:168]2022/10/18 15:53:42 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:53012 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/18 15:53:43 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:53012 getPartsListSG {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:53:49 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:53012 getPartsListSGv2 {"partCode":"14.01.01.01.000001","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 15:53:52 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:53012 map[returnmap:0] [map[name:insertBigPartpurchase parammaps:map[createTime:2022-10-18 departmentId:20 employeId:3 orderNumber:SG00221018005 pastureId:18 providerId:] type:e] map[children:[map[name:insertPartpurchase parammaps:map[amount:@insertSpotList.amount bigId:@insertBigPartpurchase.LastInsertId brandId:@insertSpotList.brandId contractId:@insertSpotList.contractId partCode:@insertSpotList.partCode partId:@insertSpotList.partId partName:@insertSpotList.partName pastureId:@insertSpotList.pastureId price:@insertSpotList.price purpose:@insertSpotList.purpose specification:@insertSpotList.specification storageAmount:@insertSpotList.reportery unit:@insertSpotList.unit] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 bigId:547087 brand:胜动济柴/中国 brandId:1981 brandName:胜动济柴/中国 contractId:623970 enable:1 id:623970 inventoryType:1 isZeroStock:0 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:   1.00   purpose: remark: reportery:40.00 specification:60A srcpath: unit:个]]]]]]
+[INFO][db.go:168]2022/10/18 15:53:53 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:53012 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:53:53 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:53022 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 15:53:56 [PostDataByName  map[content-type:application/json jwt_username:00611] [::1]:53022 partpurchaseCharge {"empId":"3","id":53106,"statue":3,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 15:53:56 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:53022 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 15:53:58 [PostDataByName  map[content-type:application/json jwt_username:00611] [::1]:53022 partpurchaseCharge3 {"empId":"3","id":53106,"statue":5,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 15:53:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:60729 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1904]2022/10/18 15:54:01 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:60729 map[returnmap:0] [map[name:partpurchaseCharge1 parammaps:map[empId:3 id:53106 statue:7 workflowNote:] type:e] map[name:createBuydetailBySG parammaps:map[id:53106 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 15:54:01 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:60729 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 15:54:06 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:61244]
+[INFO][db.go:168]2022/10/18 15:54:06 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:60729 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 15:54:06 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61245 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/18 15:54:07 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61245 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 15:54:07 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61249 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 15:54:07 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61248 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 15:54:08 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:61246 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/18 15:54:09 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:61244]
+[INFO][db.go:1904]2022/10/18 15:54:18 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:63570 map[returnmap:0] [map[name:autoCreatCode parammaps:map[codeType:CG pastureId:18] type:sm]]]
+[INFO][db.go:168]2022/10/18 15:54:18 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63569 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:54:19 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63579 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 15:54:21 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:63569 map[returnmap:0] [map[name:insertBigbuydetail parammaps:map[buyeCode:CG00221018006 buyerDate:2022-10-18 buyerPerson:3 pastureId:18 providerId:3023] resultname:insertBigbuydetail0 type:e] map[children:[map[name:insertbuydetail parammaps:map[amount:@insertSpotList.amount bigId:@insertBigbuydetail0.LastInsertId contractCode:@insertSpotList.contractCode contractId:@insertSpotList.id departmentName:@insertSpotList.departmentName pastureId:@insertSpotList.pastureId remark:@insertSpotList.purpose sumAmount:@insertSpotList.sumAmount] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 amountPre:0 bigId:547087 brand:胜动济柴/中国 brandId:1981 contractCode:BJ0022100002-001 departmentName:信息部 enable:1 id:623970 inventoryType:1 isNo:Yes isParity:0 isZeroStock:0 orderNumber:SG00221018005 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:1 providerId:3023 providerName:上海都比机械 purpose: remark: specification:60A srcpath: sumAmount:1 sumPrice:1 unit:个]]]] map[children:[map[name:updateBigpartpurchaseStatu parammaps:map[id:@insertSpotListbpp.id] type:e]] name:insertSpotListbpp resultmaps:map[list:[map[id:53106 orderNumber:SG00221018005]]]] map[name:insertbigpartdeal parammaps:map[empId:3 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 15:54:21 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63579 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[ERROR][db.go:1952]2022/10/18 15:54:22 [ExecDataParam error: Error 1062: Duplicate entry '' for key 'matchCode']
+[INFO][db.go:1904]2022/10/18 15:54:23 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:63575 map[returnmap:0] [map[name:insertBigbuydetail parammaps:map[buyeCode:CG00221018006 buyerDate:2022-10-18 buyerPerson:3 matchCode:PD00221018010 pastureId:18 providerId:3023] resultname:insertBigbuydetail0 type:e] map[children:[map[name:insertbuydetail parammaps:map[amount:@insertSpotList.amount bigId:@insertBigbuydetail0.LastInsertId contractCode:@insertSpotList.contractCode contractId:@insertSpotList.id departmentName:@insertSpotList.departmentName pastureId:@insertSpotList.pastureId remark:@insertSpotList.purpose sumAmount:@insertSpotList.sumAmount] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 amountPre:0 bigId:547087 brand:胜动济柴/中国 brandId:1981 contractCode:BJ0022100002-001 departmentName:信息部 enable:1 id:623970 inventoryType:1 isNo:Yes isParity:0 isZeroStock:0 orderNumber:SG00221018005 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:1 providerId:3023 providerName:上海都比机械 purpose: remark: specification:60A srcpath: sumAmount:1 sumPrice:1 unit:个]]]] map[children:[map[name:updateBigpartpurchaseStatu parammaps:map[id:@insertSpotListbpp.id matchCode:PD00221018010] type:e]] name:insertSpotListbpp resultmaps:map[list:[map[id:53106 orderNumber:SG00221018005]]]] map[name:insertbigpartdeal parammaps:map[empId:3 matchCode:PD00221018010 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 15:54:23 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63575 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:1904]2022/10/18 15:54:26 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:63575 map[returnmap:0] [map[name:partdealCharge parammaps:map[empId:3 id:8137 statue:1 workflowNote:] type:e] map[name:updatebigbuydetailenable parammaps:map[matchCode:PD00221018010] type:e] map[name:updatebigbuydetailZero parammaps:map[matchCode:PD00221018010] type:e]]]
+[INFO][db.go:168]2022/10/18 15:54:26 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63575 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]

+ 0 - 0
cmd/logs/log20221018-155502.log


+ 39 - 0
cmd/logs/log20221018-155805.log

@@ -0,0 +1,39 @@
+[INFO][db.go:552]2022/10/18 15:58:06 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:63738]
+[INFO][db.go:168]2022/10/18 15:58:06 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63735 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:58:06 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63732 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 15:58:06 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/18 15:58:06 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 getPartsListSG {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:58:07 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63736 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 15:58:08 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:63738]
+[INFO][db.go:552]2022/10/18 15:58:08 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:63738]
+[INFO][db.go:552]2022/10/18 15:58:08 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:63738]
+[INFO][db.go:168]2022/10/18 15:58:08 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63733 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:58:08 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63738 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/18 15:58:09 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63733 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:58:11 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/18 15:58:11 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63733 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:58:14 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63733 getPartsListSG {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:58:21 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63733 getPartsListSGv2 {"partCode":"14.01.01.01.000001","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 15:58:23 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] 127.0.0.1:63733 map[returnmap:0] [map[name:insertBigPartpurchase parammaps:map[createTime:2022-10-18 departmentId:20 employeId:3 orderNumber:SG00221018007 pastureId:18 providerId:] type:e] map[children:[map[name:insertPartpurchase parammaps:map[amount:@insertSpotList.amount bigId:@insertBigPartpurchase.LastInsertId brandId:@insertSpotList.brandId contractId:@insertSpotList.contractId partCode:@insertSpotList.partCode partId:@insertSpotList.partId partName:@insertSpotList.partName pastureId:@insertSpotList.pastureId price:@insertSpotList.price purpose:@insertSpotList.purpose specification:@insertSpotList.specification storageAmount:@insertSpotList.reportery unit:@insertSpotList.unit] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 bigId:547087 brand:胜动济柴/中国 brandId:1981 brandName:胜动济柴/中国 contractId:623970 enable:1 id:623970 inventoryType:1 isZeroStock:0 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:   1.00   purpose:1 remark: reportery:40.00 specification:60A srcpath: unit:个]]]]]]
+[INFO][db.go:168]2022/10/18 15:58:24 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63733 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 15:58:24 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 15:58:26 [PostDataByName  map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 partpurchaseCharge {"empId":"3","id":53107,"statue":3,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 15:58:26 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 15:58:28 [PostDataByName  map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 partpurchaseCharge3 {"empId":"3","id":53107,"statue":5,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 15:58:28 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1904]2022/10/18 15:58:31 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 map[returnmap:0] [map[name:partpurchaseCharge1 parammaps:map[empId:3 id:53107 statue:7 workflowNote:] type:e] map[name:createBuydetailBySG parammaps:map[id:53107 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 15:58:31 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 15:58:33 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye 127.0.0.1:63733]
+[INFO][db.go:168]2022/10/18 15:58:33 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 15:58:33 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63736 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/18 15:58:34 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63732 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 15:58:34 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63738 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 15:58:34 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63735 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 15:58:35 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:552]2022/10/18 15:58:35 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture 127.0.0.1:63733]
+[INFO][db.go:1904]2022/10/18 15:58:38 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] 127.0.0.1:63734 map[returnmap:0] [map[name:autoCreatCode parammaps:map[codeType:CG pastureId:18] type:sm]]]
+[INFO][db.go:168]2022/10/18 15:58:38 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63738 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 15:58:39 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:63738 map[returnmap:0] [map[name:insertBigbuydetail parammaps:map[buyeCode:CG00221018007 buyerDate:2022-10-18 buyerPerson:3 matchCode:PD00221018011 pastureId:18 providerId:3023] resultname:insertBigbuydetail0 type:e] map[children:[map[name:insertbuydetail parammaps:map[amount:@insertSpotList.amount bigId:@insertBigbuydetail0.LastInsertId contractCode:@insertSpotList.contractCode contractId:@insertSpotList.id departmentName:@insertSpotList.departmentName pastureId:@insertSpotList.pastureId remark:@insertSpotList.purpose sumAmount:@insertSpotList.sumAmount] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 amountPre:0 bigId:547087 brand:胜动济柴/中国 brandId:1981 contractCode:BJ0022100002-001 departmentName:信息部 enable:1 id:623970 inventoryType:1 isNo:Yes isParity:0 isZeroStock:0 orderNumber:SG00221018007 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:1 providerId:3023 providerName:上海都比机械 purpose:1 remark: specification:60A srcpath: sumAmount:1 sumPrice:1 unit:个]]]] map[children:[map[name:updateBigpartpurchaseStatu parammaps:map[id:@insertSpotListbpp.id matchCode:PD00221018011] type:e]] name:insertSpotListbpp resultmaps:map[list:[map[id:53107 orderNumber:SG00221018007]]]] map[name:insertbigpartdeal parammaps:map[empId:3 matchCode:PD00221018011 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 15:58:40 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63738 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:1904]2022/10/18 15:58:42 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:63738 map[returnmap:0] [map[name:partdealCharge parammaps:map[empId:3 id:8138 statue:1 workflowNote:] type:e] map[name:updatebigbuydetailenable parammaps:map[matchCode:PD00221018011] type:e] map[name:updatebigbuydetailZero parammaps:map[matchCode:PD00221018011] type:e]]]
+[INFO][db.go:168]2022/10/18 15:58:43 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63738 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]

+ 0 - 0
cmd/logs/log20221018-155856.log


+ 0 - 0
cmd/logs/log20221018-155909.log


+ 0 - 0
cmd/logs/log20221018-155922.log


+ 22 - 0
cmd/logs/log20221018-160304.log

@@ -0,0 +1,22 @@
+[INFO][db.go:168]2022/10/18 16:03:05 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63982 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 16:03:05 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63980 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 16:03:05 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63983 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/18 16:03:05 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63979 getPartsListSG {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/18 16:03:05 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider 127.0.0.1:63978]
+[INFO][db.go:168]2022/10/18 16:03:05 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63983 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 16:03:06 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture 127.0.0.1:63978]
+[INFO][db.go:552]2022/10/18 16:03:06 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye 127.0.0.1:63978]
+[INFO][db.go:168]2022/10/18 16:03:07 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63980 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 16:03:07 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList 127.0.0.1:63978]
+[INFO][db.go:168]2022/10/18 16:03:07 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63978 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/18 16:03:10 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63980 getPartsListSG {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 16:03:12 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63979 getPartsListSGv2 {"partCode":"14.01.01.01.000001","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 16:03:14 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] 127.0.0.1:63979 map[returnmap:0] [map[name:insertBigPartpurchase parammaps:map[createTime:2022-10-18 departmentId:20 employeId:3 orderNumber:SG00221018008 pastureId:18 providerId:] type:e] map[children:[map[name:insertPartpurchase parammaps:map[amount:@insertSpotList.amount bigId:@insertBigPartpurchase.LastInsertId brandId:@insertSpotList.brandId contractId:@insertSpotList.contractId partCode:@insertSpotList.partCode partId:@insertSpotList.partId partName:@insertSpotList.partName pastureId:@insertSpotList.pastureId price:@insertSpotList.price purpose:@insertSpotList.purpose specification:@insertSpotList.specification storageAmount:@insertSpotList.reportery unit:@insertSpotList.unit] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 bigId:547087 brand:胜动济柴/中国 brandId:1981 brandName:胜动济柴/中国 contractId:623970 enable:1 id:623970 inventoryType:1 isZeroStock:0 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:   1.00   purpose: remark: reportery:40.00 specification:60A srcpath: unit:个]]]]]]
+[INFO][db.go:168]2022/10/18 16:03:14 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63980 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 16:03:14 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63979 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 16:03:16 [PostDataByName  map[content-type:application/json jwt_username:00611] 127.0.0.1:63979 partpurchaseCharge {"empId":"3","id":53108,"statue":3,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 16:03:16 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63979 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 16:03:18 [PostDataByName  map[content-type:application/json jwt_username:00611] 127.0.0.1:63979 partpurchaseCharge3 {"empId":"3","id":53108,"statue":5,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 16:03:18 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:63979 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1904]2022/10/18 16:03:20 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:63982 map[returnmap:0] [map[name:partpurchaseCharge1 parammaps:map[empId:3 id:53108 statue:7 workflowNote:] type:e] map[name:createBuydetailBySG parammaps:map[id:53108 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 16:03:21 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:63982 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]

+ 29 - 0
cmd/logs/log20221018-160327.log

@@ -0,0 +1,29 @@
+[INFO][db.go:552]2022/10/18 16:03:27 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider 127.0.0.1:64057]
+[INFO][db.go:168]2022/10/18 16:03:28 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64056 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 16:03:28 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64056 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 16:03:28 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64056 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 16:03:29 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64055 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 16:03:30 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64056 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:552]2022/10/18 16:03:30 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye 127.0.0.1:64056]
+[INFO][db.go:168]2022/10/18 16:03:30 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64055 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/18 16:03:31 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64055 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/18 16:03:31 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture 127.0.0.1:64057]
+[INFO][db.go:552]2022/10/18 16:03:31 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye 127.0.0.1:64057]
+[INFO][db.go:168]2022/10/18 16:03:32 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64052 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 16:03:32 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64052 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 16:03:32 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64053 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:552]2022/10/18 16:03:33 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture 127.0.0.1:64056]
+[INFO][db.go:168]2022/10/18 16:03:33 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64055 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:552]2022/10/18 16:03:33 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye 127.0.0.1:64052]
+[INFO][db.go:552]2022/10/18 16:03:33 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList 127.0.0.1:64057]
+[INFO][db.go:168]2022/10/18 16:03:33 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64057 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/18 16:03:33 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64057 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 16:03:34 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64055 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 16:03:34 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64056 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:552]2022/10/18 16:03:35 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture 127.0.0.1:64052]
+[INFO][db.go:168]2022/10/18 16:03:35 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64052 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 16:03:35 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64052 findAllDepart {"eId":"3","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 16:03:39 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] 127.0.0.1:64054 map[returnmap:0] [map[name:autoCreatCode parammaps:map[codeType:CG pastureId:18] type:sm]]]
+[INFO][db.go:168]2022/10/18 16:03:39 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64057 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 16:03:40 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] 127.0.0.1:64054 map[returnmap:0] [map[name:insertBigbuydetail parammaps:map[buyeCode:CG00221018008 buyerDate:2022-10-18 buyerPerson:3 matchCode:PD00221018012 pastureId:18 providerId:3023] resultname:insertBigbuydetail0 type:e] map[children:[map[name:insertbuydetail parammaps:map[amount:@insertSpotList.amount bigId:@insertBigbuydetail0.LastInsertId contractCode:@insertSpotList.contractCode contractId:@insertSpotList.id departmentName:@insertSpotList.departmentName pastureId:@insertSpotList.pastureId remark:@insertSpotList.purpose sumAmount:@insertSpotList.sumAmount] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 amountPre:0 bigId:547087 brand:胜动济柴/中国 brandId:1981 contractCode:BJ0022100002-001 departmentName:信息部 enable:1 id:623970 inventoryType:1 isNo:Yes isParity:0 isZeroStock:0 orderNumber:SG00221018008 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:1 providerId:3023 providerName:上海都比机械 purpose: remark: specification:60A srcpath: sumAmount:1 sumPrice:1 unit:个]]]] map[children:[map[name:updateBigpartpurchaseStatu parammaps:map[id:@insertSpotListbpp.id matchCode:PD00221018012] type:e]] name:insertSpotListbpp resultmaps:map[list:[map[id:53108 orderNumber:SG00221018008]]]] map[name:insertbigpartdeal parammaps:map[empId:3 matchCode:PD00221018012 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 16:03:40 [GetDataByName map[content-type:application/json jwt_username:00611] 127.0.0.1:64054 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]

+ 0 - 0
cmd/logs/log20221018-160537.log


+ 13 - 0
cmd/logs/log20221018-160607.log

@@ -0,0 +1,13 @@
+[INFO][db.go:1904]2022/10/18 16:09:58 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:64187 map[returnmap:0] [map[name:partdealCharge parammaps:map[empId:3 id:8139 statue:1 workflowNote:] type:e] map[name:updatebigbuydetailenable parammaps:map[matchCode:PD00221018012] type:e] map[name:updatebigbuydetailZero parammaps:map[matchCode:PD00221018012] type:e]]]
+[INFO][db.go:168]2022/10/18 16:09:59 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64187 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:168]2022/10/18 16:10:58 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64188 getbigpartdealdetiallist {"matchCode":"PD00221018012"}]
+[INFO][db.go:552]2022/10/18 16:11:26 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProviderByCt [::1]:64187]
+[INFO][db.go:552]2022/10/18 16:11:26 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:64187]
+[INFO][db.go:168]2022/10/18 16:11:26 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64369 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:552]2022/10/18 16:11:26 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:64187]
+[INFO][db.go:168]2022/10/18 16:11:26 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64188 getBigStockLaidList {"easStatus":"","inputDatetime":"","laidNumber":"","pastureName":"现代牧业","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 16:11:26 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64367 getPartlaideDetailList {"inputDatetime":"","laidCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerId":"","startTime":"","stopTime":""}]
+[INFO][db.go:552]2022/10/18 16:11:27 [GetDataByNames map[content-type:application/json jwt_username:00611] getDictByName [::1]:64187]
+[INFO][db.go:552]2022/10/18 16:11:27 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:64187]
+[INFO][db.go:168]2022/10/18 16:11:31 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64369 autoCreatCode {"codeType":"RK","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 16:11:35 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64367 getBigStockLaidList {"easStatus":"","inputDatetime":"","laidNumber":"","pastureName":"现代牧业"}]

+ 45 - 0
cmd/logs/log20221018-161945.log

@@ -0,0 +1,45 @@
+[INFO][db.go:168]2022/10/18 16:21:55 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64666 getpartLaidListBybig {"id":64956}]
+[INFO][db.go:552]2022/10/18 16:31:10 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:64995]
+[INFO][db.go:168]2022/10/18 16:31:10 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65052 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 16:31:10 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65050 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 16:31:10 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64994 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 16:31:10 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65048 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 16:31:10 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65046 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/18 16:31:10 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65046 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:552]2022/10/18 16:31:13 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:64995]
+[INFO][db.go:552]2022/10/18 16:31:18 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllProvider [::1]:65048]
+[INFO][db.go:168]2022/10/18 16:31:18 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64994 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 16:31:18 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64995 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 16:31:18 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65050 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","startTime":"","stopTime":"","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 16:31:20 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:65048]
+[INFO][db.go:552]2022/10/18 16:31:20 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:65048]
+[INFO][db.go:552]2022/10/18 16:31:22 [GetDataByNames map[content-type:application/json jwt_username:00611] getflexProviderList [::1]:65048]
+[INFO][db.go:168]2022/10/18 16:31:22 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65048 findAllDepart {"eId":"3","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 16:31:24 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65048 findAllDepart {"eId":"3","pastureId":18}]
+[INFO][db.go:168]2022/10/18 16:31:24 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64995 autoCreatCode {"codeType":"SG","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 16:31:25 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64995 getPartsListSG {"pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 16:31:30 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64995 getPartsListSGv2 {"partCode":"14.01.01.01.000001","pastureId":"18"}]
+[INFO][db.go:168]2022/10/18 16:31:31 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:64995 getPartsListSG {"pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 16:31:34 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:65052 map[returnmap:0] [map[name:insertBigPartpurchase parammaps:map[createTime:2022-10-18 departmentId:20 employeId:3 orderNumber:SG00221018009 pastureId:18 providerId:] type:e] map[children:[map[name:insertPartpurchase parammaps:map[amount:@insertSpotList.amount bigId:@insertBigPartpurchase.LastInsertId brandId:@insertSpotList.brandId contractId:@insertSpotList.contractId partCode:@insertSpotList.partCode partId:@insertSpotList.partId partName:@insertSpotList.partName pastureId:@insertSpotList.pastureId price:@insertSpotList.price purpose:@insertSpotList.purpose specification:@insertSpotList.specification storageAmount:@insertSpotList.reportery unit:@insertSpotList.unit] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 bigId:547087 brand:胜动济柴/中国 brandId:1981 brandName:胜动济柴/中国 contractId:623970 enable:1 id:623970 inventoryType:1 isZeroStock:0 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:   1.00   purpose: remark: reportery:40.00 specification:60A srcpath: unit:个]]]]]]
+[INFO][db.go:168]2022/10/18 16:31:34 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65052 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:168]2022/10/18 16:31:34 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65048 getpartpurchaseWebListNO {"departmentId":"","deptId":"20","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureId":"18","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 16:32:12 [PostDataByName  map[content-type:application/json jwt_username:00611] [::1]:65048 partpurchaseCharge {"empId":"3","id":53109,"statue":3,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 16:32:12 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65048 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1689]2022/10/18 16:32:15 [PostDataByName  map[content-type:application/json jwt_username:00611] [::1]:65048 partpurchaseCharge3 {"empId":"3","id":53109,"statue":5,"workflowNote":""}]
+[INFO][db.go:168]2022/10/18 16:32:15 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65048 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:1904]2022/10/18 16:32:16 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:65048 map[returnmap:0] [map[name:partpurchaseCharge1 parammaps:map[empId:3 id:53109 statue:7 workflowNote:] type:e] map[name:createBuydetailBySG parammaps:map[id:53109 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 16:32:17 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65048 getpartpurchaseList {"departmentId":"","empId":"3","inputDatetime":"","loginId":"3","logindeptId":"20","loginpastureId":"18","menu":"Subscribe","orderNumber":"","pastureName":"现代牧业","stuteSH":""}]
+[INFO][db.go:552]2022/10/18 16:32:20 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllEmploye [::1]:65050]
+[INFO][db.go:168]2022/10/18 16:32:20 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65113 getpartpurchasebg {"id":"18"}]
+[INFO][db.go:168]2022/10/18 16:32:20 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65113 getBigbuydetailList {"buyeCode":"","inputDatetime":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 16:32:20 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65052 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 16:32:20 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65116 getbuydetailParts {"pastureId":"18"}]
+[INFO][db.go:552]2022/10/18 16:32:21 [GetDataByNames map[content-type:application/json jwt_username:00611] findAllPasture [::1]:65050]
+[INFO][db.go:168]2022/10/18 16:32:21 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65050 getbuydetailList {"buyeCode":"","inputDatetime":"","isStorage":"","matchCode":"","partCode":"","partName":"","pastureName":"现代牧业","providerName":"","startTime":"","stopTime":""}]
+[INFO][db.go:168]2022/10/18 16:32:22 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65050 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:1904]2022/10/18 16:32:27 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:65113 map[returnmap:0] [map[name:autoCreatCode parammaps:map[codeType:CG pastureId:18] type:sm]]]
+[INFO][db.go:168]2022/10/18 16:32:27 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65116 autoCreatCode {"codeType":"PD","pastureId":"18"}]
+[INFO][db.go:1904]2022/10/18 16:32:28 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:65113 map[returnmap:0] [map[name:insertBigbuydetail parammaps:map[buyeCode:CG00221018009 buyerDate:2022-10-18 buyerPerson:3 matchCode:PD00221018013 pastureId:18 providerId:3023] resultname:insertBigbuydetail0 type:e] map[children:[map[name:insertbuydetail parammaps:map[amount:@insertSpotList.amount bigId:@insertBigbuydetail0.LastInsertId contractCode:@insertSpotList.contractCode contractId:@insertSpotList.id departmentName:@insertSpotList.departmentName pastureId:@insertSpotList.pastureId remark:@insertSpotList.purpose sumAmount:@insertSpotList.sumAmount] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 amountPre:0 bigId:547087 brand:胜动济柴/中国 brandId:1981 contractCode:BJ0022100002-001 departmentName:信息部 enable:1 id:623970 inventoryType:1 isNo:Yes isParity:0 isZeroStock:0 orderNumber:SG00221018009 partCode:14.01.01.01.000001 partId:468399 partName:开口铜线鼻子 pastureId:18 pastureName:现代牧业 picpath: planAmount:1.00 price:1 providerId:3023 providerName:上海都比机械 purpose: remark: specification:60A srcpath: sumAmount:1 sumPrice:1 unit:个]]]] map[children:[map[name:updateBigpartpurchaseStatu parammaps:map[id:@insertSpotListbpp.id matchCode:PD00221018013] type:e]] name:insertSpotListbpp resultmaps:map[list:[map[id:53109 orderNumber:SG00221018009]]]] map[name:insertbigpartdeal parammaps:map[empId:3 matchCode:PD00221018013 pastureId:18] type:e]]]
+[INFO][db.go:168]2022/10/18 16:32:28 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65113 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]
+[INFO][db.go:1904]2022/10/18 16:32:30 [ExecDataByConfig  map[content-type:application/json jwt_username:00611] [::1]:65113 map[returnmap:0] [map[name:partdealCharge parammaps:map[empId:3 id:8140 statue:1 workflowNote:] type:e] map[name:updatebigbuydetailenable parammaps:map[matchCode:PD00221018013] type:e] map[name:updatebigbuydetailZero parammaps:map[matchCode:PD00221018013] type:e]]]
+[INFO][db.go:168]2022/10/18 16:32:31 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:65113 getbigpartdeallist {"inputDatetime":"","matchCode":"","pastureName":"现代牧业","statue":""}]

+ 24 - 0
cmd/logs/log20221018-163239.log

@@ -0,0 +1,24 @@
+[INFO][db.go:168]2022/10/18 16:50:49 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49239 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 16:50:49 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49238 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 16:50:49 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49832 gethomepagemenu {}]
+[INFO][db.go:525]2022/10/18 16:50:51 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:49828 getmenu map[id:21 jwt_username:00611]]
+[INFO][db.go:659]2022/10/18 16:50:52 [GetReportform  map[content-type:application/json jwt_username:00611] homepagePastureInfor 0xc00122b5e0]
+[INFO][db.go:659]2022/10/18 16:50:52 [GetReportform  map[content-type:application/json jwt_username:00611] homepageEqstatus 0xc00125c140]
+[INFO][db.go:168]2022/10/18 16:50:53 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49828 homepageRate {"pastureName":"现代牧业"}]
+[INFO][db.go:168]2022/10/18 16:50:53 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49238 homepageUkdoneRatePasture {}]
+[INFO][db.go:659]2022/10/18 16:50:55 [GetReportform  map[content-type:application/json jwt_username:00611] homepageEqRunstatueListPasture 0xc00125d810]
+[INFO][db.go:659]2022/10/18 16:50:55 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeWX 0xc00125dc70]
+[INFO][db.go:659]2022/10/18 16:51:06 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeWater 0xc0007447d0]
+[INFO][db.go:659]2022/10/18 16:51:07 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeElec 0xc000744c30]
+[INFO][db.go:659]2022/10/18 16:51:08 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeDiesel 0xc001134320]
+[INFO][db.go:168]2022/10/18 16:51:40 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49239 getRoleall {"pastureId":"18"}]
+[INFO][db.go:188]2022/10/18 16:51:46 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49238 getMenuByRole [0xc0012fa5f0]]
+[INFO][db.go:525]2022/10/18 16:51:56 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:49239 getMenuandButtonRecuRule map[params:[27]]]
+[INFO][db.go:168]2022/10/18 16:53:17 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49828 getRoleall {"pastureId":"18"}]
+[INFO][db.go:188]2022/10/18 16:53:20 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49952 getMenuByRole [0xc0011d3d10]]
+[INFO][db.go:168]2022/10/18 16:53:27 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49952 getRoleall {"pastureId":"18"}]
+[INFO][db.go:188]2022/10/18 16:53:30 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49952 getMenuByRole [0xc0005f70e0]]
+[INFO][db.go:168]2022/10/18 16:53:36 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:49952 getRoleall {"pastureId":"18"}]
+[INFO][db.go:525]2022/10/18 16:53:37 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:49828 getMenuandButtonRecuRule map[params:[27]]]
+[INFO][db.go:525]2022/10/18 16:54:00 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:49953 getMenuandButtonRecuRule map[params:[27]]]
+[INFO][db.go:525]2022/10/18 16:54:02 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:49952 getMenuandButtonRecuRule map[params:[27]]]

+ 0 - 0
cmd/logs/log20221018-171113.log


+ 13 - 0
cmd/logs/log20221018-171132.log

@@ -0,0 +1,13 @@
+[INFO][db.go:168]2022/10/18 17:14:02 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50813 getUserPCButtons {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 17:14:02 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50809 findByUserPastureName {"jwt_username":"00611"}]
+[INFO][db.go:168]2022/10/18 17:14:02 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50886 gethomepagemenu {}]
+[INFO][db.go:659]2022/10/18 17:14:03 [GetReportform  map[content-type:application/json jwt_username:00611] homepagePastureInfor 0xc000783e50]
+[INFO][db.go:659]2022/10/18 17:14:03 [GetReportform  map[content-type:application/json jwt_username:00611] homepageEqstatus 0xc0001add10]
+[INFO][db.go:168]2022/10/18 17:14:03 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50808 homepageRate {"pastureName":"现代牧业"}]
+[INFO][db.go:168]2022/10/18 17:14:04 [GetDataByName map[content-type:application/json jwt_username:00611] [::1]:50813 homepageUkdoneRatePasture {}]
+[INFO][db.go:525]2022/10/18 17:14:04 [sqlname parammaps map[content-type:application/json jwt_username:00611] [::1]:50812 getmenu map[id:21 jwt_username:00611]]
+[INFO][db.go:659]2022/10/18 17:14:05 [GetReportform  map[content-type:application/json jwt_username:00611] homepageEqRunstatueListPasture 0xc0010aecd0]
+[INFO][db.go:659]2022/10/18 17:14:05 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeWX 0xc0010af130]
+[INFO][db.go:659]2022/10/18 17:14:14 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeWater 0xc0012b8b40]
+[INFO][db.go:659]2022/10/18 17:14:15 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeElec 0xc0012b8fa0]
+[INFO][db.go:659]2022/10/18 17:14:15 [GetReportform  map[content-type:application/json jwt_username:00611] homepageFeeDiesel 0xc0012b9400]

+ 2 - 1
cmd/main.go

@@ -37,7 +37,7 @@ import (
 // @BasePath /
 func main() {
 	var path string
-	path = "/Users/desire/kptdev/xdmy_mod/cmd/"
+	path = "./"
 	flag.Parse()
 	setting.Setup(path)
 	dao.Setup()
@@ -108,6 +108,7 @@ func (p *program) run() {
 	// 现代牧业eas 系统对接初始化
 	util.InitWebS(setting.ServerSetting.EasName, setting.ServerSetting.EasPassword, setting.ServerSetting.EasUrl)
 
+	pservice.SapJobInit()
 	routersInit := routers.InitRouter()
 	readTimeout := setting.ServerSetting.ReadTimeout
 	writeTimeout := setting.ServerSetting.WriteTimeout

BIN
cmd/sh/main → cmd/sh/eqserver


+ 16 - 1
pkg/http/http.go

@@ -3,7 +3,9 @@ package http
 import (
 	"bytes"
 	"encoding/json"
+	"fmt"
 	"io"
+	"io/ioutil"
 	"net/http"
 	"time"
 
@@ -18,6 +20,7 @@ type Auth struct {
 type Client struct {
 	client  *http.Client
 	sapAuth *Auth
+	srmAuth *Auth
 }
 
 func NewClient(con *config.Config) *Client {
@@ -30,6 +33,10 @@ func NewClient(con *config.Config) *Client {
 			Username: con.Http.SapName,
 			Password: con.Http.SapPwd,
 		},
+		srmAuth: &Auth{
+			Username: con.Http.SrmName,
+			Password: con.Http.SrmPwd,
+		},
 	}
 }
 
@@ -79,7 +86,10 @@ func (c *Client) Do(req *http.Request, res interface{}) (err error) {
 		return
 	}
 	defer resp.Body.Close()
-	err = json.NewDecoder(resp.Body).Decode(res)
+
+	bodyRes, err := ioutil.ReadAll(resp.Body)
+	err = json.Unmarshal(bodyRes, &res)
+	// err = json.NewDecoder(resp.Body).Decode(res)
 	if err != nil {
 		err = log.Error("http decode ", e, req.URL, req.Body, resp.StatusCode)
 		return
@@ -88,5 +98,10 @@ func (c *Client) Do(req *http.Request, res interface{}) (err error) {
 }
 
 func (c *Client) SetBasicAuth(req *http.Request) {
+	fmt.Println(c.sapAuth.Username, c.sapAuth.Password, "aaa")
 	req.SetBasicAuth(c.sapAuth.Username, c.sapAuth.Password)
 }
+
+func (c *Client) SetSrmBasicAuth(req *http.Request) {
+	req.SetBasicAuth(c.srmAuth.Username, c.srmAuth.Password)
+}

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio