kptcwq911 2 年 前
コミット
12c167ee1d

+ 17 - 16
apiserver/model/buydetail.go

@@ -6,22 +6,23 @@ import (
 
 type BigBuyDetail struct {
 	// 采购订单
-	ID           int       `json:"id"  gorm:"column:id"`
-	DoneDate     time.Time `json:"DoneDate"  gorm:"column:DoneDate"`
-	ArrivalStatu int       `json:"arrivalStatu"  gorm:"column:arrivalStatu"`
-	BuyeCode     string    `json:"buyeCode"  gorm:"column:buyeCode"`
-	BuyerDate    time.Time `json:"buyerDate"  gorm:"column:buyerDate"`
-	BuyerPerson  int       `json:"buyerPerson"  gorm:"column:buyerPerson"`
-	Enable       int       `json:"enable"  gorm:"column:enable"`
-	MatchCode    string    `json:"matchCode"  gorm:"column:matchCode"`
-	Note         string    `json:"note"  gorm:"column:note"`
-	PastureID    int       `json:"pastureId"  gorm:"column:pastureId"`
-	ProviderID   int       `json:"providerId"  gorm:"column:providerId"`
-	Statu        int       `json:"statu"  gorm:"column:statu"`
-	ZeroCou      int       `json:"zeroCou"  gorm:"column:zeroCou"` //配单数量
-
-	SapNumber string `json:"sapNumber"  gorm:"column:sapNumber"`
-	SapStatus int    `json:"sapStatus"  gorm:"column:sapStatus"`
+	ID           int       `gorm:"column:id"`
+	DoneDate     time.Time `gorm:"column:DoneDate"`
+	ArrivalStatu int       `gorm:"column:arrivalStatu"`
+	BuyeCode     string    `gorm:"column:buyeCode"`
+	BuyerDate    time.Time `gorm:"column:buyerDate"`
+	BuyerPerson  int       `gorm:"column:buyerPerson"`
+	Enable       int       `gorm:"column:enable"`
+	MatchCode    string    `gorm:"column:matchCode"`
+	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"`
+	SapStatus    int       `gorm:"column:sapStatus"`
+	SrmStatus    int       `gorm:"column:srmStatus"`
+	SrmNumber    string    `gorm:"column:srmNumber"`
 }
 type BuyDetail struct {
 	// 采购订单明细

+ 56 - 87
apiserver/model/http/order.go

@@ -1,16 +1,5 @@
 package http
 
-import (
-	"time"
-
-	"github.com/pkg/errors"
-
-	"kpt.xdmy/apiserver/dao"
-	"kpt.xdmy/apiserver/model"
-	"kpt.xdmy/pkg/log"
-	"kpt.xdmy/pkg/util"
-)
-
 type OrderResp struct {
 	Dest `json:"DEST"`
 	Data OrderRespData `json:"DATA"`
@@ -22,11 +11,11 @@ type OrderRespData struct {
 	EqNumber  string `json:"EXT01"`
 	SapNumber string `json:"EXT02"`
 }
-type OrderReq struct {
+type SapOrderReq struct {
 	Dest `json:"DEST"`
-	Data Order `json:"DATA"`
+	Data SapOrderData `json:"DATA"`
 }
-type Order struct {
+type SapOrderData struct {
 	CompanyCode  string `json:"BUKRS"`  // 公司代码
 	SupplierCode string `json:"LIFNR"`  // 供应商编码
 	IsCancle     string `json:"ZKHFLG"` // 是否退货  "是:X
@@ -38,9 +27,9 @@ type Order struct {
 	CurrencyCode string `json:"WAERS"`  // 货币码	默认:CNY
 	EqSysCode    string `json:"ZEBELN"` // 订单编号
 
-	Detail []OrderDetail `json:"TEKPO"`
+	Detail []SapOrderDetail `json:"TEKPO"`
 }
-type OrderDetail struct {
+type SapOrderDetail struct {
 	IsOwn        string `json:"PSTYP"` // 自有订单,"自有:空// 寄售:'K' "
 	MaterialCode string `json:"MATNR"` //物料编码
 	Quantity     string `json:"MENGE"` // 数量
@@ -56,76 +45,56 @@ type OrderDetail struct {
 	Dflag        string `json:"LOEKZ"` // 删除标识 "是:L// 否:空"
 }
 
-func (o *OrderReq) NewReq(p *model.BigBuyDetail) (e error) {
-	path := "http OrderReq NewReq"
-	o.Dest = Dest{
-		DestID: "EQMAN",
-		BussTp: "MM007",
-		Url:    "https://app.modernfarming.cn:7443/sap/Common/MM007/PurchaseOrder",
-	}
-	pv := &model.Provider{ID: p.ProviderID}
-	ps := &model.Pasture{ID: p.PastureID}
-	bds := make([]model.BuyDetail, 0)
-	c := util.NewMap("bigid", p.ID)
-	sl := make([]OrderDetail, 0)
-	if e = model.First(pv); e != nil {
-		log.Printf("%s:采购订单供应商查不到", path)
-		return
-	}
-	if e = model.First(ps); e != nil {
-		log.Printf("%s:采购订单牧场查不到", path)
-		return
-	}
-	model.Find(c, &bds)
-	if len(bds) == 0 {
-		e = errors.Errorf("%s:采购订单明细查询为空", path)
-		log.Print(e.Error())
-		return
-	}
-	o.Data = Order{
-		IsCancle:     "",
-		SupplierCode: "100224",
-		OrderDate:    p.BuyerDate.Format("20060102"),
-		PayCondition: "",
-		CompanyCode:  "1004",
-		CurrencyCode: "CNY",
-		ProofType:    "ZNB4",
-		EqSysCode:    p.BuyeCode[4:],
-		// EqSysCode:    "A0001",
-		Organization: "9099",
-		Group:        "A02",
-		// CompanyCode:  ps.PastureNumber,
-		// SupplierCode: pv.ProviderNumber,
-		// OrderDate:    p.BuyerDate.Format("20060102"),
-	}
-	for _, v := range bds {
-
-		dao.D.DB.Raw(`SELECT p.partcode from parts p join contract c on c.partid=p.id where 
-		c.id=?`, v.ContractID).Scan(&v.PartCode)
-
-		pd := OrderDetail{
-			// Quantity:     v.Amount,
-			// DeliveryDate: v.ReceiveDate.Format("20060102"),
-			// IsOwn:        util.ZeroStr(c.IsZeroStock == 1, "K"),
-			// NetPrice: v.Price,
-			// Unit:     ps.Unit,
-			// Factory:   p.Data.CompanyCode,
-			// Location: "",
-			// IsFree:   "",
-			MaterialCode: v.PartCode,
-			// MaterialCode: "14.01.07.01.000243",
-			Quantity:     "11",
-			DeliveryDate: p.BuyerDate.Add(time.Hour * 24 * 7).Format("20060102"),
-			Unit:         "EA",
-			NetPrice:     "11",
-			Per:          "1",
-			Factory:      "M001",
-			TaxCode:      "J0",
-			RowNumber:    "10",
-		}
-		sl = append(sl, pd)
-	}
-	o.Data.Detail = sl
-	return
+type SrmOrderDetail struct {
+	RowNo              string `json:"rowNo"`              //行号
+	MaterialCode       string `json:"materialCode"`       //物料编码
+	MaterialName       string `json:"materialName"`       //物料名称
+	MaterialDesc       string `json:"materialDesc"`       //规格型号
+	Manufacturer       string `json:"manufacturer"`       //厂家
+	MaterialGroupCode  string `json:"materialGroupCode"`  //物料组
+	PurchaseCategory   string `json:"purchaseCategory"`   //采购类别
+	OrderUnitCode      string `json:"orderUnitCode"`      //订单单位
+	OrderQty           string `json:"orderQty"`           //订单数量
+	IsFree             string `json:"isFree"`             //是否免费
+	PriceBase          string `json:"priceBase"`          //价格基数
+	PricingUnitCode    string `json:"pricingUnitCode"`    //定价单位
+	TaxRateCode        string `json:"taxRateCode"`        //税率
+	NonTaxPrice        string `json:"nonTaxPrice"`        //未税单价
+	TaxPrice           string `json:"taxPrice"`           //含税单价
+	NonTaxAmount       string `json:"nonTaxAmount"`       //未税金额
+	Tax                string `json:"tax"`                //税额
+	TaxAmount          string `json:"taxAmount"`          //含税金额
+	DeliveryDate       string `json:"deliveryDate"`       //交货日期
+	ConfirmDate        string `json:"confirmDate"`        //确认交货日期
+	PlantCode          string `json:"plantCode"`          //牧场工厂
+	StockLocationCode  string `json:"stockLocationCode"`  //库存地点
+	QualityCheck       string `json:"qualityCheck"`       //质检标识
+	IsReturn           string `json:"isReturn"`           //是否退货
+	OverDeliveryLimit  string `json:"overDeliveryLimit"`  //过量交货限度
+	ShortDeliveryLimit string `json:"shortDeliveryLimit"` //交货不足限度
+	SourceNo           string `json:"sourceNo"`           //来源单号
+	ContractCode       string `json:"contractCode"`       //合同编码
+	Remark             string `json:"remark"`             //备注
 }
 
+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"`
+}
+type SrmOrderReq struct {
+	Dest `json:"DEST"`
+	Data SrmOrderData `json:"DATA"`
+}

+ 103 - 3
apiserver/service/order.go

@@ -56,7 +56,7 @@ func (s *Service) PurchaseOrder(p interface{}) {
 }
 
 func (s *Service) SapOrder(p *model.BigBuyDetail) {
-	r := new(http.OrderReq)
+	r := new(http.SapOrderReq)
 	rp := new(http.OrderResp)
 	parts := []model.BuyDetail{}
 	pa := new(model.Pasture)
@@ -80,10 +80,10 @@ func (s *Service) SapOrder(p *model.BigBuyDetail) {
 		return
 	}
 	r.Data.IsCancle = ""
+	r.Data.PayCondition = ""
 	r.Data.CompanyCode = pa.CompanyCode
 	r.Data.SupplierCode = pv.ProviderNumber
 	r.Data.OrderDate = p.BuyerDate.Format("20060102")
-	r.Data.PayCondition = ""
 	r.Data.CurrencyCode = "CNY"
 	r.Data.ProofType = "ZNB4"
 	r.Data.EqSysCode = p.BuyeCode[4:]
@@ -92,7 +92,7 @@ func (s *Service) SapOrder(p *model.BigBuyDetail) {
 	r.Data.Group = "A02"
 
 	for i, v := range parts {
-		detail := http.OrderDetail{}
+		detail := http.SapOrderDetail{}
 		c := new(model.Contract)
 		bc := new(model.BigContract)
 
@@ -143,3 +143,103 @@ func (s *Service) SapOrder(p *model.BigBuyDetail) {
 		}
 	}
 }
+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 {
+		log.Errorf("AutoSrmOrderJob  error: %v", e)
+	}
+}
+func ManaulSrmOrderJob() {
+	orders := []model.BigBuyDetail{}
+	if e := s.d.DB.Where("srmStatus=2").Find(&orders, model.BigBuyDetail{SrmStatus: 0}).Error; e != nil {
+		log.Errorf("ManaulSrmOrderJob error: %v", e)
+	}
+}
+func SrmOrder(p *model.BigBuyDetail) {
+	r := new(http.SrmOrderReq)
+	// rp := new(http.OrderResp)
+	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"
+
+	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"
+
+	for i, v := range parts {
+		detail := http.SrmOrderDetail{}
+		c := new(model.Contract)
+		bc := new(model.BigContract)
+
+		if e := s.d.DB.First(c, model.Contract{ID: v.ContractID}).Error; e != nil {
+			log.Errorf("order detail error:%v", e)
+			return
+		}
+		if e := s.d.DB.First(bc, model.BigContract{ID: c.BigID}).Error; e != nil {
+			log.Errorf("order detail error:%v", e)
+			return
+		}
+
+		detail.RowNo = fmt.Sprintf("%d", i+1)
+		detail.Manufacturer = pa.FactoryCode
+		detail.OrderQty = fmt.Sprintf("%d", v.Amount)
+		detail.DeliveryDate = p.BuyerDate.Add(time.Hour * 24 * 7).Format("20060102")
+		detail.TaxRateCode = "J0"
+		// detail.OrderUnitCode = "1"
+		detail.NonTaxPrice = c.Price
+		detail.OrderUnitCode = c.Unit
+		detail.MaterialCode = c.PartCode
+		// detail.IsOwn = util.ZeroStr(bc.IsZeroStock == 1, "K")
+
+		r.Data.Detail = append(r.Data.Detail, detail)
+
+		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)
+	// 	}
+	// }
+}

+ 27 - 0
cmd/logs/log20221008-164914.log

@@ -0,0 +1,27 @@
+[INFO][db.go:168]2022/10/08 16:50:28 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56763 getUserPCButtons {"jwt_username":"01532"}]
+[INFO][db.go:168]2022/10/08 16:51:14 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56764 findByUserPastureName {"jwt_username":"01532"}]
+[INFO][db.go:168]2022/10/08 16:51:23 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56843 gethomepagemenu {}]
+[INFO][db.go:512]2022/10/08 16:51:24 [sqlname parammaps map[content-type:application/json jwt_username:01532] [::1]:56762 getmenu map[id:19 jwt_username:01532]]
+[INFO][db.go:539]2022/10/08 16:52:02 [GetDataByNames map[content-type:application/json jwt_username:01532] findAllPasture [::1]:56762]
+[INFO][db.go:168]2022/10/08 16:52:02 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56843 getUserPCButtons {"jwt_username":"01532"}]
+[INFO][db.go:539]2022/10/08 16:52:02 [GetDataByNames map[content-type:application/json jwt_username:01532] findAllDepart [::1]:56762]
+[INFO][db.go:539]2022/10/08 16:52:02 [GetDataByNames map[content-type:application/json jwt_username:01532] findAllEmploye [::1]:56762]
+[INFO][db.go:168]2022/10/08 16:52:05 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56763 getBigpartapplyList {"applyType":"","departmentId":"","inputDatetime":"","loginId":"3097","logindeptId":"313","loginpastureId":"304","menu":"Receive","pastureName":"蚌埠牧场","startTime":"","statue":"","stopTime":""}]
+[INFO][db.go:168]2022/10/08 16:52:05 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56764 getPartapplyWebListNO {"applyType":"","departmentId":"","deptId":"313","inputDatetime":"","loginId":"3097","logindeptId":"313","loginpastureId":"304","menu":"Receive","pastureId":"304","pastureName":"蚌埠牧场","statue":""}]
+[INFO][db.go:168]2022/10/08 16:52:05 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56762 findAllDepart {"pastureId":"304"}]
+[INFO][db.go:168]2022/10/08 16:53:09 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56762 findAllDepart {"pastureId":304}]
+[INFO][db.go:168]2022/10/08 16:53:11 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56763 autoCreatCode {"codeType":"LY","pastureId":"304"}]
+[INFO][db.go:168]2022/10/08 16:53:18 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56902 findAllDepart {"pastureId":304}]
+[INFO][db.go:168]2022/10/08 16:53:18 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56762 autoCreatCode {"codeType":"LY","pastureId":"304"}]
+[INFO][db.go:168]2022/10/08 16:53:41 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56762 getPartsListLY {"pastureId":304}]
+[INFO][db.go:168]2022/10/08 16:53:48 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56762 getPartsListLY {"pastureId":304}]
+[INFO][db.go:168]2022/10/08 16:53:53 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56762 getPartsListLY {"pastureId":304}]
+[INFO][db.go:168]2022/10/08 16:54:05 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56762 getPartsListLY {"pastureId":304}]
+[INFO][db.go:168]2022/10/08 16:54:05 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56902 getPartsListLY {"pastureId":304}]
+[INFO][db.go:168]2022/10/08 16:54:11 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56902 getPartsListLY {"pastureId":304}]
+[INFO][db.go:168]2022/10/08 16:54:19 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56902 getPartsListLY {"pastureId":304}]
+[INFO][db.go:168]2022/10/08 16:54:21 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56902 getPartsListLY {"pastureId":304}]
+[INFO][db.go:168]2022/10/08 16:54:27 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56902 geteqbyNameCode {"pastureId":"304"}]
+[INFO][db.go:1891]2022/10/08 16:54:45 [ExecDataByConfig  map[content-type:application/json jwt_username:01532] [::1]:56762 map[returnmap:0] [map[name:insertBigpartapply parammaps:map[SHStatus:9 applyCode:LY19221008022 applyDate:2022-10-08 applyType:1 departmentId:313 empId:3097 pastureId:304] type:e] map[children:[map[name:insertpartapply parammaps:map[amount:@insertSpotList.amount bigId:@insertBigpartapply.LastInsertId brandId:@insertSpotList.brandId contractId:@insertSpotList.contractId eqCode:@insertSpotList.eqCode eqName:@insertSpotList.eqName locationId:@insertSpotList.locationId note:@insertSpotList.note partCode:@insertSpotList.partCode partId:@insertSpotList.partId partName:@insertSpotList.partName pastureId:@insertSpotList.pastureId price:@insertSpotList.price providerId:@insertSpotList.providerId reportery:@insertSpotList.reportery specification:@insertSpotList.specification] type:e]] name:insertSpotList resultmaps:map[list:[map[amount:1 bigId:419358 brand:奥耐尔 brandId:2392 contractId:218888 enable:1 eqCode:19.PLC016 eqName:抛料车 id:449177 inventoryType:1 isZeroStock:0 locationId:10574 partCode:14.03.04.02.000144 partId:449177 partName:排水软管 partRepId:68754 pastureId:304 pastureName:蚌埠 picpath: planAmount:390.00 price:117.91 providerId:1986 providerName:奥耐尔 remark: reportery:3.00 specification:807311 srcpath: sumPrice:117.91 unit:个]]]]]]
+[INFO][db.go:168]2022/10/08 16:55:42 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56762 getBigpartapplyList {"applyType":"","departmentId":"","inputDatetime":"","loginId":"3097","logindeptId":"313","loginpastureId":"304","menu":"Receive","pastureName":"蚌埠牧场","statue":""}]
+[INFO][db.go:168]2022/10/08 16:55:42 [GetDataByName map[content-type:application/json jwt_username:01532] [::1]:56902 getPartapplyWebListNO {"applyType":"","departmentId":"","deptId":"313","inputDatetime":"","loginId":"3097","logindeptId":"313","loginpastureId":"304","menu":"Receive","pastureId":"304","pastureName":"蚌埠牧场","statue":""}]

+ 0 - 21
doc/sql/d.sql

@@ -1,21 +0,0 @@
--- delete from  parts where isSave=2
-
--- delete from parts where new_partcode =''
-
-delete from part_class 
-delete from contract where partid not in (select id from parts);
-
-select  pr.id,pr.locationId,pr.location.p.name   from part_repertory  pr  join 
-warehouse w on pr.locationId =w.id 
-join pasture p on p.id =w.pastureId
-where p.name ='宝鸡牧场'  and 
-pr.partcode in
-(
-'14.02.10.02.000065',  
-'14.02.10.01.000300',   
-'14.02.15.05.000060'
-)
-
-问题二:
-     宝鸡牧场
-这3条记录都是0库存,把库存改一下,入库单删除

+ 0 - 4
doc/sql/error.md

@@ -1,4 +0,0 @@
-*xorm.Session
- commands out of sync. Did you run multiple statements at once?
-
- Error 1040: Too many connections

+ 0 - 36
doc/sql/f.sql

@@ -1,36 +0,0 @@
-SELECT
-    -- `PartLaid`.`bigBuyerId`,
-    `PartLaid`.`bigId`,
-    `PartLaid`.`brandId`,
-    `PartLaid`.`buyAmount`,
-    `PartLaid`.`buydetailId`,
-    `PartLaid`.`contractId`,
-    `PartLaid`.`id`,
-    `PartLaid`.`locationId`,
-    `PartLaid`.`note`,
-    `PartLaid`.`orderNumber`,
-    `PartLaid`.`partCode`,
-    `PartLaid`.`partId`,
-    `PartLaid`.`partName`,
-    `PartLaid`.`pastureId`,
-    `PartLaid`.`price`,
-    `PartLaid`.`providerId`,
-    `PartLaid`.`purpose`,
-    `PartLaid`.`receivedAmount`,
-    `PartLaid`.`reportery`,
-    `PartLaid`.`specification`,
-    `PartLaid`.`storageAmount`,
-    `PartLaid`.`storageType`,
-    `PartLaid`.`subscribePasture`,
-    `PartLaid`.`subscribeProvider`,
-    `PartLaid`.`sumPrice`,
-    `PartLaid`.`unit`,
-    `PartLaid`.`dflag`,
-    `PartLaid`.`rowNumber`,
-    `PartLaid`.`IsZeroStock`
-FROM
-    PartLaid pl
---     join bigpartlaid bpl on pl.bigid = bpl.id
--- WHERE
---     bpl.laidcode = 'RK01220826002'
-limit 10

+ 0 - 60
doc/sql/getPartApplyByBig.sql

@@ -1,60 +0,0 @@
-
-SELECT
-CONCAT('uploads/thumbnail/',ep.`picpath`,'/',ep.`newpicname`) picpath,
-  CONCAT('uploads/image/',ep.`picpath`,'/',ep.`newpicname`) srcpath,
-IF (bpa.`applyType`='0','非维保',
-IF (bpa.`applyType`='1','维修','保养')) applyType,
-pa.pastureId,
-  pr.`id`,
-pa.id paid,
-  pa.`partCode`,
-  pa.`partId`,
-  pr.`brandId`,
-TRIM(TRAILING '.' FROM (TRIM(TRAILING '0' FROM  pa.`price`))) price,
-  pa.`specification`,
- ROUND(pa.amount,2) amount, 
-TRIM(TRAILING '.' FROM (TRIM(TRAILING '0' FROM pa.`sumPrice`))) sumPrice ,
-  pa.`eqCode`,
-  pa.`eqName`,
-  pa.`providerId`,
-  pa.`useTypeV`,
-  pa.`note`,
-pa.partName,
-pr.reportery,
-pr.`location`,
-pr.`locationId`,
-pr.`reportery`,
-pr.`unit`,
-pr.contractId,
-pr.`brand`,
-pv.providerName  
-
-FROM
-partapply pa
-INNER JOIN bigpartapply bpa 
-ON pa.`bigId` = bpa.`id`
- LEFT JOIN part_repertory pr
- ON IF(pa.`contractId`='' OR pa.`contractId` IS NULL ,(pa.`partCode` = pr.`partCode` AND  pa.`providerId` = pr.`providerId`  AND bpa.pastureId = pr.pastureId   AND (pr. reportery>0 OR  (SELECT bc.`statue`   FROM  contract c
-INNER JOIN bigcontract bc
-ON c.`bigId` = bc.`id`
- WHERE c.id = pr.`contractId`)=1 )
-  # 新添加的
- and( (pa.`locationId`='' or pa.`locationId` is null) or pa.`locationId`= pr.`locationId` ) 
-#####
- ),(pa.`contractId`=pr.`contractId` AND pa.`brandid`=pr.`brandid`)
- # 新添加的
- and( (pa.`locationId` is null) or (pr.`locationId` is null) or (pa.`locationId`= pr.`locationId`) ) 
-#####
-)
-LEFT JOIN provider pv
-    ON (pv.`id` = pr.`providerId` or pv.`id` = pa.`providerId`)
-LEFT JOIN parts ps
-    ON ps.id = pa.partId
-    LEFT JOIN eq_pic ep
-    ON ep.id = ps.picpath
-WHERE pa.`bigId` = ?
-and 
-(
-  pa.pastureId =18 or
-(select pastureId from warehouse where id = pr.`locationId`)=?)
-ORDER BY partCode

+ 0 - 1143
doc/sql/i2.sql

@@ -1,1143 +0,0 @@
-insert into temDict 
-(factory_code, factory_name, company_code, company_name) 
-values
--- ('M002'	,'塞北一牧', 	'1002',	'现代牧业(张家口)有限公司'),
-('M003'	,'塞北二牧',	'1002',	'现代牧业(张家口)有限公司'),
-('M014'	,'塞北三牧',	'1002',	'现代牧业(张家口)有限公司'),
-('M023'	,'塞北四牧',	'1002',	'现代牧业(张家口)有限公司'),
-('M004'	,'汶上牧场',	'1004',	'现代牧业(汶上)有限公司'),
-('N004'	,'汶上能源工厂',	'1004',	'现代牧业(汶上)有限公司'),
-('M005'	,'察北一期牧场', 	'1005',	'现代牧业(察北)有限公司'),
-('M017'	,'察北二期牧场',	'1005',	'现代牧业(察北)有限公司'),
-('R027'	,'察北肉牛场', 	'1005',	'现代牧业(察北)有限公司'),
-('S003'	,'察北玉米压片厂', 	'1005',	'现代牧业(察北)有限公司'),
-('M006'	,'洪雅牧场',	'1006',	'现代牧业洪雅有限公司'),
-('N006'	,'洪雅能源工厂',	'1006',	'现代牧业洪雅有限公司'),
-('M007'	,'尚志牧场',	'1007',	'现代牧业(尚志)有限公司'),
-('N007'	,'尚志能源工厂',	'1007',	'现代牧业(尚志)有限公司'),
-('M008'	,'宝鸡牧场',	'1008',	'现代牧业(宝鸡)有限公司'),
-('N008'	,'宝鸡能源工厂',	'1008',	'现代牧业(宝鸡)有限公司'),
-('S005'	,'宝鸡玉米压片厂', 	'1008',	'现代牧业(宝鸡)有限公司'),
-('M010'	,'和林牧场',	'1010',	'现代牧业(和林格尔)有限公司'),
-('N010'	,'和林能源工厂',	'1010',	'现代牧业(和林格尔)有限公司'),
-('M011'	,'合肥牧场',	'1011',	'现代牧业(合肥)有限公司'),
-('M012'	,'恒盛牧场',	'1012',	'现代牧业(察北)恒盛有限公司'),
-('M016'	,'通辽牧场',	'1016',	'现代牧业(通辽)有限公司'),
-('N016'	,'通辽能源工厂',	'1016',	'现代牧业(通辽)有限公司'),
-('M019'	,'蚌埠牧场',	'1019',	'现代牧业(五河)有限公司'),
-('S002'	,'蚌埠玉米压片厂', 	'1019',	'现代牧业(五河)有限公司'),
-('M024'	,'双城牧场',	'1024',	'现代牧业(双城)有限公司'),
-('N024'	,'双城能源工厂',	'1024',	'现代牧业(双城)有限公司'),
-('M028'	,'新乐牧场',	'1028',	'中元牧业有限公司'),
-('N028'	,'新乐能源工厂',	'1028',	'中元牧业有限公司'),
-('M029'	,'商河牧场',	'1029',	'现代牧业(商河)有限公司'),
-('N029'	,'商河能源工厂',	'1029',	'现代牧业(商河)有限公司'),
-('S004'	,'商河玉米压片厂', 	'1029',	'现代牧业(商河)有限公司'),
-('M033'	,'阜民丰牧场', 	'1033',	'宁夏阜民丰牧业发展有限责任公司'),
-('M034'	,'朝凯牧场',	'1034',	'内蒙古星连星朝凯牧业有限公司'),
-('M035'	,'牧丰牧场',	'1035',	'磴口县金马湖牧丰奶牛养殖有限公司'),
-('M036'	,'大庆牧场',	'1036',	'现代牧业(大庆)有限公司'),
-('M037'	,'兰考牧场', 	'1037',	'河南联兴牧业有限公司'),
-('M038'	,'伊磊牧场',	'1038',	'大同伊磊二牧牧业有限公司'),
-('M041'	,'磴口牧场',	'1041',	'现代牧业(磴口)有限公司'),
-('M049'	,'和林二牧-大梁',	'1042',	'内蒙古艾林牧业有限责任公司'),
-('M051'	,'和林一牧', 	'1042',	'内蒙古艾林牧业有限责任公司'),
-('M053'	,'和林二牧-舍必崖', 	'1042',	'内蒙古艾林牧业有限责任公司'),
-('M054'	,'和林二牧-马群沟', 	'1042',	'内蒙古艾林牧业有限责任公司'),
-('Z001'	,'艾林草业',	'1042',	'内蒙古艾林牧业有限责任公司'),
-('M043'	,'宿迁牧场',	'1043',	'现代牧业(宿迁)有限公司'),
-('M044'	,'乌兰牧场',	'1044',	'内蒙古富源牧业(兴安盟)有限责任公司'),
-('M045'	,'吴忠牧场',	'1045',	'现代牧业(吴忠)有限公司'),
-('M046'	,'塞北五牧',	'1046',	'富源牧业张家口有限责任公司'),
-('M047'	,'赛罕牧场',	'1047',	'内蒙古富源牧业(赛罕)有限责任公司'),
-('M048'	,'托县牧场',	'1048',	'现代牧业(托克托)有限公司'),
-('M050'	,'衡水一牧', 	'1050',	'现代牧业(衡水)有限公司'),
-('M052'	,'眉山牧场',	'1052',	'富源牧业(眉山)有限公司'),
-('M055'	,'临沂牧场',	'1055',	'现代牧业(兰陵)有限公司'),
-('M056'	,'衡水二牧',	'1056',	'富奥衡水牧业有限公司'),
-('M057'	,'云南牧场',	'1057',	'现代牧业(曲靖)有限公司'),
-('S201'	,'牡丹江粮源工厂', 	'2001',	'牡丹江粮源科技有限公司'),
-('S202'	,'天津粮源工厂',	'2002',	'天津粮源科技有限公司'),
-('S203'	,'海南粮源工厂',	'2003',	'海南粮源科技有限公司'),
-('S204'	,'上海粮源工厂',	'2004',	'上海粮源科技有限公司'),
-('S205'	,'现代饲料天津工厂',	'2005',	'现代饲料(天津)有限公司'),
-('S001'	,'商河饲料厂', 	'2039',	'现代牧业(商河)饲料有限公司'),
-('N301'	,'张家口百塔能源工厂', 	'3001',	'张家口百塔能源有限公司'),
-('N302'	,'张家口恒盛能源工厂', 	'3002',	'张家口恒盛能源有限公司'),
-('N303'	,'张家口牧能能源一期工厂',	'3003',	'张家口牧能能源有限公司'),
-('N304'	,'张家口牧能能源二期工厂',	'3003',	'张家口牧能能源有限公司'),
-('N305'	,'张家口牧能能源三期工厂',	'3003',	'张家口牧能能源有限公司'),
-('N306'	,'张家口牧能能源四期工厂',	'3003',	'张家口牧能能源有限公司'),
-('Z002'	,'博望分公司工厂', 	'9098',	'现代牧业(集团)有限公司博望分公司')
-('M001'	,'马鞍山牧场', 	'9099',	'现代牧业(集团)有限公司')
-;
-
-insert into warehouse    (factory_code,factory_name,warehoseCode,warehosetName,enable)
-values
-('M001',	'马鞍山牧场',	'1001',	'原材料仓',1),
-('M001',	'马鞍山牧场',	'1002',	'药品仓',1),
-('M001',	'马鞍山牧场',	'1003',	'药品二级库',1),
-('M001',	'马鞍山牧场',	'1004',	'备件仓',1),
-('M001',	'马鞍山牧场',	'1005',	'综合仓',1),
-('M001',	'马鞍山牧场',	'1101',	'青贮仓-1号窖',1),
-('M001',	'马鞍山牧场',	'1102',	'青贮仓-2号窖',1),
-('M001',	'马鞍山牧场',	'1103',	'青贮仓-3号窖',1),
-('M001',	'马鞍山牧场',	'1104',	'青贮仓-4号窖',1),
-('M001',	'马鞍山牧场',	'1105',	'青贮仓-5号窖',1),
-('M001',	'马鞍山牧场',	'1106',	'青贮仓-6号窖',1),
-('M001',	'马鞍山牧场',	'1107',	'青贮仓-7号窖',1),
-('M001',	'马鞍山牧场',	'1108',	'青贮仓-8号窖',1),
-('M001',	'马鞍山牧场',	'1109',	'青贮仓-9号窖',1),
-('M001',	'马鞍山牧场',	'1110',	'青贮仓-10号窖',1),
-('M001',	'马鞍山牧场',	'1111',	'青贮仓-11号窖',1),
-('M001',	'马鞍山牧场',	'1112',	'青贮仓-12号窖',1),
-('M001',	'马鞍山牧场',	'1113',	'青贮仓-13号窖',1),
-('M001',	'马鞍山牧场',	'1114',	'青贮仓-14号窖',1),
-('M001',	'马鞍山牧场',	'1115',	'青贮仓-15号窖',1),
-('M001',	'马鞍山牧场',	'1116',	'青贮仓-16号窖',1),
-('M001',	'马鞍山牧场',	'1117',	'青贮仓-17号窖',1),
-('M001',	'马鞍山牧场',	'1118',	'青贮仓-18号窖',1),
-('M001',	'马鞍山牧场',	'1119',	'青贮仓-19号窖',1),
-('M001',	'马鞍山牧场',	'1120',	'青贮仓-20号窖',1),
-('M001',	'马鞍山牧场',	'1201',	'原奶仓',1),
-('M002',	'塞北一牧',	'1001',	'原材料仓',1),
-('M002',	'塞北一牧',	'1002',	'药品仓',1),
-('M002',	'塞北一牧',	'1003',	'药品二级库',1),
-('M002',	'塞北一牧',	'1004',	'备件仓',1),
-('M002',	'塞北一牧',	'1005',	'综合仓',1),
-('M002',	'塞北一牧',	'1101',	'青贮仓-1号窖',1),
-('M002',	'塞北一牧',	'1102',	'青贮仓-2号窖',1),
-('M002',	'塞北一牧',	'1103',	'青贮仓-3号窖',1),
-('M002',	'塞北一牧',	'1104',	'青贮仓-4号窖',1),
-('M002',	'塞北一牧',	'1105',	'青贮仓-5号窖',1),
-('M002',	'塞北一牧',	'1106',	'青贮仓-6号窖',1),
-('M002',	'塞北一牧',	'1107',	'青贮仓-7号窖',1),
-('M002',	'塞北一牧',	'1108',	'青贮仓-8号窖',1),
-('M002',	'塞北一牧',	'1109',	'青贮仓-9号窖',1),
-('M002',	'塞北一牧',	'1110',	'青贮仓-10号窖',1),
-('M002',	'塞北一牧',	'1111',	'青贮仓-11号窖',1),
-('M002',	'塞北一牧',	'1112',	'青贮仓-12号窖',1),
-('M002',	'塞北一牧',	'1113',	'青贮仓-13号窖',1),
-('M002',	'塞北一牧',	'1114',	'青贮仓-14号窖',1),
-('M002',	'塞北一牧',	'1115',	'青贮仓-15号窖',1),
-('M002',	'塞北一牧',	'1116',	'青贮仓-16号窖',1),
-('M002',	'塞北一牧',	'1117',	'青贮仓-17号窖',1),
-('M002',	'塞北一牧',	'1118',	'青贮仓-18号窖',1),
-('M002',	'塞北一牧',	'1119',	'青贮仓-19号窖',1),
-('M002',	'塞北一牧',	'1120',	'青贮仓-20号窖',1),
-('M002',	'塞北一牧',	'1201',	'原奶仓',1),
-('M003',	'塞北二牧',	'1001',	'原材料仓',1),
-('M003',	'塞北二牧',	'1002',	'药品仓',1),
-('M003',	'塞北二牧',	'1003',	'药品二级库',1),
-('M003',	'塞北二牧',	'1004',	'备件仓',1),
-('M003',	'塞北二牧',	'1005',	'综合仓',1),
-('M003',	'塞北二牧',	'1101',	'青贮仓-1号窖',1),
-('M003',	'塞北二牧',	'1102',	'青贮仓-2号窖',1),
-('M003',	'塞北二牧',	'1103',	'青贮仓-3号窖',1),
-('M003',	'塞北二牧',	'1104',	'青贮仓-4号窖',1),
-('M003',	'塞北二牧',	'1105',	'青贮仓-5号窖',1),
-('M003',	'塞北二牧',	'1106',	'青贮仓-6号窖',1),
-('M003',	'塞北二牧',	'1107',	'青贮仓-7号窖',1),
-('M003',	'塞北二牧',	'1108',	'青贮仓-8号窖',1),
-('M003',	'塞北二牧',	'1109',	'青贮仓-9号窖',1),
-('M003',	'塞北二牧',	'1110',	'青贮仓-10号窖',1),
-('M003',	'塞北二牧',	'1111',	'青贮仓-11号窖',1),
-('M003',	'塞北二牧',	'1112',	'青贮仓-12号窖',1),
-('M003',	'塞北二牧',	'1113',	'青贮仓-13号窖',1),
-('M003',	'塞北二牧',	'1114',	'青贮仓-14号窖',1),
-('M003',	'塞北二牧',	'1115',	'青贮仓-15号窖',1),
-('M003',	'塞北二牧',	'1116',	'青贮仓-16号窖',1),
-('M003',	'塞北二牧',	'1117',	'青贮仓-17号窖',1),
-('M003',	'塞北二牧',	'1118',	'青贮仓-18号窖',1),
-('M003',	'塞北二牧',	'1119',	'青贮仓-19号窖',1),
-('M003',	'塞北二牧',	'1120',	'青贮仓-20号窖',1),
-('M003',	'塞北二牧',	'1201',	'原奶仓',1),
-('M004',	'汶上牧场',	'1001',	'原材料仓',1),
-('M004',	'汶上牧场',	'1002',	'药品仓',1),
-('M004',	'汶上牧场',	'1003',	'药品二级库',1),
-('M004',	'汶上牧场',	'1004',	'备件仓',1),
-('M004',	'汶上牧场',	'1005',	'综合仓',1),
-('M004',	'汶上牧场',	'1101',	'青贮仓-1号窖',1),
-('M004',	'汶上牧场',	'1102',	'青贮仓-2号窖',1),
-('M004',	'汶上牧场',	'1103',	'青贮仓-3号窖',1),
-('M004',	'汶上牧场',	'1104',	'青贮仓-4号窖',1),
-('M004',	'汶上牧场',	'1105',	'青贮仓-5号窖',1),
-('M004',	'汶上牧场',	'1106',	'青贮仓-6号窖',1),
-('M004',	'汶上牧场',	'1107',	'青贮仓-7号窖',1),
-('M004',	'汶上牧场',	'1108',	'青贮仓-8号窖',1),
-('M004',	'汶上牧场',	'1109',	'青贮仓-9号窖',1),
-('M004',	'汶上牧场',	'1110',	'青贮仓-10号窖',1),
-('M004',	'汶上牧场',	'1111',	'青贮仓-11号窖',1),
-('M004',	'汶上牧场',	'1112',	'青贮仓-12号窖',1),
-('M004',	'汶上牧场',	'1113',	'青贮仓-13号窖',1),
-('M004',	'汶上牧场',	'1114',	'青贮仓-14号窖',1),
-('M004',	'汶上牧场',	'1115',	'青贮仓-15号窖',1),
-('M004',	'汶上牧场',	'1116',	'青贮仓-16号窖',1),
-('M004',	'汶上牧场',	'1117',	'青贮仓-17号窖',1),
-('M004',	'汶上牧场',	'1118',	'青贮仓-18号窖',1),
-('M004',	'汶上牧场',	'1119',	'青贮仓-19号窖',1),
-('M004',	'汶上牧场',	'1120',	'青贮仓-20号窖',1),
-('M004',	'汶上牧场',	'1201',	'原奶仓',1),
-('M005',	'察北一期牧场',	'1001',	'原材料仓',1),
-('M005',	'察北一期牧场',	'1002',	'药品仓',1),
-('M005',	'察北一期牧场',	'1003',	'药品二级库',1),
-('M005',	'察北一期牧场',	'1004',	'备件仓',1),
-('M005',	'察北一期牧场',	'1005',	'综合仓',1),
-('M005',	'察北一期牧场',	'1101',	'青贮仓-1号窖',1),
-('M005',	'察北一期牧场',	'1102',	'青贮仓-2号窖',1),
-('M005',	'察北一期牧场',	'1103',	'青贮仓-3号窖',1),
-('M005',	'察北一期牧场',	'1104',	'青贮仓-4号窖',1),
-('M005',	'察北一期牧场',	'1105',	'青贮仓-5号窖',1),
-('M005',	'察北一期牧场',	'1106',	'青贮仓-6号窖',1),
-('M005',	'察北一期牧场',	'1107',	'青贮仓-7号窖',1),
-('M005',	'察北一期牧场',	'1108',	'青贮仓-8号窖',1),
-('M005',	'察北一期牧场',	'1109',	'青贮仓-9号窖',1),
-('M005',	'察北一期牧场',	'1110',	'青贮仓-10号窖',1),
-('M005',	'察北一期牧场',	'1111',	'青贮仓-11号窖',1),
-('M005',	'察北一期牧场',	'1112',	'青贮仓-12号窖',1),
-('M005',	'察北一期牧场',	'1113',	'青贮仓-13号窖',1),
-('M005',	'察北一期牧场',	'1114',	'青贮仓-14号窖',1),
-('M005',	'察北一期牧场',	'1115',	'青贮仓-15号窖',1),
-('M005',	'察北一期牧场',	'1116',	'青贮仓-16号窖',1),
-('M005',	'察北一期牧场',	'1117',	'青贮仓-17号窖',1),
-('M005',	'察北一期牧场',	'1118',	'青贮仓-18号窖',1),
-('M005',	'察北一期牧场',	'1119',	'青贮仓-19号窖',1),
-('M005',	'察北一期牧场',	'1120',	'青贮仓-20号窖',1),
-('M005',	'察北一期牧场',	'1201',	'原奶仓',1),
-('M006',	'洪雅牧场',	'1001',	'原材料仓',1),
-('M006',	'洪雅牧场',	'1002',	'药品仓',1),
-('M006',	'洪雅牧场',	'1003',	'药品二级库',1),
-('M006',	'洪雅牧场',	'1004',	'备件仓',1),
-('M006',	'洪雅牧场',	'1005',	'综合仓',1),
-('M006',	'洪雅牧场',	'1101',	'青贮仓-1号窖',1),
-('M006',	'洪雅牧场',	'1102',	'青贮仓-2号窖',1),
-('M006',	'洪雅牧场',	'1103',	'青贮仓-3号窖',1),
-('M006',	'洪雅牧场',	'1104',	'青贮仓-4号窖',1),
-('M006',	'洪雅牧场',	'1105',	'青贮仓-5号窖',1),
-('M006',	'洪雅牧场',	'1106',	'青贮仓-6号窖',1),
-('M006',	'洪雅牧场',	'1107',	'青贮仓-7号窖',1),
-('M006',	'洪雅牧场',	'1108',	'青贮仓-8号窖',1),
-('M006',	'洪雅牧场',	'1109',	'青贮仓-9号窖',1),
-('M006',	'洪雅牧场',	'1110',	'青贮仓-10号窖',1),
-('M006',	'洪雅牧场',	'1111',	'青贮仓-11号窖',1),
-('M006',	'洪雅牧场',	'1112',	'青贮仓-12号窖',1),
-('M006',	'洪雅牧场',	'1113',	'青贮仓-13号窖',1),
-('M006',	'洪雅牧场',	'1114',	'青贮仓-14号窖',1),
-('M006',	'洪雅牧场',	'1115',	'青贮仓-15号窖',1),
-('M006',	'洪雅牧场',	'1116',	'青贮仓-16号窖',1),
-('M006',	'洪雅牧场',	'1117',	'青贮仓-17号窖',1),
-('M006',	'洪雅牧场',	'1118',	'青贮仓-18号窖',1),
-('M006',	'洪雅牧场',	'1119',	'青贮仓-19号窖',1),
-('M006',	'洪雅牧场',	'1120',	'青贮仓-20号窖',1),
-('M006',	'洪雅牧场',	'1201',	'原奶仓',1),
-('M007',	'尚志牧场',	'1001',	'原材料仓',1),
-('M007',	'尚志牧场',	'1002',	'药品仓',1),
-('M007',	'尚志牧场',	'1003',	'药品二级库',1),
-('M007',	'尚志牧场',	'1004',	'备件仓',1),
-('M007',	'尚志牧场',	'1005',	'综合仓',1),
-('M007',	'尚志牧场',	'1101',	'青贮仓-1号窖',1),
-('M007',	'尚志牧场',	'1102',	'青贮仓-2号窖',1),
-('M007',	'尚志牧场',	'1103',	'青贮仓-3号窖',1),
-('M007',	'尚志牧场',	'1104',	'青贮仓-4号窖',1),
-('M007',	'尚志牧场',	'1105',	'青贮仓-5号窖',1),
-('M007',	'尚志牧场',	'1106',	'青贮仓-6号窖',1),
-('M007',	'尚志牧场',	'1107',	'青贮仓-7号窖',1),
-('M007',	'尚志牧场',	'1108',	'青贮仓-8号窖',1),
-('M007',	'尚志牧场',	'1109',	'青贮仓-9号窖',1),
-('M007',	'尚志牧场',	'1110',	'青贮仓-10号窖',1),
-('M007',	'尚志牧场',	'1111',	'青贮仓-11号窖',1),
-('M007',	'尚志牧场',	'1112',	'青贮仓-12号窖',1),
-('M007',	'尚志牧场',	'1113',	'青贮仓-13号窖',1),
-('M007',	'尚志牧场',	'1114',	'青贮仓-14号窖',1),
-('M007',	'尚志牧场',	'1115',	'青贮仓-15号窖',1),
-('M007',	'尚志牧场',	'1116',	'青贮仓-16号窖',1),
-('M007',	'尚志牧场',	'1117',	'青贮仓-17号窖',1),
-('M007',	'尚志牧场',	'1118',	'青贮仓-18号窖',1),
-('M007',	'尚志牧场',	'1119',	'青贮仓-19号窖',1),
-('M007',	'尚志牧场',	'1120',	'青贮仓-20号窖',1),
-('M007',	'尚志牧场',	'1201',	'原奶仓',1),
-('M008',	'宝鸡牧场',	'1001',	'原材料仓',1),
-('M008',	'宝鸡牧场',	'1002',	'药品仓',1),
-('M008',	'宝鸡牧场',	'1003',	'药品二级库',1),
-('M008',	'宝鸡牧场',	'1004',	'备件仓',1),
-('M008',	'宝鸡牧场',	'1005',	'综合仓',1),
-('M008',	'宝鸡牧场',	'1101',	'青贮仓-1号窖',1),
-('M008',	'宝鸡牧场',	'1102',	'青贮仓-2号窖',1),
-('M008',	'宝鸡牧场',	'1103',	'青贮仓-3号窖',1),
-('M008',	'宝鸡牧场',	'1104',	'青贮仓-4号窖',1),
-('M008',	'宝鸡牧场',	'1105',	'青贮仓-5号窖',1),
-('M008',	'宝鸡牧场',	'1106',	'青贮仓-6号窖',1),
-('M008',	'宝鸡牧场',	'1107',	'青贮仓-7号窖',1),
-('M008',	'宝鸡牧场',	'1108',	'青贮仓-8号窖',1),
-('M008',	'宝鸡牧场',	'1109',	'青贮仓-9号窖',1),
-('M008',	'宝鸡牧场',	'1110',	'青贮仓-10号窖',1),
-('M008',	'宝鸡牧场',	'1111',	'青贮仓-11号窖',1),
-('M008',	'宝鸡牧场',	'1112',	'青贮仓-12号窖',1),
-('M008',	'宝鸡牧场',	'1113',	'青贮仓-13号窖',1),
-('M008',	'宝鸡牧场',	'1114',	'青贮仓-14号窖',1),
-('M008',	'宝鸡牧场',	'1115',	'青贮仓-15号窖',1),
-('M008',	'宝鸡牧场',	'1116',	'青贮仓-16号窖',1),
-('M008',	'宝鸡牧场',	'1117',	'青贮仓-17号窖',1),
-('M008',	'宝鸡牧场',	'1118',	'青贮仓-18号窖',1),
-('M008',	'宝鸡牧场',	'1119',	'青贮仓-19号窖',1),
-('M008',	'宝鸡牧场',	'1120',	'青贮仓-20号窖',1),
-('M008',	'宝鸡牧场',	'1201',	'原奶仓',1),
-('M010',	'和林牧场',	'1001',	'原材料仓',1),
-('M010',	'和林牧场',	'1002',	'药品仓',1),
-('M010',	'和林牧场',	'1003',	'药品二级库',1),
-('M010',	'和林牧场',	'1004',	'备件仓',1),
-('M010',	'和林牧场',	'1005',	'综合仓',1),
-('M010',	'和林牧场',	'1101',	'青贮仓-1号窖',1),
-('M010',	'和林牧场',	'1102',	'青贮仓-2号窖',1),
-('M010',	'和林牧场',	'1103',	'青贮仓-3号窖',1),
-('M010',	'和林牧场',	'1104',	'青贮仓-4号窖',1),
-('M010',	'和林牧场',	'1105',	'青贮仓-5号窖',1),
-('M010',	'和林牧场',	'1106',	'青贮仓-6号窖',1),
-('M010',	'和林牧场',	'1107',	'青贮仓-7号窖',1),
-('M010',	'和林牧场',	'1108',	'青贮仓-8号窖',1),
-('M010',	'和林牧场',	'1109',	'青贮仓-9号窖',1),
-('M010',	'和林牧场',	'1110',	'青贮仓-10号窖',1),
-('M010',	'和林牧场',	'1111',	'青贮仓-11号窖',1),
-('M010',	'和林牧场',	'1112',	'青贮仓-12号窖',1),
-('M010',	'和林牧场',	'1113',	'青贮仓-13号窖',1),
-('M010',	'和林牧场',	'1114',	'青贮仓-14号窖',1),
-('M010',	'和林牧场',	'1115',	'青贮仓-15号窖',1),
-('M010',	'和林牧场',	'1116',	'青贮仓-16号窖',1),
-('M010',	'和林牧场',	'1117',	'青贮仓-17号窖',1),
-('M010',	'和林牧场',	'1118',	'青贮仓-18号窖',1),
-('M010',	'和林牧场',	'1119',	'青贮仓-19号窖',1),
-('M010',	'和林牧场',	'1120',	'青贮仓-20号窖',1),
-('M010',	'和林牧场',	'1201',	'原奶仓',1),
-('M011',	'合肥牧场',	'1001',	'原材料仓',1),
-('M011',	'合肥牧场',	'1002',	'药品仓',1),
-('M011',	'合肥牧场',	'1003',	'药品二级库',1),
-('M011',	'合肥牧场',	'1004',	'备件仓',1),
-('M011',	'合肥牧场',	'1005',	'综合仓',1),
-('M011',	'合肥牧场',	'1101',	'青贮仓-1号窖',1),
-('M011',	'合肥牧场',	'1102',	'青贮仓-2号窖',1),
-('M011',	'合肥牧场',	'1103',	'青贮仓-3号窖',1),
-('M011',	'合肥牧场',	'1104',	'青贮仓-4号窖',1),
-('M011',	'合肥牧场',	'1105',	'青贮仓-5号窖',1),
-('M011',	'合肥牧场',	'1106',	'青贮仓-6号窖',1),
-('M011',	'合肥牧场',	'1107',	'青贮仓-7号窖',1),
-('M011',	'合肥牧场',	'1108',	'青贮仓-8号窖',1),
-('M011',	'合肥牧场',	'1109',	'青贮仓-9号窖',1),
-('M011',	'合肥牧场',	'1110',	'青贮仓-10号窖',1),
-('M011',	'合肥牧场',	'1111',	'青贮仓-11号窖',1),
-('M011',	'合肥牧场',	'1112',	'青贮仓-12号窖',1),
-('M011',	'合肥牧场',	'1113',	'青贮仓-13号窖',1),
-('M011',	'合肥牧场',	'1114',	'青贮仓-14号窖',1),
-('M011',	'合肥牧场',	'1115',	'青贮仓-15号窖',1),
-('M011',	'合肥牧场',	'1116',	'青贮仓-16号窖',1),
-('M011',	'合肥牧场',	'1117',	'青贮仓-17号窖',1),
-('M011',	'合肥牧场',	'1118',	'青贮仓-18号窖',1),
-('M011',	'合肥牧场',	'1119',	'青贮仓-19号窖',1),
-('M011',	'合肥牧场',	'1120',	'青贮仓-20号窖',1),
-('M011',	'合肥牧场',	'1201',	'原奶仓',1),
-('M012',	'恒盛牧场',	'1001',	'原材料仓',1),
-('M012',	'恒盛牧场',	'1002',	'药品仓',1),
-('M012',	'恒盛牧场',	'1003',	'药品二级库',1),
-('M012',	'恒盛牧场',	'1004',	'备件仓',1),
-('M012',	'恒盛牧场',	'1005',	'综合仓',1),
-('M012',	'恒盛牧场',	'1101',	'青贮仓-1号窖',1),
-('M012',	'恒盛牧场',	'1102',	'青贮仓-2号窖',1),
-('M012',	'恒盛牧场',	'1103',	'青贮仓-3号窖',1),
-('M012',	'恒盛牧场',	'1104',	'青贮仓-4号窖',1),
-('M012',	'恒盛牧场',	'1105',	'青贮仓-5号窖',1),
-('M012',	'恒盛牧场',	'1106',	'青贮仓-6号窖',1),
-('M012',	'恒盛牧场',	'1107',	'青贮仓-7号窖',1),
-('M012',	'恒盛牧场',	'1108',	'青贮仓-8号窖',1),
-('M012',	'恒盛牧场',	'1109',	'青贮仓-9号窖',1),
-('M012',	'恒盛牧场',	'1110',	'青贮仓-10号窖',1),
-('M012',	'恒盛牧场',	'1111',	'青贮仓-11号窖',1),
-('M012',	'恒盛牧场',	'1112',	'青贮仓-12号窖',1),
-('M012',	'恒盛牧场',	'1113',	'青贮仓-13号窖',1),
-('M012',	'恒盛牧场',	'1114',	'青贮仓-14号窖',1),
-('M012',	'恒盛牧场',	'1115',	'青贮仓-15号窖',1),
-('M012',	'恒盛牧场',	'1116',	'青贮仓-16号窖',1),
-('M012',	'恒盛牧场',	'1117',	'青贮仓-17号窖',1),
-('M012',	'恒盛牧场',	'1118',	'青贮仓-18号窖',1),
-('M012',	'恒盛牧场',	'1119',	'青贮仓-19号窖',1),
-('M012',	'恒盛牧场',	'1120',	'青贮仓-20号窖',1),
-('M012',	'恒盛牧场',	'1201',	'原奶仓',1),
-('M014',	'塞北三牧',	'1001',	'原材料仓',1),
-('M014',	'塞北三牧',	'1002',	'药品仓',1),
-('M014',	'塞北三牧',	'1003',	'药品二级库',1),
-('M014',	'塞北三牧',	'1004',	'备件仓',1),
-('M014',	'塞北三牧',	'1005',	'综合仓',1),
-('M014',	'塞北三牧',	'1101',	'青贮仓-1号窖',1),
-('M014',	'塞北三牧',	'1102',	'青贮仓-2号窖',1),
-('M014',	'塞北三牧',	'1103',	'青贮仓-3号窖',1),
-('M014',	'塞北三牧',	'1104',	'青贮仓-4号窖',1),
-('M014',	'塞北三牧',	'1105',	'青贮仓-5号窖',1),
-('M014',	'塞北三牧',	'1106',	'青贮仓-6号窖',1),
-('M014',	'塞北三牧',	'1107',	'青贮仓-7号窖',1),
-('M014',	'塞北三牧',	'1108',	'青贮仓-8号窖',1),
-('M014',	'塞北三牧',	'1109',	'青贮仓-9号窖',1),
-('M014',	'塞北三牧',	'1110',	'青贮仓-10号窖',1),
-('M014',	'塞北三牧',	'1111',	'青贮仓-11号窖',1),
-('M014',	'塞北三牧',	'1112',	'青贮仓-12号窖',1),
-('M014',	'塞北三牧',	'1113',	'青贮仓-13号窖',1),
-('M014',	'塞北三牧',	'1114',	'青贮仓-14号窖',1),
-('M014',	'塞北三牧',	'1115',	'青贮仓-15号窖',1),
-('M014',	'塞北三牧',	'1116',	'青贮仓-16号窖',1),
-('M014',	'塞北三牧',	'1117',	'青贮仓-17号窖',1),
-('M014',	'塞北三牧',	'1118',	'青贮仓-18号窖',1),
-('M014',	'塞北三牧',	'1119',	'青贮仓-19号窖',1),
-('M014',	'塞北三牧',	'1120',	'青贮仓-20号窖',1),
-('M014',	'塞北三牧',	'1201',	'原奶仓',1),
-('M016',	'通辽牧场',	'1001',	'原材料仓',1),
-('M016',	'通辽牧场',	'1002',	'药品仓',1),
-('M016',	'通辽牧场',	'1003',	'药品二级库',1),
-('M016',	'通辽牧场',	'1004',	'备件仓',1),
-('M016',	'通辽牧场',	'1005',	'综合仓',1),
-('M016',	'通辽牧场',	'1101',	'青贮仓-1号窖',1),
-('M016',	'通辽牧场',	'1102',	'青贮仓-2号窖',1),
-('M016',	'通辽牧场',	'1103',	'青贮仓-3号窖',1),
-('M016',	'通辽牧场',	'1104',	'青贮仓-4号窖',1),
-('M016',	'通辽牧场',	'1105',	'青贮仓-5号窖',1),
-('M016',	'通辽牧场',	'1106',	'青贮仓-6号窖',1),
-('M016',	'通辽牧场',	'1107',	'青贮仓-7号窖',1),
-('M016',	'通辽牧场',	'1108',	'青贮仓-8号窖',1),
-('M016',	'通辽牧场',	'1109',	'青贮仓-9号窖',1),
-('M016',	'通辽牧场',	'1110',	'青贮仓-10号窖',1),
-('M016',	'通辽牧场',	'1111',	'青贮仓-11号窖',1),
-('M016',	'通辽牧场',	'1112',	'青贮仓-12号窖',1),
-('M016',	'通辽牧场',	'1113',	'青贮仓-13号窖',1),
-('M016',	'通辽牧场',	'1114',	'青贮仓-14号窖',1),
-('M016',	'通辽牧场',	'1115',	'青贮仓-15号窖',1),
-('M016',	'通辽牧场',	'1116',	'青贮仓-16号窖',1),
-('M016',	'通辽牧场',	'1117',	'青贮仓-17号窖',1),
-('M016',	'通辽牧场',	'1118',	'青贮仓-18号窖',1),
-('M016',	'通辽牧场',	'1119',	'青贮仓-19号窖',1),
-('M016',	'通辽牧场',	'1120',	'青贮仓-20号窖',1),
-('M016',	'通辽牧场',	'1201',	'原奶仓',1),
-('M017',	'察北二期牧场',	'1001',	'原材料仓',1),
-('M017',	'察北二期牧场',	'1002',	'药品仓',1),
-('M017',	'察北二期牧场',	'1003',	'药品二级库',1),
-('M017',	'察北二期牧场',	'1004',	'备件仓',1),
-('M017',	'察北二期牧场',	'1005',	'综合仓',1),
-('M017',	'察北二期牧场',	'1101',	'青贮仓-1号窖',1),
-('M017',	'察北二期牧场',	'1102',	'青贮仓-2号窖',1),
-('M017',	'察北二期牧场',	'1103',	'青贮仓-3号窖',1),
-('M017',	'察北二期牧场',	'1104',	'青贮仓-4号窖',1),
-('M017',	'察北二期牧场',	'1105',	'青贮仓-5号窖',1),
-('M017',	'察北二期牧场',	'1106',	'青贮仓-6号窖',1),
-('M017',	'察北二期牧场',	'1107',	'青贮仓-7号窖',1),
-('M017',	'察北二期牧场',	'1108',	'青贮仓-8号窖',1),
-('M017',	'察北二期牧场',	'1109',	'青贮仓-9号窖',1),
-('M017',	'察北二期牧场',	'1110',	'青贮仓-10号窖',1),
-('M017',	'察北二期牧场',	'1111',	'青贮仓-11号窖',1),
-('M017',	'察北二期牧场',	'1112',	'青贮仓-12号窖',1),
-('M017',	'察北二期牧场',	'1113',	'青贮仓-13号窖',1),
-('M017',	'察北二期牧场',	'1114',	'青贮仓-14号窖',1),
-('M017',	'察北二期牧场',	'1115',	'青贮仓-15号窖',1),
-('M017',	'察北二期牧场',	'1116',	'青贮仓-16号窖',1),
-('M017',	'察北二期牧场',	'1117',	'青贮仓-17号窖',1),
-('M017',	'察北二期牧场',	'1118',	'青贮仓-18号窖',1),
-('M017',	'察北二期牧场',	'1119',	'青贮仓-19号窖',1),
-('M017',	'察北二期牧场',	'1120',	'青贮仓-20号窖',1),
-('M017',	'察北二期牧场',	'1201',	'原奶仓',1),
-('M019',	'蚌埠牧场',	'1001',	'原材料仓',1),
-('M019',	'蚌埠牧场',	'1002',	'药品仓',1),
-('M019',	'蚌埠牧场',	'1003',	'药品二级库',1),
-('M019',	'蚌埠牧场',	'1004',	'备件仓',1),
-('M019',	'蚌埠牧场',	'1005',	'综合仓',1),
-('M019',	'蚌埠牧场',	'1101',	'青贮仓-1号窖',1),
-('M019',	'蚌埠牧场',	'1102',	'青贮仓-2号窖',1),
-('M019',	'蚌埠牧场',	'1103',	'青贮仓-3号窖',1),
-('M019',	'蚌埠牧场',	'1104',	'青贮仓-4号窖',1),
-('M019',	'蚌埠牧场',	'1105',	'青贮仓-5号窖',1),
-('M019',	'蚌埠牧场',	'1106',	'青贮仓-6号窖',1),
-('M019',	'蚌埠牧场',	'1107',	'青贮仓-7号窖',1),
-('M019',	'蚌埠牧场',	'1108',	'青贮仓-8号窖',1),
-('M019',	'蚌埠牧场',	'1109',	'青贮仓-9号窖',1),
-('M019',	'蚌埠牧场',	'1110',	'青贮仓-10号窖',1),
-('M019',	'蚌埠牧场',	'1111',	'青贮仓-11号窖',1),
-('M019',	'蚌埠牧场',	'1112',	'青贮仓-12号窖',1),
-('M019',	'蚌埠牧场',	'1113',	'青贮仓-13号窖',1),
-('M019',	'蚌埠牧场',	'1114',	'青贮仓-14号窖',1),
-('M019',	'蚌埠牧场',	'1115',	'青贮仓-15号窖',1),
-('M019',	'蚌埠牧场',	'1116',	'青贮仓-16号窖',1),
-('M019',	'蚌埠牧场',	'1117',	'青贮仓-17号窖',1),
-('M019',	'蚌埠牧场',	'1118',	'青贮仓-18号窖',1),
-('M019',	'蚌埠牧场',	'1119',	'青贮仓-19号窖',1),
-('M019',	'蚌埠牧场',	'1120',	'青贮仓-20号窖',1),
-('M019',	'蚌埠牧场',	'1201',	'原奶仓',1),
-('M023',	'塞北四牧',	'1001',	'原材料仓',1),
-('M023',	'塞北四牧',	'1002',	'药品仓',1),
-('M023',	'塞北四牧',	'1003',	'药品二级库',1),
-('M023',	'塞北四牧',	'1004',	'备件仓',1),
-('M023',	'塞北四牧',	'1005',	'综合仓',1),
-('M023',	'塞北四牧',	'1101',	'青贮仓-1号窖',1),
-('M023',	'塞北四牧',	'1102',	'青贮仓-2号窖',1),
-('M023',	'塞北四牧',	'1103',	'青贮仓-3号窖',1),
-('M023',	'塞北四牧',	'1104',	'青贮仓-4号窖',1),
-('M023',	'塞北四牧',	'1105',	'青贮仓-5号窖',1),
-('M023',	'塞北四牧',	'1106',	'青贮仓-6号窖',1),
-('M023',	'塞北四牧',	'1107',	'青贮仓-7号窖',1),
-('M023',	'塞北四牧',	'1108',	'青贮仓-8号窖',1),
-('M023',	'塞北四牧',	'1109',	'青贮仓-9号窖',1),
-('M023',	'塞北四牧',	'1110',	'青贮仓-10号窖',1),
-('M023',	'塞北四牧',	'1111',	'青贮仓-11号窖',1),
-('M023',	'塞北四牧',	'1112',	'青贮仓-12号窖',1),
-('M023',	'塞北四牧',	'1113',	'青贮仓-13号窖',1),
-('M023',	'塞北四牧',	'1114',	'青贮仓-14号窖',1),
-('M023',	'塞北四牧',	'1115',	'青贮仓-15号窖',1),
-('M023',	'塞北四牧',	'1116',	'青贮仓-16号窖',1),
-('M023',	'塞北四牧',	'1117',	'青贮仓-17号窖',1),
-('M023',	'塞北四牧',	'1118',	'青贮仓-18号窖',1),
-('M023',	'塞北四牧',	'1119',	'青贮仓-19号窖',1),
-('M023',	'塞北四牧',	'1120',	'青贮仓-20号窖',1),
-('M023',	'塞北四牧',	'1201',	'原奶仓',1),
-('M024',	'双城牧场',	'1001',	'原材料仓',1),
-('M024',	'双城牧场',	'1002',	'药品仓',1),
-('M024',	'双城牧场',	'1003',	'药品二级库',1),
-('M024',	'双城牧场',	'1004',	'备件仓',1),
-('M024',	'双城牧场',	'1005',	'综合仓',1),
-('M024',	'双城牧场',	'1101',	'青贮仓-1号窖',1),
-('M024',	'双城牧场',	'1102',	'青贮仓-2号窖',1),
-('M024',	'双城牧场',	'1103',	'青贮仓-3号窖',1),
-('M024',	'双城牧场',	'1104',	'青贮仓-4号窖',1),
-('M024',	'双城牧场',	'1105',	'青贮仓-5号窖',1),
-('M024',	'双城牧场',	'1106',	'青贮仓-6号窖',1),
-('M024',	'双城牧场',	'1107',	'青贮仓-7号窖',1),
-('M024',	'双城牧场',	'1108',	'青贮仓-8号窖',1),
-('M024',	'双城牧场',	'1109',	'青贮仓-9号窖',1),
-('M024',	'双城牧场',	'1110',	'青贮仓-10号窖',1),
-('M024',	'双城牧场',	'1111',	'青贮仓-11号窖',1),
-('M024',	'双城牧场',	'1112',	'青贮仓-12号窖',1),
-('M024',	'双城牧场',	'1113',	'青贮仓-13号窖',1),
-('M024',	'双城牧场',	'1114',	'青贮仓-14号窖',1),
-('M024',	'双城牧场',	'1115',	'青贮仓-15号窖',1),
-('M024',	'双城牧场',	'1116',	'青贮仓-16号窖',1),
-('M024',	'双城牧场',	'1117',	'青贮仓-17号窖',1),
-('M024',	'双城牧场',	'1118',	'青贮仓-18号窖',1),
-('M024',	'双城牧场',	'1119',	'青贮仓-19号窖',1),
-('M024',	'双城牧场',	'1120',	'青贮仓-20号窖',1),
-('M024',	'双城牧场',	'1201',	'原奶仓',1),
-('M028',	'新乐牧场',	'1001',	'原材料仓',1),
-('M028',	'新乐牧场',	'1002',	'药品仓',1),
-('M028',	'新乐牧场',	'1003',	'药品二级库',1),
-('M028',	'新乐牧场',	'1004',	'备件仓',1),
-('M028',	'新乐牧场',	'1005',	'综合仓',1),
-('M028',	'新乐牧场',	'1101',	'青贮仓-1号窖',1),
-('M028',	'新乐牧场',	'1102',	'青贮仓-2号窖',1),
-('M028',	'新乐牧场',	'1103',	'青贮仓-3号窖',1),
-('M028',	'新乐牧场',	'1104',	'青贮仓-4号窖',1),
-('M028',	'新乐牧场',	'1105',	'青贮仓-5号窖',1),
-('M028',	'新乐牧场',	'1106',	'青贮仓-6号窖',1),
-('M028',	'新乐牧场',	'1107',	'青贮仓-7号窖',1),
-('M028',	'新乐牧场',	'1108',	'青贮仓-8号窖',1),
-('M028',	'新乐牧场',	'1109',	'青贮仓-9号窖',1),
-('M028',	'新乐牧场',	'1110',	'青贮仓-10号窖',1),
-('M028',	'新乐牧场',	'1111',	'青贮仓-11号窖',1),
-('M028',	'新乐牧场',	'1112',	'青贮仓-12号窖',1),
-('M028',	'新乐牧场',	'1113',	'青贮仓-13号窖',1),
-('M028',	'新乐牧场',	'1114',	'青贮仓-14号窖',1),
-('M028',	'新乐牧场',	'1115',	'青贮仓-15号窖',1),
-('M028',	'新乐牧场',	'1116',	'青贮仓-16号窖',1),
-('M028',	'新乐牧场',	'1117',	'青贮仓-17号窖',1),
-('M028',	'新乐牧场',	'1118',	'青贮仓-18号窖',1),
-('M028',	'新乐牧场',	'1119',	'青贮仓-19号窖',1),
-('M028',	'新乐牧场',	'1120',	'青贮仓-20号窖',1),
-('M028',	'新乐牧场',	'1201',	'原奶仓',1),
-('M029',	'商河牧场',	'1001',	'原材料仓',1),
-('M029',	'商河牧场',	'1002',	'药品仓',1),
-('M029',	'商河牧场',	'1003',	'药品二级库',1),
-('M029',	'商河牧场',	'1004',	'备件仓',1),
-('M029',	'商河牧场',	'1005',	'综合仓',1),
-('M029',	'商河牧场',	'1101',	'青贮仓-1号窖',1),
-('M029',	'商河牧场',	'1102',	'青贮仓-2号窖',1),
-('M029',	'商河牧场',	'1103',	'青贮仓-3号窖',1),
-('M029',	'商河牧场',	'1104',	'青贮仓-4号窖',1),
-('M029',	'商河牧场',	'1105',	'青贮仓-5号窖',1),
-('M029',	'商河牧场',	'1106',	'青贮仓-6号窖',1),
-('M029',	'商河牧场',	'1107',	'青贮仓-7号窖',1),
-('M029',	'商河牧场',	'1108',	'青贮仓-8号窖',1),
-('M029',	'商河牧场',	'1109',	'青贮仓-9号窖',1),
-('M029',	'商河牧场',	'1110',	'青贮仓-10号窖',1),
-('M029',	'商河牧场',	'1111',	'青贮仓-11号窖',1),
-('M029',	'商河牧场',	'1112',	'青贮仓-12号窖',1),
-('M029',	'商河牧场',	'1113',	'青贮仓-13号窖',1),
-('M029',	'商河牧场',	'1114',	'青贮仓-14号窖',1),
-('M029',	'商河牧场',	'1115',	'青贮仓-15号窖',1),
-('M029',	'商河牧场',	'1116',	'青贮仓-16号窖',1),
-('M029',	'商河牧场',	'1117',	'青贮仓-17号窖',1),
-('M029',	'商河牧场',	'1118',	'青贮仓-18号窖',1),
-('M029',	'商河牧场',	'1119',	'青贮仓-19号窖',1),
-('M029',	'商河牧场',	'1120',	'青贮仓-20号窖',1),
-('M029',	'商河牧场',	'1201',	'原奶仓',1),
-('M033',	'阜民丰牧场',	'1001',	'原材料仓',1),
-('M033',	'阜民丰牧场',	'1002',	'药品仓',1),
-('M033',	'阜民丰牧场',	'1003',	'药品二级库',1),
-('M033',	'阜民丰牧场',	'1004',	'备件仓',1),
-('M033',	'阜民丰牧场',	'1005',	'综合仓',1),
-('M033',	'阜民丰牧场',	'1101',	'青贮仓-1号窖',1),
-('M033',	'阜民丰牧场',	'1102',	'青贮仓-2号窖',1),
-('M033',	'阜民丰牧场',	'1103',	'青贮仓-3号窖',1),
-('M033',	'阜民丰牧场',	'1104',	'青贮仓-4号窖',1),
-('M033',	'阜民丰牧场',	'1105',	'青贮仓-5号窖',1),
-('M033',	'阜民丰牧场',	'1106',	'青贮仓-6号窖',1),
-('M033',	'阜民丰牧场',	'1107',	'青贮仓-7号窖',1),
-('M033',	'阜民丰牧场',	'1108',	'青贮仓-8号窖',1),
-('M033',	'阜民丰牧场',	'1109',	'青贮仓-9号窖',1),
-('M033',	'阜民丰牧场',	'1110',	'青贮仓-10号窖',1),
-('M033',	'阜民丰牧场',	'1111',	'青贮仓-11号窖',1),
-('M033',	'阜民丰牧场',	'1112',	'青贮仓-12号窖',1),
-('M033',	'阜民丰牧场',	'1113',	'青贮仓-13号窖',1),
-('M033',	'阜民丰牧场',	'1114',	'青贮仓-14号窖',1),
-('M033',	'阜民丰牧场',	'1115',	'青贮仓-15号窖',1),
-('M033',	'阜民丰牧场',	'1116',	'青贮仓-16号窖',1),
-('M033',	'阜民丰牧场',	'1117',	'青贮仓-17号窖',1),
-('M033',	'阜民丰牧场',	'1118',	'青贮仓-18号窖',1),
-('M033',	'阜民丰牧场',	'1119',	'青贮仓-19号窖',1),
-('M033',	'阜民丰牧场',	'1120',	'青贮仓-20号窖',1),
-('M033',	'阜民丰牧场',	'1201',	'原奶仓',1),
-('M034',	'朝凯牧场',	'1001',	'原材料仓',1),
-('M034',	'朝凯牧场',	'1002',	'药品仓',1),
-('M034',	'朝凯牧场',	'1003',	'药品二级库',1),
-('M034',	'朝凯牧场',	'1004',	'备件仓',1),
-('M034',	'朝凯牧场',	'1005',	'综合仓',1),
-('M034',	'朝凯牧场',	'1101',	'青贮仓-1号窖',1),
-('M034',	'朝凯牧场',	'1102',	'青贮仓-2号窖',1),
-('M034',	'朝凯牧场',	'1103',	'青贮仓-3号窖',1),
-('M034',	'朝凯牧场',	'1104',	'青贮仓-4号窖',1),
-('M034',	'朝凯牧场',	'1105',	'青贮仓-5号窖',1),
-('M034',	'朝凯牧场',	'1106',	'青贮仓-6号窖',1),
-('M034',	'朝凯牧场',	'1107',	'青贮仓-7号窖',1),
-('M034',	'朝凯牧场',	'1108',	'青贮仓-8号窖',1),
-('M034',	'朝凯牧场',	'1109',	'青贮仓-9号窖',1),
-('M034',	'朝凯牧场',	'1110',	'青贮仓-10号窖',1),
-('M034',	'朝凯牧场',	'1111',	'青贮仓-11号窖',1),
-('M034',	'朝凯牧场',	'1112',	'青贮仓-12号窖',1),
-('M034',	'朝凯牧场',	'1113',	'青贮仓-13号窖',1),
-('M034',	'朝凯牧场',	'1114',	'青贮仓-14号窖',1),
-('M034',	'朝凯牧场',	'1115',	'青贮仓-15号窖',1),
-('M034',	'朝凯牧场',	'1116',	'青贮仓-16号窖',1),
-('M034',	'朝凯牧场',	'1117',	'青贮仓-17号窖',1),
-('M034',	'朝凯牧场',	'1118',	'青贮仓-18号窖',1),
-('M034',	'朝凯牧场',	'1119',	'青贮仓-19号窖',1),
-('M034',	'朝凯牧场',	'1120',	'青贮仓-20号窖',1),
-('M034',	'朝凯牧场',	'1201',	'原奶仓',1),
-('M035',	'牧丰牧场',	'1001',	'原材料仓',1),
-('M035',	'牧丰牧场',	'1002',	'药品仓',1),
-('M035',	'牧丰牧场',	'1003',	'药品二级库',1),
-('M035',	'牧丰牧场',	'1004',	'备件仓',1),
-('M035',	'牧丰牧场',	'1005',	'综合仓',1),
-('M035',	'牧丰牧场',	'1101',	'青贮仓-1号窖',1),
-('M035',	'牧丰牧场',	'1102',	'青贮仓-2号窖',1),
-('M035',	'牧丰牧场',	'1103',	'青贮仓-3号窖',1),
-('M035',	'牧丰牧场',	'1104',	'青贮仓-4号窖',1),
-('M035',	'牧丰牧场',	'1105',	'青贮仓-5号窖',1),
-('M035',	'牧丰牧场',	'1106',	'青贮仓-6号窖',1),
-('M035',	'牧丰牧场',	'1107',	'青贮仓-7号窖',1),
-('M035',	'牧丰牧场',	'1108',	'青贮仓-8号窖',1),
-('M035',	'牧丰牧场',	'1109',	'青贮仓-9号窖',1),
-('M035',	'牧丰牧场',	'1110',	'青贮仓-10号窖',1),
-('M035',	'牧丰牧场',	'1111',	'青贮仓-11号窖',1),
-('M035',	'牧丰牧场',	'1112',	'青贮仓-12号窖',1),
-('M035',	'牧丰牧场',	'1113',	'青贮仓-13号窖',1),
-('M035',	'牧丰牧场',	'1114',	'青贮仓-14号窖',1),
-('M035',	'牧丰牧场',	'1115',	'青贮仓-15号窖',1),
-('M035',	'牧丰牧场',	'1116',	'青贮仓-16号窖',1),
-('M035',	'牧丰牧场',	'1117',	'青贮仓-17号窖',1),
-('M035',	'牧丰牧场',	'1118',	'青贮仓-18号窖',1),
-('M035',	'牧丰牧场',	'1119',	'青贮仓-19号窖',1),
-('M035',	'牧丰牧场',	'1120',	'青贮仓-20号窖',1),
-('M035',	'牧丰牧场',	'1201',	'原奶仓',1),
-('M036',	'大庆牧场',	'1001',	'原材料仓',1),
-('M036',	'大庆牧场',	'1002',	'药品仓',1),
-('M036',	'大庆牧场',	'1003',	'药品二级库',1),
-('M036',	'大庆牧场',	'1004',	'备件仓',1),
-('M036',	'大庆牧场',	'1005',	'综合仓',1),
-('M036',	'大庆牧场',	'1101',	'青贮仓-1号窖',1),
-('M036',	'大庆牧场',	'1102',	'青贮仓-2号窖',1),
-('M036',	'大庆牧场',	'1103',	'青贮仓-3号窖',1),
-('M036',	'大庆牧场',	'1104',	'青贮仓-4号窖',1),
-('M036',	'大庆牧场',	'1105',	'青贮仓-5号窖',1),
-('M036',	'大庆牧场',	'1106',	'青贮仓-6号窖',1),
-('M036',	'大庆牧场',	'1107',	'青贮仓-7号窖',1),
-('M036',	'大庆牧场',	'1108',	'青贮仓-8号窖',1),
-('M036',	'大庆牧场',	'1109',	'青贮仓-9号窖',1),
-('M036',	'大庆牧场',	'1110',	'青贮仓-10号窖',1),
-('M036',	'大庆牧场',	'1111',	'青贮仓-11号窖',1),
-('M036',	'大庆牧场',	'1112',	'青贮仓-12号窖',1),
-('M036',	'大庆牧场',	'1113',	'青贮仓-13号窖',1),
-('M036',	'大庆牧场',	'1114',	'青贮仓-14号窖',1),
-('M036',	'大庆牧场',	'1115',	'青贮仓-15号窖',1),
-('M036',	'大庆牧场',	'1116',	'青贮仓-16号窖',1),
-('M036',	'大庆牧场',	'1117',	'青贮仓-17号窖',1),
-('M036',	'大庆牧场',	'1118',	'青贮仓-18号窖',1),
-('M036',	'大庆牧场',	'1119',	'青贮仓-19号窖',1),
-('M036',	'大庆牧场',	'1120',	'青贮仓-20号窖',1),
-('M036',	'大庆牧场',	'1201',	'原奶仓',1),
-('M037',	'兰考牧场',	'1001',	'原材料仓',1),
-('M037',	'兰考牧场',	'1002',	'药品仓',1),
-('M037',	'兰考牧场',	'1003',	'药品二级库',1),
-('M037',	'兰考牧场',	'1004',	'备件仓',1),
-('M037',	'兰考牧场',	'1005',	'综合仓',1),
-('M037',	'兰考牧场',	'1101',	'青贮仓-1号窖',1),
-('M037',	'兰考牧场',	'1102',	'青贮仓-2号窖',1),
-('M037',	'兰考牧场',	'1103',	'青贮仓-3号窖',1),
-('M037',	'兰考牧场',	'1104',	'青贮仓-4号窖',1),
-('M037',	'兰考牧场',	'1105',	'青贮仓-5号窖',1),
-('M037',	'兰考牧场',	'1106',	'青贮仓-6号窖',1),
-('M037',	'兰考牧场',	'1107',	'青贮仓-7号窖',1),
-('M037',	'兰考牧场',	'1108',	'青贮仓-8号窖',1),
-('M037',	'兰考牧场',	'1109',	'青贮仓-9号窖',1),
-('M037',	'兰考牧场',	'1110',	'青贮仓-10号窖',1),
-('M037',	'兰考牧场',	'1111',	'青贮仓-11号窖',1),
-('M037',	'兰考牧场',	'1112',	'青贮仓-12号窖',1),
-('M037',	'兰考牧场',	'1113',	'青贮仓-13号窖',1),
-('M037',	'兰考牧场',	'1114',	'青贮仓-14号窖',1),
-('M037',	'兰考牧场',	'1115',	'青贮仓-15号窖',1),
-('M037',	'兰考牧场',	'1116',	'青贮仓-16号窖',1),
-('M037',	'兰考牧场',	'1117',	'青贮仓-17号窖',1),
-('M037',	'兰考牧场',	'1118',	'青贮仓-18号窖',1),
-('M037',	'兰考牧场',	'1119',	'青贮仓-19号窖',1),
-('M037',	'兰考牧场',	'1120',	'青贮仓-20号窖',1),
-('M037',	'兰考牧场',	'1201',	'原奶仓',1),
-('M038',	'伊磊牧场',	'1001',	'原材料仓',1),
-('M038',	'伊磊牧场',	'1002',	'药品仓',1),
-('M038',	'伊磊牧场',	'1003',	'药品二级库',1),
-('M038',	'伊磊牧场',	'1004',	'备件仓',1),
-('M038',	'伊磊牧场',	'1005',	'综合仓',1),
-('M038',	'伊磊牧场',	'1101',	'青贮仓-1号窖',1),
-('M038',	'伊磊牧场',	'1102',	'青贮仓-2号窖',1),
-('M038',	'伊磊牧场',	'1103',	'青贮仓-3号窖',1),
-('M038',	'伊磊牧场',	'1104',	'青贮仓-4号窖',1),
-('M038',	'伊磊牧场',	'1105',	'青贮仓-5号窖',1),
-('M038',	'伊磊牧场',	'1106',	'青贮仓-6号窖',1),
-('M038',	'伊磊牧场',	'1107',	'青贮仓-7号窖',1),
-('M038',	'伊磊牧场',	'1108',	'青贮仓-8号窖',1),
-('M038',	'伊磊牧场',	'1109',	'青贮仓-9号窖',1),
-('M038',	'伊磊牧场',	'1110',	'青贮仓-10号窖',1),
-('M038',	'伊磊牧场',	'1111',	'青贮仓-11号窖',1),
-('M038',	'伊磊牧场',	'1112',	'青贮仓-12号窖',1),
-('M038',	'伊磊牧场',	'1113',	'青贮仓-13号窖',1),
-('M038',	'伊磊牧场',	'1114',	'青贮仓-14号窖',1),
-('M038',	'伊磊牧场',	'1115',	'青贮仓-15号窖',1),
-('M038',	'伊磊牧场',	'1116',	'青贮仓-16号窖',1),
-('M038',	'伊磊牧场',	'1117',	'青贮仓-17号窖',1),
-('M038',	'伊磊牧场',	'1118',	'青贮仓-18号窖',1),
-('M038',	'伊磊牧场',	'1119',	'青贮仓-19号窖',1),
-('M038',	'伊磊牧场',	'1120',	'青贮仓-20号窖',1),
-('M038',	'伊磊牧场',	'1201',	'原奶仓',1),
-('M041',	'磴口牧场',	'1001',	'原材料仓',1),
-('M041',	'磴口牧场',	'1002',	'药品仓',1),
-('M041',	'磴口牧场',	'1003',	'药品二级库',1),
-('M041',	'磴口牧场',	'1004',	'备件仓',1),
-('M041',	'磴口牧场',	'1005',	'综合仓',1),
-('M041',	'磴口牧场',	'1101',	'青贮仓-1号窖',1),
-('M041',	'磴口牧场',	'1102',	'青贮仓-2号窖',1),
-('M041',	'磴口牧场',	'1103',	'青贮仓-3号窖',1),
-('M041',	'磴口牧场',	'1104',	'青贮仓-4号窖',1),
-('M041',	'磴口牧场',	'1105',	'青贮仓-5号窖',1),
-('M041',	'磴口牧场',	'1106',	'青贮仓-6号窖',1),
-('M041',	'磴口牧场',	'1107',	'青贮仓-7号窖',1),
-('M041',	'磴口牧场',	'1108',	'青贮仓-8号窖',1),
-('M041',	'磴口牧场',	'1109',	'青贮仓-9号窖',1),
-('M041',	'磴口牧场',	'1110',	'青贮仓-10号窖',1),
-('M041',	'磴口牧场',	'1111',	'青贮仓-11号窖',1),
-('M041',	'磴口牧场',	'1112',	'青贮仓-12号窖',1),
-('M041',	'磴口牧场',	'1113',	'青贮仓-13号窖',1),
-('M041',	'磴口牧场',	'1114',	'青贮仓-14号窖',1),
-('M041',	'磴口牧场',	'1115',	'青贮仓-15号窖',1),
-('M041',	'磴口牧场',	'1116',	'青贮仓-16号窖',1),
-('M041',	'磴口牧场',	'1117',	'青贮仓-17号窖',1),
-('M041',	'磴口牧场',	'1118',	'青贮仓-18号窖',1),
-('M041',	'磴口牧场',	'1119',	'青贮仓-19号窖',1),
-('M041',	'磴口牧场',	'1120',	'青贮仓-20号窖',1),
-('M041',	'磴口牧场',	'1201',	'原奶仓',1),
-('M043',	'宿迁牧场',	'1001',	'原材料仓',1),
-('M043',	'宿迁牧场',	'1002',	'药品仓',1),
-('M043',	'宿迁牧场',	'1003',	'药品二级库',1),
-('M043',	'宿迁牧场',	'1004',	'备件仓',1),
-('M043',	'宿迁牧场',	'1005',	'综合仓',1),
-('M043',	'宿迁牧场',	'1101',	'青贮仓-1号窖',1),
-('M043',	'宿迁牧场',	'1102',	'青贮仓-2号窖',1),
-('M043',	'宿迁牧场',	'1103',	'青贮仓-3号窖',1),
-('M043',	'宿迁牧场',	'1104',	'青贮仓-4号窖',1),
-('M043',	'宿迁牧场',	'1105',	'青贮仓-5号窖',1),
-('M043',	'宿迁牧场',	'1106',	'青贮仓-6号窖',1),
-('M043',	'宿迁牧场',	'1107',	'青贮仓-7号窖',1),
-('M043',	'宿迁牧场',	'1108',	'青贮仓-8号窖',1),
-('M043',	'宿迁牧场',	'1109',	'青贮仓-9号窖',1),
-('M043',	'宿迁牧场',	'1110',	'青贮仓-10号窖',1),
-('M043',	'宿迁牧场',	'1111',	'青贮仓-11号窖',1),
-('M043',	'宿迁牧场',	'1112',	'青贮仓-12号窖',1),
-('M043',	'宿迁牧场',	'1113',	'青贮仓-13号窖',1),
-('M043',	'宿迁牧场',	'1114',	'青贮仓-14号窖',1),
-('M043',	'宿迁牧场',	'1115',	'青贮仓-15号窖',1),
-('M043',	'宿迁牧场',	'1116',	'青贮仓-16号窖',1),
-('M043',	'宿迁牧场',	'1117',	'青贮仓-17号窖',1),
-('M043',	'宿迁牧场',	'1118',	'青贮仓-18号窖',1),
-('M043',	'宿迁牧场',	'1119',	'青贮仓-19号窖',1),
-('M043',	'宿迁牧场',	'1120',	'青贮仓-20号窖',1),
-('M043',	'宿迁牧场',	'1201',	'原奶仓',1),
-('M044',	'乌兰牧场',	'1001',	'原材料仓',1),
-('M044',	'乌兰牧场',	'1002',	'药品仓',1),
-('M044',	'乌兰牧场',	'1003',	'药品二级库',1),
-('M044',	'乌兰牧场',	'1004',	'备件仓',1),
-('M044',	'乌兰牧场',	'1005',	'综合仓',1),
-('M044',	'乌兰牧场',	'1101',	'青贮仓-1号窖',1),
-('M044',	'乌兰牧场',	'1102',	'青贮仓-2号窖',1),
-('M044',	'乌兰牧场',	'1103',	'青贮仓-3号窖',1),
-('M044',	'乌兰牧场',	'1104',	'青贮仓-4号窖',1),
-('M044',	'乌兰牧场',	'1105',	'青贮仓-5号窖',1),
-('M044',	'乌兰牧场',	'1106',	'青贮仓-6号窖',1),
-('M044',	'乌兰牧场',	'1107',	'青贮仓-7号窖',1),
-('M044',	'乌兰牧场',	'1108',	'青贮仓-8号窖',1),
-('M044',	'乌兰牧场',	'1109',	'青贮仓-9号窖',1),
-('M044',	'乌兰牧场',	'1110',	'青贮仓-10号窖',1),
-('M044',	'乌兰牧场',	'1111',	'青贮仓-11号窖',1),
-('M044',	'乌兰牧场',	'1112',	'青贮仓-12号窖',1),
-('M044',	'乌兰牧场',	'1113',	'青贮仓-13号窖',1),
-('M044',	'乌兰牧场',	'1114',	'青贮仓-14号窖',1),
-('M044',	'乌兰牧场',	'1115',	'青贮仓-15号窖',1),
-('M044',	'乌兰牧场',	'1116',	'青贮仓-16号窖',1),
-('M044',	'乌兰牧场',	'1117',	'青贮仓-17号窖',1),
-('M044',	'乌兰牧场',	'1118',	'青贮仓-18号窖',1),
-('M044',	'乌兰牧场',	'1119',	'青贮仓-19号窖',1),
-('M044',	'乌兰牧场',	'1120',	'青贮仓-20号窖',1),
-('M044',	'乌兰牧场',	'1201',	'原奶仓',1),
-('M045',	'吴忠牧场',	'1001',	'原材料仓',1),
-('M045',	'吴忠牧场',	'1002',	'药品仓',1),
-('M045',	'吴忠牧场',	'1003',	'药品二级库',1),
-('M045',	'吴忠牧场',	'1004',	'备件仓',1),
-('M045',	'吴忠牧场',	'1005',	'综合仓',1),
-('M045',	'吴忠牧场',	'1101',	'青贮仓-1号窖',1),
-('M045',	'吴忠牧场',	'1102',	'青贮仓-2号窖',1),
-('M045',	'吴忠牧场',	'1103',	'青贮仓-3号窖',1),
-('M045',	'吴忠牧场',	'1104',	'青贮仓-4号窖',1),
-('M045',	'吴忠牧场',	'1105',	'青贮仓-5号窖',1),
-('M045',	'吴忠牧场',	'1106',	'青贮仓-6号窖',1),
-('M045',	'吴忠牧场',	'1107',	'青贮仓-7号窖',1),
-('M045',	'吴忠牧场',	'1108',	'青贮仓-8号窖',1),
-('M045',	'吴忠牧场',	'1109',	'青贮仓-9号窖',1),
-('M045',	'吴忠牧场',	'1110',	'青贮仓-10号窖',1),
-('M045',	'吴忠牧场',	'1111',	'青贮仓-11号窖',1),
-('M045',	'吴忠牧场',	'1112',	'青贮仓-12号窖',1),
-('M045',	'吴忠牧场',	'1113',	'青贮仓-13号窖',1),
-('M045',	'吴忠牧场',	'1114',	'青贮仓-14号窖',1),
-('M045',	'吴忠牧场',	'1115',	'青贮仓-15号窖',1),
-('M045',	'吴忠牧场',	'1116',	'青贮仓-16号窖',1),
-('M045',	'吴忠牧场',	'1117',	'青贮仓-17号窖',1),
-('M045',	'吴忠牧场',	'1118',	'青贮仓-18号窖',1),
-('M045',	'吴忠牧场',	'1119',	'青贮仓-19号窖',1),
-('M045',	'吴忠牧场',	'1120',	'青贮仓-20号窖',1),
-('M045',	'吴忠牧场',	'1201',	'原奶仓',1),
-('M046',	'塞北五牧',	'1001',	'原材料仓',1),
-('M046',	'塞北五牧',	'1002',	'药品仓',1),
-('M046',	'塞北五牧',	'1003',	'药品二级库',1),
-('M046',	'塞北五牧',	'1004',	'备件仓',1),
-('M046',	'塞北五牧',	'1005',	'综合仓',1),
-('M046',	'塞北五牧',	'1101',	'青贮仓-1号窖',1),
-('M046',	'塞北五牧',	'1102',	'青贮仓-2号窖',1),
-('M046',	'塞北五牧',	'1103',	'青贮仓-3号窖',1),
-('M046',	'塞北五牧',	'1104',	'青贮仓-4号窖',1),
-('M046',	'塞北五牧',	'1105',	'青贮仓-5号窖',1),
-('M046',	'塞北五牧',	'1106',	'青贮仓-6号窖',1),
-('M046',	'塞北五牧',	'1107',	'青贮仓-7号窖',1),
-('M046',	'塞北五牧',	'1108',	'青贮仓-8号窖',1),
-('M046',	'塞北五牧',	'1109',	'青贮仓-9号窖',1),
-('M046',	'塞北五牧',	'1110',	'青贮仓-10号窖',1),
-('M046',	'塞北五牧',	'1111',	'青贮仓-11号窖',1),
-('M046',	'塞北五牧',	'1112',	'青贮仓-12号窖',1),
-('M046',	'塞北五牧',	'1113',	'青贮仓-13号窖',1),
-('M046',	'塞北五牧',	'1114',	'青贮仓-14号窖',1),
-('M046',	'塞北五牧',	'1115',	'青贮仓-15号窖',1),
-('M046',	'塞北五牧',	'1116',	'青贮仓-16号窖',1),
-('M046',	'塞北五牧',	'1117',	'青贮仓-17号窖',1),
-('M046',	'塞北五牧',	'1118',	'青贮仓-18号窖',1),
-('M046',	'塞北五牧',	'1119',	'青贮仓-19号窖',1),
-('M046',	'塞北五牧',	'1120',	'青贮仓-20号窖',1),
-('M046',	'塞北五牧',	'1201',	'原奶仓',1),
-('M047',	'赛罕牧场',	'1001',	'原材料仓',1),
-('M047',	'赛罕牧场',	'1002',	'药品仓',1),
-('M047',	'赛罕牧场',	'1003',	'药品二级库',1),
-('M047',	'赛罕牧场',	'1004',	'备件仓',1),
-('M047',	'赛罕牧场',	'1005',	'综合仓',1),
-('M047',	'赛罕牧场',	'1101',	'青贮仓-1号窖',1),
-('M047',	'赛罕牧场',	'1102',	'青贮仓-2号窖',1),
-('M047',	'赛罕牧场',	'1103',	'青贮仓-3号窖',1),
-('M047',	'赛罕牧场',	'1104',	'青贮仓-4号窖',1),
-('M047',	'赛罕牧场',	'1105',	'青贮仓-5号窖',1),
-('M047',	'赛罕牧场',	'1106',	'青贮仓-6号窖',1),
-('M047',	'赛罕牧场',	'1107',	'青贮仓-7号窖',1),
-('M047',	'赛罕牧场',	'1108',	'青贮仓-8号窖',1),
-('M047',	'赛罕牧场',	'1109',	'青贮仓-9号窖',1),
-('M047',	'赛罕牧场',	'1110',	'青贮仓-10号窖',1),
-('M047',	'赛罕牧场',	'1111',	'青贮仓-11号窖',1),
-('M047',	'赛罕牧场',	'1112',	'青贮仓-12号窖',1),
-('M047',	'赛罕牧场',	'1113',	'青贮仓-13号窖',1),
-('M047',	'赛罕牧场',	'1114',	'青贮仓-14号窖',1),
-('M047',	'赛罕牧场',	'1115',	'青贮仓-15号窖',1),
-('M047',	'赛罕牧场',	'1116',	'青贮仓-16号窖',1),
-('M047',	'赛罕牧场',	'1117',	'青贮仓-17号窖',1),
-('M047',	'赛罕牧场',	'1118',	'青贮仓-18号窖',1),
-('M047',	'赛罕牧场',	'1119',	'青贮仓-19号窖',1),
-('M047',	'赛罕牧场',	'1120',	'青贮仓-20号窖',1),
-('M047',	'赛罕牧场',	'1201',	'原奶仓',1),
-('M048',	'托县牧场',	'1001',	'原材料仓',1),
-('M048',	'托县牧场',	'1002',	'药品仓',1),
-('M048',	'托县牧场',	'1003',	'药品二级库',1),
-('M048',	'托县牧场',	'1004',	'备件仓',1),
-('M048',	'托县牧场',	'1005',	'综合仓',1),
-('M048',	'托县牧场',	'1101',	'青贮仓-1号窖',1),
-('M048',	'托县牧场',	'1102',	'青贮仓-2号窖',1),
-('M048',	'托县牧场',	'1103',	'青贮仓-3号窖',1),
-('M048',	'托县牧场',	'1104',	'青贮仓-4号窖',1),
-('M048',	'托县牧场',	'1105',	'青贮仓-5号窖',1),
-('M048',	'托县牧场',	'1106',	'青贮仓-6号窖',1),
-('M048',	'托县牧场',	'1107',	'青贮仓-7号窖',1),
-('M048',	'托县牧场',	'1108',	'青贮仓-8号窖',1),
-('M048',	'托县牧场',	'1109',	'青贮仓-9号窖',1),
-('M048',	'托县牧场',	'1110',	'青贮仓-10号窖',1),
-('M048',	'托县牧场',	'1111',	'青贮仓-11号窖',1),
-('M048',	'托县牧场',	'1112',	'青贮仓-12号窖',1),
-('M048',	'托县牧场',	'1113',	'青贮仓-13号窖',1),
-('M048',	'托县牧场',	'1114',	'青贮仓-14号窖',1),
-('M048',	'托县牧场',	'1115',	'青贮仓-15号窖',1),
-('M048',	'托县牧场',	'1116',	'青贮仓-16号窖',1),
-('M048',	'托县牧场',	'1117',	'青贮仓-17号窖',1),
-('M048',	'托县牧场',	'1118',	'青贮仓-18号窖',1),
-('M048',	'托县牧场',	'1119',	'青贮仓-19号窖',1),
-('M048',	'托县牧场',	'1120',	'青贮仓-20号窖',1),
-('M048',	'托县牧场',	'1201',	'原奶仓',1),
-('M050',	'衡水一牧',	'1001',	'原材料仓',1),
-('M050',	'衡水一牧',	'1002',	'药品仓',1),
-('M050',	'衡水一牧',	'1003',	'药品二级库',1),
-('M050',	'衡水一牧',	'1004',	'备件仓',1),
-('M050',	'衡水一牧',	'1005',	'综合仓',1),
-('M050',	'衡水一牧',	'1101',	'青贮仓-1号窖',1),
-('M050',	'衡水一牧',	'1102',	'青贮仓-2号窖',1),
-('M050',	'衡水一牧',	'1103',	'青贮仓-3号窖',1),
-('M050',	'衡水一牧',	'1104',	'青贮仓-4号窖',1),
-('M050',	'衡水一牧',	'1105',	'青贮仓-5号窖',1),
-('M050',	'衡水一牧',	'1106',	'青贮仓-6号窖',1),
-('M050',	'衡水一牧',	'1107',	'青贮仓-7号窖',1),
-('M050',	'衡水一牧',	'1108',	'青贮仓-8号窖',1),
-('M050',	'衡水一牧',	'1109',	'青贮仓-9号窖',1),
-('M050',	'衡水一牧',	'1110',	'青贮仓-10号窖',1),
-('M050',	'衡水一牧',	'1111',	'青贮仓-11号窖',1),
-('M050',	'衡水一牧',	'1112',	'青贮仓-12号窖',1),
-('M050',	'衡水一牧',	'1113',	'青贮仓-13号窖',1),
-('M050',	'衡水一牧',	'1114',	'青贮仓-14号窖',1),
-('M050',	'衡水一牧',	'1115',	'青贮仓-15号窖',1),
-('M050',	'衡水一牧',	'1116',	'青贮仓-16号窖',1),
-('M050',	'衡水一牧',	'1117',	'青贮仓-17号窖',1),
-('M050',	'衡水一牧',	'1118',	'青贮仓-18号窖',1),
-('M050',	'衡水一牧',	'1119',	'青贮仓-19号窖',1),
-('M050',	'衡水一牧',	'1120',	'青贮仓-20号窖',1),
-('M050',	'衡水一牧',	'1201',	'原奶仓',1),
-('M051',	'和林一牧',	'1001',	'原材料仓',1),
-('M051',	'和林一牧',	'1002',	'药品仓',1),
-('M051',	'和林一牧',	'1003',	'药品二级库',1),
-('M051',	'和林一牧',	'1004',	'备件仓',1),
-('M051',	'和林一牧',	'1005',	'综合仓',1),
-('M051',	'和林一牧',	'1101',	'青贮仓-1号窖',1),
-('M051',	'和林一牧',	'1102',	'青贮仓-2号窖',1),
-('M051',	'和林一牧',	'1103',	'青贮仓-3号窖',1),
-('M051',	'和林一牧',	'1104',	'青贮仓-4号窖',1),
-('M051',	'和林一牧',	'1105',	'青贮仓-5号窖',1),
-('M051',	'和林一牧',	'1106',	'青贮仓-6号窖',1),
-('M051',	'和林一牧',	'1107',	'青贮仓-7号窖',1),
-('M051',	'和林一牧',	'1108',	'青贮仓-8号窖',1),
-('M051',	'和林一牧',	'1109',	'青贮仓-9号窖',1),
-('M051',	'和林一牧',	'1110',	'青贮仓-10号窖',1),
-('M051',	'和林一牧',	'1111',	'青贮仓-11号窖',1),
-('M051',	'和林一牧',	'1112',	'青贮仓-12号窖',1),
-('M051',	'和林一牧',	'1113',	'青贮仓-13号窖',1),
-('M051',	'和林一牧',	'1114',	'青贮仓-14号窖',1),
-('M051',	'和林一牧',	'1115',	'青贮仓-15号窖',1),
-('M051',	'和林一牧',	'1116',	'青贮仓-16号窖',1),
-('M051',	'和林一牧',	'1117',	'青贮仓-17号窖',1),
-('M051',	'和林一牧',	'1118',	'青贮仓-18号窖',1),
-('M051',	'和林一牧',	'1119',	'青贮仓-19号窖',1),
-('M051',	'和林一牧',	'1120',	'青贮仓-20号窖',1),
-('M051',	'和林一牧',	'1201',	'原奶仓',1),
-('M052',	'眉山牧场',	'1001',	'原材料仓',1),
-('M052',	'眉山牧场',	'1002',	'药品仓',1),
-('M052',	'眉山牧场',	'1003',	'药品二级库',1),
-('M052',	'眉山牧场',	'1004',	'备件仓',1),
-('M052',	'眉山牧场',	'1005',	'综合仓',1),
-('M052',	'眉山牧场',	'1101',	'青贮仓-1号窖',1),
-('M052',	'眉山牧场',	'1102',	'青贮仓-2号窖',1),
-('M052',	'眉山牧场',	'1103',	'青贮仓-3号窖',1),
-('M052',	'眉山牧场',	'1104',	'青贮仓-4号窖',1),
-('M052',	'眉山牧场',	'1105',	'青贮仓-5号窖',1),
-('M052',	'眉山牧场',	'1106',	'青贮仓-6号窖',1),
-('M052',	'眉山牧场',	'1107',	'青贮仓-7号窖',1),
-('M052',	'眉山牧场',	'1108',	'青贮仓-8号窖',1),
-('M052',	'眉山牧场',	'1109',	'青贮仓-9号窖',1),
-('M052',	'眉山牧场',	'1110',	'青贮仓-10号窖',1),
-('M052',	'眉山牧场',	'1111',	'青贮仓-11号窖',1),
-('M052',	'眉山牧场',	'1112',	'青贮仓-12号窖',1),
-('M052',	'眉山牧场',	'1113',	'青贮仓-13号窖',1),
-('M052',	'眉山牧场',	'1114',	'青贮仓-14号窖',1),
-('M052',	'眉山牧场',	'1115',	'青贮仓-15号窖',1),
-('M052',	'眉山牧场',	'1116',	'青贮仓-16号窖',1),
-('M052',	'眉山牧场',	'1117',	'青贮仓-17号窖',1),
-('M052',	'眉山牧场',	'1118',	'青贮仓-18号窖',1),
-('M052',	'眉山牧场',	'1119',	'青贮仓-19号窖',1),
-('M052',	'眉山牧场',	'1120',	'青贮仓-20号窖',1),
-('M052',	'眉山牧场',	'1201',	'原奶仓',1),
-('M055',	'临沂牧场',	'1001',	'原材料仓',1),
-('M055',	'临沂牧场',	'1002',	'药品仓',1),
-('M055',	'临沂牧场',	'1003',	'药品二级库',1),
-('M055',	'临沂牧场',	'1004',	'备件仓',1),
-('M055',	'临沂牧场',	'1005',	'综合仓',1),
-('M055',	'临沂牧场',	'1101',	'青贮仓-1号窖',1),
-('M055',	'临沂牧场',	'1102',	'青贮仓-2号窖',1),
-('M055',	'临沂牧场',	'1103',	'青贮仓-3号窖',1),
-('M055',	'临沂牧场',	'1104',	'青贮仓-4号窖',1),
-('M055',	'临沂牧场',	'1105',	'青贮仓-5号窖',1),
-('M055',	'临沂牧场',	'1106',	'青贮仓-6号窖',1),
-('M055',	'临沂牧场',	'1107',	'青贮仓-7号窖',1),
-('M055',	'临沂牧场',	'1108',	'青贮仓-8号窖',1),
-('M055',	'临沂牧场',	'1109',	'青贮仓-9号窖',1),
-('M055',	'临沂牧场',	'1110',	'青贮仓-10号窖',1),
-('M055',	'临沂牧场',	'1111',	'青贮仓-11号窖',1),
-('M055',	'临沂牧场',	'1112',	'青贮仓-12号窖',1),
-('M055',	'临沂牧场',	'1113',	'青贮仓-13号窖',1),
-('M055',	'临沂牧场',	'1114',	'青贮仓-14号窖',1),
-('M055',	'临沂牧场',	'1115',	'青贮仓-15号窖',1),
-('M055',	'临沂牧场',	'1116',	'青贮仓-16号窖',1),
-('M055',	'临沂牧场',	'1117',	'青贮仓-17号窖',1),
-('M055',	'临沂牧场',	'1118',	'青贮仓-18号窖',1),
-('M055',	'临沂牧场',	'1119',	'青贮仓-19号窖',1),
-('M055',	'临沂牧场',	'1120',	'青贮仓-20号窖',1),
-('M055',	'临沂牧场',	'1201',	'原奶仓',1),
-('M056',	'衡水二牧',	'1001',	'原材料仓',1),
-('M056',	'衡水二牧',	'1002',	'药品仓',1),
-('M056',	'衡水二牧',	'1003',	'药品二级库',1),
-('M056',	'衡水二牧',	'1004',	'备件仓',1),
-('M056',	'衡水二牧',	'1005',	'综合仓',1),
-('M056',	'衡水二牧',	'1101',	'青贮仓-1号窖',1),
-('M056',	'衡水二牧',	'1102',	'青贮仓-2号窖',1),
-('M056',	'衡水二牧',	'1103',	'青贮仓-3号窖',1),
-('M056',	'衡水二牧',	'1104',	'青贮仓-4号窖',1),
-('M056',	'衡水二牧',	'1105',	'青贮仓-5号窖',1),
-('M056',	'衡水二牧',	'1106',	'青贮仓-6号窖',1),
-('M056',	'衡水二牧',	'1107',	'青贮仓-7号窖',1),
-('M056',	'衡水二牧',	'1108',	'青贮仓-8号窖',1),
-('M056',	'衡水二牧',	'1109',	'青贮仓-9号窖',1),
-('M056',	'衡水二牧',	'1110',	'青贮仓-10号窖',1),
-('M056',	'衡水二牧',	'1111',	'青贮仓-11号窖',1),
-('M056',	'衡水二牧',	'1112',	'青贮仓-12号窖',1),
-('M056',	'衡水二牧',	'1113',	'青贮仓-13号窖',1),
-('M056',	'衡水二牧',	'1114',	'青贮仓-14号窖',1),
-('M056',	'衡水二牧',	'1115',	'青贮仓-15号窖',1),
-('M056',	'衡水二牧',	'1116',	'青贮仓-16号窖',1),
-('M056',	'衡水二牧',	'1117',	'青贮仓-17号窖',1),
-('M056',	'衡水二牧',	'1118',	'青贮仓-18号窖',1),
-('M056',	'衡水二牧',	'1119',	'青贮仓-19号窖',1),
-('M056',	'衡水二牧',	'1120',	'青贮仓-20号窖',1),
-('M056',	'衡水二牧',	'1201',	'原奶仓',1),
-('M057',	'云南牧场',	'1001',	'原材料仓',1),
-('M057',	'云南牧场',	'1002',	'药品仓',1),
-('M057',	'云南牧场',	'1003',	'药品二级库',1),
-('M057',	'云南牧场',	'1004',	'备件仓',1),
-('M057',	'云南牧场',	'1005',	'综合仓',1),
-('M057',	'云南牧场',	'1101',	'青贮仓-1号窖',1),
-('M057',	'云南牧场',	'1102',	'青贮仓-2号窖',1),
-('M057',	'云南牧场',	'1103',	'青贮仓-3号窖',1),
-('M057',	'云南牧场',	'1104',	'青贮仓-4号窖',1),
-('M057',	'云南牧场',	'1105',	'青贮仓-5号窖',1),
-('M057',	'云南牧场',	'1106',	'青贮仓-6号窖',1),
-('M057',	'云南牧场',	'1107',	'青贮仓-7号窖',1),
-('M057',	'云南牧场',	'1108',	'青贮仓-8号窖',1),
-('M057',	'云南牧场',	'1109',	'青贮仓-9号窖',1),
-('M057',	'云南牧场',	'1110',	'青贮仓-10号窖',1),
-('M057',	'云南牧场',	'1111',	'青贮仓-11号窖',1),
-('M057',	'云南牧场',	'1112',	'青贮仓-12号窖',1),
-('M057',	'云南牧场',	'1113',	'青贮仓-13号窖',1),
-('M057',	'云南牧场',	'1114',	'青贮仓-14号窖',1),
-('M057',	'云南牧场',	'1115',	'青贮仓-15号窖',1),
-('M057',	'云南牧场',	'1116',	'青贮仓-16号窖',1),
-('M057',	'云南牧场',	'1117',	'青贮仓-17号窖',1),
-('M057',	'云南牧场',	'1118',	'青贮仓-18号窖',1),
-('M057',	'云南牧场',	'1119',	'青贮仓-19号窖',1),
-('M057',	'云南牧场',	'1120',	'青贮仓-20号窖',1),
-('M057',	'云南牧场',	'1201',	'原奶仓',1),
-('M053',	'和林二牧-舍必崖',	'1001',	'原材料仓',1),
-('M053',	'和林二牧-舍必崖',	'1002',	'药品仓',1),
-('M053',	'和林二牧-舍必崖',	'1003',	'药品二级库',1),
-('M053',	'和林二牧-舍必崖',	'1004',	'备件仓',1),
-('M053',	'和林二牧-舍必崖',	'1005',	'综合仓',1),
-('M053',	'和林二牧-舍必崖',	'1101',	'青贮仓-1号窖',1),
-('M053',	'和林二牧-舍必崖',	'1102',	'青贮仓-2号窖',1),
-('M053',	'和林二牧-舍必崖',	'1103',	'青贮仓-3号窖',1),
-('M053',	'和林二牧-舍必崖',	'1104',	'青贮仓-4号窖',1),
-('M053',	'和林二牧-舍必崖',	'1105',	'青贮仓-5号窖',1),
-('M053',	'和林二牧-舍必崖',	'1106',	'青贮仓-6号窖',1),
-('M053',	'和林二牧-舍必崖',	'1107',	'青贮仓-7号窖',1),
-('M053',	'和林二牧-舍必崖',	'1108',	'青贮仓-8号窖',1),
-('M053',	'和林二牧-舍必崖',	'1109',	'青贮仓-9号窖',1),
-('M053',	'和林二牧-舍必崖',	'1110',	'青贮仓-10号窖',1),
-('M053',	'和林二牧-舍必崖',	'1111',	'青贮仓-11号窖',1),
-('M053',	'和林二牧-舍必崖',	'1112',	'青贮仓-12号窖',1),
-('M053',	'和林二牧-舍必崖',	'1113',	'青贮仓-13号窖',1),
-('M053',	'和林二牧-舍必崖',	'1114',	'青贮仓-14号窖',1),
-('M053',	'和林二牧-舍必崖',	'1115',	'青贮仓-15号窖',1),
-('M053',	'和林二牧-舍必崖',	'1116',	'青贮仓-16号窖',1),
-('M053',	'和林二牧-舍必崖',	'1117',	'青贮仓-17号窖',1),
-('M053',	'和林二牧-舍必崖',	'1118',	'青贮仓-18号窖',1),
-('M053',	'和林二牧-舍必崖',	'1119',	'青贮仓-19号窖',1),
-('M053',	'和林二牧-舍必崖',	'1120',	'青贮仓-20号窖',1),
-('M053',	'和林二牧-舍必崖',	'1201',	'原奶仓',1),
-('M054',	'和林二牧-马群沟',	'1001',	'原材料仓',1),
-('M054',	'和林二牧-马群沟',	'1002',	'药品仓',1),
-('M054',	'和林二牧-马群沟',	'1003',	'药品二级库',1),
-('M054',	'和林二牧-马群沟',	'1004',	'备件仓',1),
-('M054',	'和林二牧-马群沟',	'1005',	'综合仓',1),
-('M054',	'和林二牧-马群沟',	'1101',	'青贮仓-1号窖',1),
-('M054',	'和林二牧-马群沟',	'1102',	'青贮仓-2号窖',1),
-('M054',	'和林二牧-马群沟',	'1103',	'青贮仓-3号窖',1),
-('M054',	'和林二牧-马群沟',	'1104',	'青贮仓-4号窖',1),
-('M054',	'和林二牧-马群沟',	'1105',	'青贮仓-5号窖',1),
-('M054',	'和林二牧-马群沟',	'1106',	'青贮仓-6号窖',1),
-('M054',	'和林二牧-马群沟',	'1107',	'青贮仓-7号窖',1),
-('M054',	'和林二牧-马群沟',	'1108',	'青贮仓-8号窖',1),
-('M054',	'和林二牧-马群沟',	'1109',	'青贮仓-9号窖',1),
-('M054',	'和林二牧-马群沟',	'1110',	'青贮仓-10号窖',1),
-('M054',	'和林二牧-马群沟',	'1111',	'青贮仓-11号窖',1),
-('M054',	'和林二牧-马群沟',	'1112',	'青贮仓-12号窖',1),
-('M054',	'和林二牧-马群沟',	'1113',	'青贮仓-13号窖',1),
-('M054',	'和林二牧-马群沟',	'1114',	'青贮仓-14号窖',1),
-('M054',	'和林二牧-马群沟',	'1115',	'青贮仓-15号窖',1),
-('M054',	'和林二牧-马群沟',	'1116',	'青贮仓-16号窖',1),
-('M054',	'和林二牧-马群沟',	'1117',	'青贮仓-17号窖',1),
-('M054',	'和林二牧-马群沟',	'1118',	'青贮仓-18号窖',1),
-('M054',	'和林二牧-马群沟',	'1119',	'青贮仓-19号窖',1),
-('M054',	'和林二牧-马群沟',	'1120',	'青贮仓-20号窖',1),
-('M054',	'和林二牧-马群沟',	'1201',	'原奶仓',1),
-('M049',	'和林二牧-大梁',	'1001',	'原材料仓',1),
-('M049',	'和林二牧-大梁',	'1002',	'药品仓',1),
-('M049',	'和林二牧-大梁',	'1003',	'药品二级库',1),
-('M049',	'和林二牧-大梁',	'1004',	'备件仓',1),
-('M049',	'和林二牧-大梁',	'1005',	'综合仓',1),
-('M049',	'和林二牧-大梁',	'1101',	'青贮仓-1号窖',1),
-('M049',	'和林二牧-大梁',	'1102',	'青贮仓-2号窖',1),
-('M049',	'和林二牧-大梁',	'1103',	'青贮仓-3号窖',1),
-('M049',	'和林二牧-大梁',	'1104',	'青贮仓-4号窖',1),
-('M049',	'和林二牧-大梁',	'1105',	'青贮仓-5号窖',1),
-('M049',	'和林二牧-大梁',	'1106',	'青贮仓-6号窖',1),
-('M049',	'和林二牧-大梁',	'1107',	'青贮仓-7号窖',1),
-('M049',	'和林二牧-大梁',	'1108',	'青贮仓-8号窖',1),
-('M049',	'和林二牧-大梁',	'1109',	'青贮仓-9号窖',1),
-('M049',	'和林二牧-大梁',	'1110',	'青贮仓-10号窖',1),
-('M049',	'和林二牧-大梁',	'1111',	'青贮仓-11号窖',1),
-('M049',	'和林二牧-大梁',	'1112',	'青贮仓-12号窖',1),
-('M049',	'和林二牧-大梁',	'1113',	'青贮仓-13号窖',1),
-('M049',	'和林二牧-大梁',	'1114',	'青贮仓-14号窖',1),
-('M049',	'和林二牧-大梁',	'1115',	'青贮仓-15号窖',1),
-('M049',	'和林二牧-大梁',	'1116',	'青贮仓-16号窖',1),
-('M049',	'和林二牧-大梁',	'1117',	'青贮仓-17号窖',1),
-('M049',	'和林二牧-大梁',	'1118',	'青贮仓-18号窖',1),
-('M049',	'和林二牧-大梁',	'1119',	'青贮仓-19号窖',1),
-('M049',	'和林二牧-大梁',	'1120',	'青贮仓-20号窖',1),
-('M049',	'和林二牧-大梁',	'1201',	'原奶仓',1)
-;

+ 0 - 359
doc/sql/i4.sql

@@ -1,359 +0,0 @@
-insert into  save_temp values
-('14.01.01.03.000223',  '震坤行', '震坤行', 16.35   ,100.00),
-('14.01.07.01.000527',  '无供应商旧件',  '无',   33.77222    ,6.00),
-('14.01.07.01.000002',  '无供应商旧件',  '无',   3.12102 ,97.00),
-('14.01.07.01.002781',  '无供应商旧件',  '无',   5.7996  ,12.00),
-('14.01.07.01.000474',  '无供应商旧件',  '无',   6.86187 ,1.00),
-('14.07.01.01.000040',  '无供应商旧件',  '无',   8.80313 ,1.00),
-('14.01.07.01.002060',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.02.15.08.000169',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.02.02.01.000739',  '无供应商旧件',  '无',   169.05313   ,1.00),
-('14.01.05.06.000181',  '无供应商旧件',  '无',   44.31571    ,4.00),
-('14.02.15.02.000522',  '无供应商旧件',  '无',   30.8012 ,2.00),
-('14.02.02.01.000753',  '无供应商旧件',  '无',   144.05313   ,1.00),
-('14.01.07.01.001982',  '无供应商旧件',  '无',   15.35062    ,1.00),
-('14.02.02.05.000198',  '无供应商旧件',  '无',   29.99063    ,1.00),
-('14.03.01.04.000009',  '无供应商旧件',  '无',   279.66938   ,1.00),
-('14.02.15.02.000527',  '无供应商旧件',  '无',   106.50953   ,5.00),
-('14.01.05.02.000525',  '无供应商旧件',  '无',   237.69313   ,1.00),
-('14.02.04.01.000101',  '无供应商旧件',  '无',   315.1625    ,3.00),
-('14.03.01.04.000025',  '无供应商旧件',  '无',   58.89938    ,1.00),
-('14.03.01.04.000026',  '无供应商旧件',  '无',   461.63125   ,1.00),
-('14.01.01.05.000310',  '无供应商旧件',  '无',   685.2172    ,2.00),
-('14.02.04.01.000103',  '无供应商旧件',  '无',   1418.08063  ,1.00),
-('14.02.01.01.001617',  '无供应商旧件',  '无',   166.83563   ,1.00),
-('14.02.04.01.000104',  '无供应商旧件',  '无',   134.11438   ,1.00),
-('14.02.04.01.000106',  '无供应商旧件',  '无',   416.205 ,3.00),
-('14.01.04.05.000517',  '无供应商旧件',  '无',   335.1852    ,2.00),
-('14.01.04.05.000519',  '无供应商旧件',  '无',   409.83  ,2.00),
-('14.02.15.03.000200',  '无供应商旧件',  '无',   247.805 ,1.00),
-('14.01.04.05.000520',  '无供应商旧件',  '无',   275.43688   ,1.00),
-('14.01.07.01.001987',  '无供应商旧件',  '无',   192.74414   ,25.00),
-('14.02.04.01.000120',  '无供应商旧件',  '无',   45.43898    ,4.00),
-('14.02.04.01.000121',  '无供应商旧件',  '无',   452.4828    ,2.00),
-('14.03.01.04.000029',  '无供应商旧件',  '无',   98.55313    ,1.00),
-('14.02.15.06.000172',  '无供应商旧件',  '无',   13.92131    ,40.00),
-('14.01.03.01.000008',  '无供应商旧件',  '无',   14.0411 ,7.00),
-('14.01.03.01.000010',  '无供应商旧件',  '无',   9.05187 ,1.00),
-('14.01.03.01.000012',  '无供应商旧件',  '无',   10.95563    ,1.00),
-('14.01.03.01.000020',  '无供应商旧件',  '无',   6.70918 ,4.00),
-('14.01.03.01.000065',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.03.01.000103',  '无供应商旧件',  '无',   55.78813    ,1.00),
-('14.01.03.01.000902',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.03.01.000182',  '无供应商旧件',  '无',   39.6779 ,7.00),
-('14.01.03.01.000220',  '无供应商旧件',  '无',   17.8396 ,2.00),
-('14.01.03.02.000566',  '无供应商旧件',  '无',   17.1788 ,12.00),
-('14.01.03.02.000203',  '无供应商旧件',  '无',   9.41361 ,15.00),
-('14.01.03.02.000127',  '无供应商旧件',  '无',   4.21843 ,8.00),
-('14.01.03.02.000136',  '无供应商旧件',  '无',   3.63781 ,11.00),
-('14.01.03.02.000160',  '无供应商旧件',  '无',   4.70318 ,69.00),
-('14.01.03.02.000161',  '无供应商旧件',  '无',   4.66969 ,5.00),
-('14.01.03.02.000163',  '无供应商旧件',  '无',   4.83727 ,8.00),
-('14.01.03.02.000168',  '无供应商旧件',  '无',   4.38555 ,6.00),
-('14.01.03.02.000155',  '无供应商旧件',  '无',   5.56    ,3.00),
-('14.01.03.02.000210',  '无供应商旧件',  '无',   4.78882 ,10.00),
-('14.01.03.02.000214',  '无供应商旧件',  '无',   8.19833 ,15.00),
-('14.01.03.02.000356',  '无供应商旧件',  '无',   26.4775 ,3.00),
-('14.01.03.02.000360',  '无供应商旧件',  '无',   72.2396 ,2.00),
-('14.01.03.02.000365',  '无供应商旧件',  '无',   11.2444 ,2.00),
-('14.01.03.01.000932',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.03.02.000179',  '无供应商旧件',  '无',   6.5675  ,3.00),
-('14.01.03.02.000190',  '无供应商旧件',  '无',   6.38555 ,6.00),
-('14.01.03.02.000191',  '无供应商旧件',  '无',   6.2875  ,3.00),
-('14.01.03.02.000064',  '无供应商旧件',  '无',   7.33438 ,1.00),
-('14.01.03.02.001647',  '无供应商旧件',  '无',   11.35   ,3.00),
-('14.01.03.02.000611',  '无供应商旧件',  '无',   7.055   ,3.00),
-('14.01.03.02.000623',  '无供应商旧件',  '无',   8.06188 ,1.00),
-('14.01.03.02.000184',  '无供应商旧件',  '无',   6.415   ,3.00),
-('14.01.07.02.001310',  '无供应商旧件',  '无',   23.9925 ,3.00),
-('14.01.03.02.000183',  '无供应商旧件',  '无',   6.3916  ,2.00),
-('14.01.03.02.000178',  '无供应商旧件',  '无',   5.1721  ,7.00),
-('14.01.04.01.000372',  '无供应商旧件',  '无',   2.61932 ,51.00),
-('14.01.04.01.000015',  '无供应商旧件',  '无',   4.10153 ,20.00),
-('14.01.04.01.000452',  '无供应商旧件',  '无',   7.56498 ,100.00),
-('14.01.04.01.000621',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.04.01.001090',  '无供应商旧件',  '无',   35.9275 ,3.00),
-('14.01.04.01.001095',  '无供应商旧件',  '无',   33.83082    ,4.00),
-('14.01.04.01.001099',  '无供应商旧件',  '无',   68.44959    ,4.00),
-('14.01.04.01.001113',  '无供应商旧件',  '无',   76.74944    ,30.00),
-('14.01.04.01.001116',  '无供应商旧件',  '无',   9.34313 ,1.00),
-('14.01.04.01.001133',  '无供应商旧件',  '无',   22.28796    ,4.00),
-('14.01.04.01.001139',  '无供应商旧件',  '无',   8.265   ,3.00),
-('14.01.04.01.001146',  '无供应商旧件',  '无',   9.25667 ,6.00),
-('14.01.04.01.001201',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.04.01.001202',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.04.01.001216',  '无供应商旧件',  '无',   38.414  ,2.00),
-('14.01.04.05.000071',  '无供应商旧件',  '无',   5.63453 ,5.00),
-('14.01.04.05.000079',  '无供应商旧件',  '无',   6.12672 ,5.00),
-('14.01.04.05.000535',  '无供应商旧件',  '无',   30.90375    ,4.50),
-('14.01.04.05.000249',  '无供应商旧件',  '无',   9.8222  ,7.00),
-('14.01.04.05.000294',  '无供应商旧件',  '无',   10.6975 ,3.00),
-('14.01.04.05.000296',  '无供应商旧件',  '无',   6.99    ,45.00),
-('14.01.04.05.000579',  '无供应商旧件',  '无',   6.32388 ,4.00),
-('14.01.05.01.000004',  '无供应商旧件',  '无',   28.06875    ,1.00),
-('14.01.05.03.000008',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.05.07.001500',  '无供应商旧件',  '无',   548.72773   ,17.00),
-('14.01.05.07.000170',  '无供应商旧件',  '无',   52.96563    ,1.00),
-('14.01.06.03.000018',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.07.01.002059',  '无供应商旧件',  '无',   11.24   ,5.00),
-('14.01.07.01.002066',  '无供应商旧件',  '无',   20.98555    ,6.00),
-('14.01.04.05.000597',  '无供应商旧件',  '无',   7.73982 ,36.00),
-('14.01.04.02.000515',  '无供应商旧件',  '无',   12.61   ,1.00),
-('14.01.04.02.000576',  '无供应商旧件',  '无',   64.9725 ,3.00),
-('14.01.03.01.000937',  '无供应商旧件',  '无',   31.86563    ,1.00),
-('14.01.05.07.001503',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.05.07.001505',  '无供应商旧件',  '无',   92.0875 ,3.00),
-('14.01.03.02.001706',  '无供应商旧件',  '无',   10.01694    ,4.00),
-('14.01.03.02.001707',  '无供应商旧件',  '无',   6.32333 ,6.00),
-('14.01.03.01.000942',  '无供应商旧件',  '无',   28.08506    ,8.00),
-('14.01.03.02.001714',  '无供应商旧件',  '无',   7.2412  ,2.00),
-('14.01.04.03.000408',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.07.01.002076',  '无供应商旧件',  '无',   26.89531    ,4.00),
-('14.01.04.05.000601',  '无供应商旧件',  '无',   22.72875    ,9.00),
-('14.01.03.01.000949',  '无供应商旧件',  '无',   57.23   ,4.00),
-('14.01.03.02.001724',  '无供应商旧件',  '无',   10.86563    ,1.00),
-('14.01.02.04.000002',  '无供应商旧件',  '无',   30.01367    ,4.00),
-('14.01.04.01.001261',  '无供应商旧件',  '无',   2.42878 ,22.00),
-('14.02.15.03.000045',  '无供应商旧件',  '无',   11.8716 ,2.00),
-('14.01.07.01.002090',  '无供应商旧件',  '无',   21.16143    ,4.00),
-('14.01.03.01.000954',  '无供应商旧件',  '无',   22.8748 ,2.00),
-('14.01.03.01.000956',  '无供应商旧件',  '无',   25.6275 ,3.00),
-('14.01.04.05.000612',  '无供应商旧件',  '无',   6.27166 ,20.00),
-('14.01.03.01.000961',  '无供应商旧件',  '无',   97.8331 ,20.00),
-('14.02.11.03.000169',  '无供应商旧件',  '无',   7.5516  ,2.00),
-('14.02.15.03.000020',  '无供应商旧件',  '无',   22.5116 ,2.00),
-('14.02.12.02.000056',  '无供应商旧件',  '无',   12.07063    ,1.00),
-('14.01.01.02.000636',  '无供应商旧件',  '无',   5.77029 ,15.00),
-('14.01.03.01.000966',  '无供应商旧件',  '无',   19.66265    ,4.00),
-('14.01.03.02.001750',  '无供应商旧件',  '无',   8.42955 ,16.00),
-('14.01.03.02.001751',  '无供应商旧件',  '无',   7.92813 ,1.00),
-('14.01.03.02.001068',  '无供应商旧件',  '无',   6.23625 ,9.00),
-('14.01.03.01.000969',  '无供应商旧件',  '无',   16.4524 ,2.00),
-('14.01.03.01.000970',  '无供应商旧件',  '无',   7.0508  ,2.00),
-('14.01.03.02.001759',  '无供应商旧件',  '无',   33.94703    ,5.00),
-('14.01.07.01.002119',  '无供应商旧件',  '无',   11.0225 ,3.00),
-('14.01.03.02.001760',  '无供应商旧件',  '无',   95.61563    ,1.00),
-('14.01.07.01.002120',  '无供应商旧件',  '无',   12.3    ,3.00),
-('14.01.07.01.002121',  '无供应商旧件',  '无',   30.72457    ,23.00),
-('14.02.12.01.000140',  '无供应商旧件',  '无',   13.4675 ,1.00),
-('14.01.03.02.001768',  '无供应商旧件',  '无',   49.8652 ,2.00),
-('14.01.01.01.001030',  '无供应商旧件',  '无',   8.19    ,3.00),
-('14.01.03.01.000695',  '无供应商旧件',  '无',   8.71438 ,1.00),
-('14.01.07.02.001355',  '无供应商旧件',  '无',   101.4063    ,17.00),
-('14.01.01.02.000645',  '无供应商旧件',  '无',   12.2956 ,2.00),
-('14.01.03.02.001862',  '无供应商旧件',  '无',   7.5996  ,2.00),
-('14.01.03.02.001887',  '无供应商旧件',  '无',   3.97397 ,16.00),
-('14.01.04.01.001338',  '无供应商旧件',  '无',   9.49122 ,4.00),
-('14.01.04.01.001342',  '无供应商旧件',  '无',   279.43889   ,6.00),
-('14.01.05.02.000548',  '无供应商旧件',  '无',   83.42813    ,1.00),
-('14.01.04.05.000632',  '无供应商旧件',  '无',   159.4716    ,2.00),
-('14.01.03.01.001026',  '无供应商旧件',  '无',   183.74063   ,1.00),
-('14.01.07.01.002258',  '无供应商旧件',  '无',   135.3116    ,2.00),
-('14.01.04.05.000637',  '无供应商旧件',  '无',   261.8716    ,2.00),
-('14.01.07.01.002265',  '无供应商旧件',  '无',   224.998 ,2.00),
-('14.01.02.02.000382',  '无供应商旧件',  '无',   26.83375    ,5.00),
-('14.01.04.01.001349',  '无供应商旧件',  '无',   10.80875    ,1.00),
-('14.01.04.01.001350',  '无供应商旧件',  '无',   9.74438 ,1.00),
-('14.07.01.01.000257',  '无供应商旧件',  '无',   1.26845 ,100.00),
-('14.03.02.05.000020',  '无供应商旧件',  '无',   7.79196 ,600.00),
-('14.01.07.01.002337',  '无供应商旧件',  '无',   589.8716    ,2.00),
-('14.01.03.01.001051',  '无供应商旧件',  '无',   112.36625   ,1.00),
-('14.01.03.01.001052',  '无供应商旧件',  '无',   434.99445   ,6.00),
-('14.01.03.01.001053',  '无供应商旧件',  '无',   190.55  ,6.00),
-('14.01.03.01.001054',  '无供应商旧件',  '无',   209.3649    ,7.00),
-('14.01.01.04.000216',  '无供应商旧件',  '无',   19.22775    ,7.00),
-('14.01.03.01.001055',  '无供应商旧件',  '无',   19.095  ,3.00),
-('14.01.07.01.001342',  '无供应商旧件',  '无',   10.8225 ,3.00),
-('14.01.06.02.000137',  '无供应商旧件',  '无',   32.23781    ,14.00),
-('14.02.01.01.001626',  '无供应商旧件',  '无',   8.392   ,2.00),
-('14.01.07.01.002400',  '无供应商旧件',  '无',   6.8048  ,11.00),
-('14.01.04.01.001392',  '无供应商旧件',  '无',   10.1025 ,3.00),
-('14.01.07.01.002406',  '无供应商旧件',  '无',   2.47068 ,105.00),
-('14.01.03.01.001067',  '无供应商旧件',  '无',   62.12813    ,1.00),
-('14.01.07.01.002407',  '无供应商旧件',  '无',   26.3516 ,2.00),
-('14.01.07.01.002843',  '无供应商旧件',  '无',   20.291  ,1.00),
-('14.01.07.01.002881',  '无供应商旧件',  '无',   43.85667    ,6.00),
-('14.01.01.02.000690',  '无供应商旧件',  '无',   11.0375 ,3.00),
-('14.01.01.02.000697',  '无供应商旧件',  '无',   9.74265 ,4.00),
-('14.01.01.02.000698',  '无供应商旧件',  '无',   8.3852  ,2.00),
-('14.01.01.02.000700',  '无供应商旧件',  '无',   17.16653    ,8.00),
-('14.01.01.02.000701',  '无供应商旧件',  '无',   17.67188    ,9.00),
-('14.01.01.02.000702',  '无供应商旧件',  '无',   30.05116    ,8.00),
-('14.01.01.01.001125',  '无供应商旧件',  '无',   18.17694    ,4.00),
-('14.01.01.01.001126',  '无供应商旧件',  '无',   14.19   ,2.00),
-('14.01.01.01.001127',  '无供应商旧件',  '无',   48.17359    ,5.00),
-('14.01.01.01.001143',  '无供应商旧件',  '无',   22.99326    ,4.00),
-('14.01.01.01.001144',  '无供应商旧件',  '无',   10.09313    ,1.00),
-('14.01.01.01.001145',  '无供应商旧件',  '无',   30.17359    ,5.00),
-('14.01.01.01.001146',  '无供应商旧件',  '无',   12.375  ,1.00),
-('14.01.01.01.001147',  '无供应商旧件',  '无',   31.5996 ,2.00),
-('14.01.01.02.000736',  '无供应商旧件',  '无',   12.87735    ,4.00),
-('14.01.01.02.000737',  '无供应商旧件',  '无',   16.1475 ,3.00),
-('14.01.01.04.000263',  '无供应商旧件',  '无',   61.64796    ,4.00),
-('14.01.01.04.000265',  '无供应商旧件',  '无',   236.39625   ,5.00),
-('14.01.01.01.001197',  '无供应商旧件',  '无',   7.28047 ,13.00),
-('14.01.01.01.001243',  '无供应商旧件',  '无',   5.22217 ,8.00),
-('14.01.01.01.001258',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.01.01.001259',  '无供应商旧件',  '无',   3.15672 ,22.00),
-('14.01.01.05.000348',  '无供应商旧件',  '无',   12.75625    ,1.00),
-('14.01.05.02.000568',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.01.02.000817',  '无供应商旧件',  '无',   11.915  ,3.00),
-('14.01.01.02.000818',  '无供应商旧件',  '无',   11.71163    ,4.00),
-('14.01.01.01.001277',  '无供应商旧件',  '无',   9.62314 ,1.00),
-('14.01.05.07.001530',  '无供应商旧件',  '无',   56.406  ,2.00),
-('14.01.01.02.000825',  '无供应商旧件',  '无',   12.39688    ,1.00),
-('14.01.01.01.001284',  '无供应商旧件',  '无',   12.4495 ,13.00),
-('14.01.01.01.001285',  '无供应商旧件',  '无',   15.35313    ,1.00),
-('14.01.01.02.000832',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.05.06.000202',  '无供应商旧件',  '无',   15.5804 ,2.00),
-('14.01.01.02.000835',  '无供应商旧件',  '无',   9.55313 ,1.00),
-('14.01.01.01.001291',  '无供应商旧件',  '无',   12.57984    ,5.00),
-('14.01.01.02.000837',  '无供应商旧件',  '无',   9.1875  ,1.00),
-('14.01.05.06.000205',  '无供应商旧件',  '无',   17.4012 ,2.00),
-('14.01.07.01.002442',  '无供应商旧件',  '无',   112.47828   ,5.00),
-('14.01.01.02.000838',  '无供应商旧件',  '无',   16.82   ,1.00),
-('14.01.05.03.000133',  '无供应商旧件',  '无',   73.4556 ,2.00),
-('14.01.01.01.001301',  '无供应商旧件',  '无',   9.61667 ,6.00),
-('14.01.05.07.001539',  '无供应商旧件',  '无',   176.07438   ,1.00),
-('14.01.01.02.000843',  '无供应商旧件',  '无',   21.98755    ,4.00),
-('14.01.01.01.001316',  '无供应商旧件',  '无',   28.11563    ,1.00),
-('14.01.01.01.001317',  '无供应商旧件',  '无',   37.5308 ,2.00),
-('14.01.05.01.000291',  '无供应商旧件',  '无',   251.9925    ,3.00),
-('14.01.05.01.000292',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.05.01.000294',  '无供应商旧件',  '无',   87.62813    ,1.00),
-('14.01.07.01.002453',  '无供应商旧件',  '无',   219.10328   ,5.00),
-('14.01.01.01.001327',  '无供应商旧件',  '无',   11.3628 ,2.00),
-('14.01.07.01.002456',  '无供应商旧件',  '无',   5.865   ,3.00),
-('14.01.05.07.001540',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.05.07.001542',  '无供应商旧件',  '无',   46.50313    ,1.00),
-('14.01.01.02.000863',  '无供应商旧件',  '无',   17.68822    ,10.00),
-('14.01.01.02.000875',  '无供应商旧件',  '无',   21.66188    ,5.00),
-('14.01.01.01.001374',  '无供应商旧件',  '无',   5.65667 ,6.00),
-('14.01.01.02.000342',  '无供应商旧件',  '无',   8.39    ,6.00),
-('14.01.01.04.000377',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.01.01.001525',  '无供应商旧件',  '无',   15.00333    ,6.00),
-('14.01.01.02.000940',  '无供应商旧件',  '无',   11.69667    ,6.00),
-('14.01.01.02.001058',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.07.01.002471',  '无供应商旧件',  '无',   190.30313   ,1.00),
-('14.02.13.02.000029',  '无供应商旧件',  '无',   75.672  ,0.00),
-('14.01.02.02.000421',  '无供应商旧件',  '无',   396.92455   ,8.00),
-('14.01.02.02.000422',  '无供应商旧件',  '无',   236.535 ,3.00),
-('14.01.01.02.000093',  '无供应商旧件',  '无',   37.68531    ,5.00),
-('14.01.07.01.002495',  '无供应商旧件',  '无',   101.04341   ,16.00),
-('14.03.02.05.000203',  '无供应商旧件',  '无',   107.422 ,2.00),
-('14.01.01.05.000360',  '无供应商旧件',  '无',   341.51408   ,4.00),
-('14.01.07.01.002498',  '无供应商旧件',  '无',   164.0575    ,3.00),
-('14.03.02.05.000205',  '无供应商旧件',  '无',   138.868 ,0.00),
-('14.01.04.05.000666',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.07.02.001527',  '无供应商旧件',  '无',   141.8716    ,2.00),
-('14.02.14.01.000102',  '无供应商旧件',  '无',   95.4716 ,2.00),
-('14.01.07.02.001528',  '无供应商旧件',  '无',   117.8716    ,2.00),
-('14.03.02.05.000208',  '无供应商旧件',  '无',   504.17813   ,1.00),
-('14.03.02.05.000209',  '无供应商旧件',  '无',   121.42813   ,1.00),
-('14.02.15.09.001273',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.02.15.09.001274',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.01.05.000129',  '无供应商旧件',  '无',   189.8716    ,2.00),
-('14.02.14.03.000027',  '无供应商旧件',  '无',   172.38625   ,1.00),
-('14.02.14.03.000028',  '无供应商旧件',  '无',   148.38102   ,4.00),
-('14.02.10.01.000899',  '无供应商旧件',  '无',   19.88453    ,5.00),
-('14.01.04.01.001427',  '无供应商旧件',  '无',   19.2449 ,7.00),
-('14.02.10.01.000990',  '无供应商旧件',  '无',   10.15313    ,1.00),
-('14.02.10.01.000999',  '无供应商旧件',  '无',   9.95313 ,1.00),
-('14.01.01.02.000898',  '无供应商旧件',  '无',   15.86563    ,1.00),
-('14.02.02.02.001333',  '无供应商旧件',  '无',   50.6716 ,2.00),
-('14.02.02.03.001155',  '无供应商旧件',  '无',   281.05313   ,1.00),
-('14.02.02.02.001368',  '无供应商旧件',  '无',   466.6716    ,2.00),
-('14.01.07.01.002547',  '无供应商旧件',  '无',   377.655 ,3.00),
-('14.02.15.02.000566',  '无供应商旧件',  '无',   31.66111    ,6.00),
-('14.02.15.02.000567',  '无供应商旧件',  '无',   11.9675 ,3.00),
-('14.01.07.01.002552',  '无供应商旧件',  '无',   100.2716    ,2.00),
-('14.02.15.02.000306',  '无供应商旧件',  '无',   11.5036 ,2.00),
-('14.01.05.06.000235',  '无供应商旧件',  '无',   21.16469    ,4.00),
-('14.01.05.06.000237',  '无供应商旧件',  '无',   8.63438 ,1.00),
-('14.02.01.01.001724',  '无供应商旧件',  '无',   14.67813    ,1.00),
-('14.02.15.09.001006',  '无供应商旧件',  '无',   10.92813    ,1.00),
-('14.04.02.01.000030',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.01.07.01.002555',  '无供应商旧件',  '无',   16.2716 ,2.00),
-('14.02.15.02.000574',  '无供应商旧件',  '无',   32.87281    ,5.00),
-('14.02.12.01.000170',  '无供应商旧件',  '无',   21.68714    ,4.00),
-('14.02.15.09.001014',  '无供应商旧件',  '无',   12.32778    ,6.00),
-('14.02.15.02.000578',  '无供应商旧件',  '无',   32.79245    ,4.00),
-('14.02.01.01.001739',  '无供应商旧件',  '无',   20.45429    ,4.00),
-('14.02.01.01.001740',  '无供应商旧件',  '无',   10.05313    ,1.00),
-('14.02.02.02.001384',  '无供应商旧件',  '无',   28.03   ,6.00),
-('14.02.15.01.000067',  '无供应商旧件',  '无',   7.13281 ,8.00),
-('14.02.15.02.000106',  '无供应商旧件',  '无',   8.69313 ,1.00),
-('14.01.05.06.000253',  '无供应商旧件',  '无',   23.316  ,2.00),
-('14.02.10.01.001076',  '无供应商旧件',  '无',   51.8875 ,3.00),
-('14.02.15.03.000218',  '无供应商旧件',  '无',   48.2716 ,2.00),
-('14.02.15.02.000583',  '无供应商旧件',  '无',   17.2316 ,2.00),
-('14.01.04.01.001457',  '无供应商旧件',  '无',   8.74063 ,1.00),
-('14.02.01.01.001794',  '无供应商旧件',  '无',   10.791  ,1.00),
-('14.01.05.06.000257',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.02.02.02.001402',  '无供应商旧件',  '无',   8.55313 ,1.00),
-('14.01.05.06.000268',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.04.02.01.000649',  '无供应商旧件',  '无',   16.77222    ,6.00),
-('14.04.02.01.000651',  '无供应商旧件',  '无',   6.99    ,0.00),
-('14.02.15.02.000058',  '无供应商旧件',  '无',   9.67813 ,1.00),
-('14.02.15.02.000298',  '无供应商旧件',  '无',   22.17545    ,8.00),
-('14.02.15.02.000677',  '无供应商旧件',  '无',   18.02025    ,7.00),
-('14.01.02.01.000892',  '无供应商旧件',  '无',   7.035   ,9.00),
-('14.01.02.01.000893',  '无供应商旧件',  '无',   13.12281    ,5.00),
-('14.01.05.07.001565',  '无供应商旧件',  '无',   651.4925    ,3.00),
-('14.02.15.07.000328',  '无供应商旧件',  '无',   43.9532 ,2.00),
-('14.01.01.01.001405',  '无供应商旧件',  '无',   28.85625    ,1.00),
-('14.01.01.02.000902',  '无供应商旧件',  '无',   9.30313 ,1.00),
-('14.01.04.01.001480',  '无供应商旧件',  '无',   97.6    ,3.00),
-('14.02.15.02.000600',  '无供应商旧件',  '无',   126.41862   ,50.00),
-('14.01.05.03.000139',  '无供应商旧件',  '无',   288.80225   ,4.00),
-('14.01.03.01.000710',  '无供应商旧件',  '无',   21.1971 ,10.00),
-('14.02.15.02.000601',  '无供应商旧件',  '无',   26.70267    ,20.00),
-('14.02.15.02.000602',  '无供应商旧件',  '无',   30.23852    ,10.00),
-('14.01.03.02.001991',  '无供应商旧件',  '无',   161.07132   ,0.00),
-('14.02.15.03.000040',  '无供应商旧件',  '无',   6.,99     ),
-('14.01.05.07.001571',  '无供应商旧件',  '无',   180.45313   ,1.00),
-('14.01.04.01.001202',  '宿迁竣孝'  ,  'SKF', 23.5    ,5.00),
-('14.01.05.01.000298',  '宿迁竣孝'  ,  '/',   2223.1  ,2.00),
-('14.01.05.07.001531',  '宿迁竣孝'  ,  '/',   3553.2  ,2.00),
-('14.01.04.01.001151',  '震坤行', '震坤行', 14.79   ,5.00),
-('14.01.03.02.000378',  '震坤行', '震坤行', 36.27   ,6.00),
-('14.01.07.01.002843',  '无供应商旧件' ,  ''  ,   -59.515 ,0.00),
-('14.03.02.05.000205',  '无供应商旧件' ,  ''  ,   -2630.57    ,1.00),
-('14.01.03.01.001051',  '无供应商旧件' ,  ''  ,   -414.515    ,0.00),
-('14.01.04.01.000621',  '无供应商旧件' ,  ''  ,   -16.44  ,0.00),
-('14.02.13.02.000029',  '无供应商旧件' ,  ''  ,   -164.715    ,2.00),
-('14.01.02.03.000064',  '震坤行', '震坤行', 482.91  ,1.00),
-('14.01.01.01.001258',  '震坤行', '震坤行', 1.39    ,23.00),
-('14.01.01.04.000377',  '震坤行', '震坤行', 48.27   ,10.00),
-('14.01.07.01.003053',  '震坤行', '震坤行', 22.97   ,5.00),
-('14.01.07.01.001775',  '震坤行', '震坤行', 35.34   ,1.00),
-('14.01.04.03.000408',  '宿迁竣孝',    'SKF', 150.4   ,3.00),
-('14.01.05.07.001503',  '宿迁竣孝',    '/',   394.8   ,4.00),
-('14.01.05.02.000568',  '宿迁竣孝',    '/',   253.8   ,4.00),
-('14.03.02.05.000223',  '巨力索具',    '巨力',  7.8 ,1000.00),
-('14.01.06.03.000069',  '衡水高诚商贸',  '通用',  17.75   ,18.00),
-('14.01.01.02.000832',  '衡水高诚商贸',  '通用',  45.74   ,6.00),
-('14.01.07.01.002407',  '衡水高诚商贸',  '加工',  120 ,15.00),
-('14.03.02.05.000114',  '康斯坦丁临沂分公司',   '康斯坦丁',    7529    ,1.00),
-('14.02.15.03.000022',  '宿迁珺丞(汽配)',    '正新',  32  ,4.00),
-('14.01.03.02.001760',  '衡水高诚商贸',  '通用',  1425    ,2.00),
-('14.01.07.01.002493',  '衡水高诚商贸',  '加工',  550 ,2.00),
-('14.02.15.02.000106',  '宿迁珺丞(汽配)',    '滤之星', 25  ,2.00),
-('14.02.15.02.000307',  '宿迁珺丞(汽配)',    '威信龙', 38  ,10.00),
-('14.02.15.02.000080',  '宿迁珺丞(汽配)',    '滤之星', 31  ,5.00),
-('14.02.15.02.000083',  '宿迁珺丞(汽配)',    '滤之星', 60  ,10.00),
-('14.01.05.06.000257',  '宿迁珺丞(汽配)',    '加德福', 82  ,7.00),
-('14.02.15.06.000140',  '内蒙古牧利',   '统一',  239 ,13.00),
-('14.02.15.06.000095',  '内蒙古牧利',   '统一',  116 ,17.00),
-('14.02.15.06.000048',  '内蒙古牧利',   '统一',  217 ,31.00),
-('14.02.15.06.000137',  '内蒙古牧利',   '统一',  201 ,68.00),
-('14.02.15.06.000138',  '内蒙古牧利',   '统一',  229 ,46.00),
-('14.02.15.06.000091',  '内蒙古牧利',   '统一',  238 ,97.00),
-('14.02.15.03.000052',  '宏诚',  '朝阳',  813 ,5.00),
-('14.02.15.03.000049',  '宏诚',  '朝阳',  4950    ,4.00),
-('14.02.15.03.000005',  '宏诚',  '朝阳',  645 ,1.00),
-('14.02.15.03.000047',  '宏诚',  '朝阳',  1686    ,1.00),
-('14.02.15.03.000131',  '宏诚',  '朝阳',  575 ,5.00),
-('14.02.15.03.000071',  '宏诚',  '朝阳',  412 ,7.00),
-('14.02.15.03.000144',  '宏诚',  '朝阳',  1270    ,1.00),
-('14.02.15.03.000279',  '宏诚',  '朝阳',  3871    ,1.00)

+ 0 - 9
doc/sql/j.sql

@@ -1,9 +0,0 @@
-SELECT
-w.id,
-w.warehoseCode,
-w.pastureId
-FROM
-warehouse w
- INNER JOIN warehouse_provider wp
- ON wp.`warehouseId` = w.`id`
-  WHERE w.`enable`=1 AND isWhPostion = 1 AND (w.pastureId=541) AND wp.`providerId`= 2795

+ 0 - 17
doc/sql/orm.md

@@ -1,17 +0,0 @@
-# orm更新测试
-## 测试模块
-### 系统管理
-通过
-### 基础信息
-通过 ;
-牧场管理编辑保存失败(牧场全称不显示 )
-### 能源消耗管理 
-水量导入成功、其他无 表格数据 ,未测试;
-新增生产也不可以
-通过
-### 专项管理
-通过
-### 报表管理
-通过
-### 资产管理
-通过

+ 85 - 0
doc/sql/p.json

@@ -1898,4 +1898,89 @@
             ]
         }
     ]
+}
+
+
+-- lingyong
+{
+    "common": {
+        "returnmap": "0"
+    },
+    "data": [
+        {
+            "name": "insertBigpartapply",
+            "type": "e",
+            "parammaps": {
+                "pastureId": 304,
+                "applyCode": "LY19221008017",
+                "applyType": 1,
+                "departmentId": 313,
+                "empId": 3097,
+                "applyDate": "2022-10-08",
+                "SHStatus": 2
+            }
+        },
+        {
+            "name": "insertSpotList",
+            "resultmaps": {
+                "list": [
+                    {
+                        "bigId": 419358,
+                        "brand": "奥耐尔",
+                        "brandId": 2392,
+                        "contractId": 217896,
+                        "enable": 1,
+                        "id": 449127,
+                        "inventoryType": 1,
+                        "isZeroStock": 0,
+                        "locationId": 10574,
+                        "partCode": "14.03.04.02.000094",
+                        "partId": 449127,
+                        "partName": "电磁阀",
+                        "partRepId": 68746,
+                        "pastureId": 304,
+                        "pastureName": "蚌埠",
+                        "planAmount": "330.00",
+                        "price": "1139.5",
+                        "providerId": 1986,
+                        "providerName": "奥耐尔",
+                        "remark": "",
+                        "reportery": "1.00",
+                        "specification": "805007",
+                        "unit": "个",
+                        "srcpath": "",
+                        "picpath": "",
+                        "eqName": "抛料车",
+                        "eqCode": "19.PLC017",
+                        "amount": "1",
+                        "sumPrice": "1139.50"
+                    }
+                ]
+            },
+            "children": [
+                {
+                    "name": "insertpartapply",
+                    "type": "e",
+                    "parammaps": {
+                        "bigId": "@insertBigpartapply.LastInsertId",
+                        "pastureId": "@insertSpotList.pastureId",
+                        "partId": "@insertSpotList.partId",
+                        "partCode": "@insertSpotList.partCode",
+                        "partName": "@insertSpotList.partName",
+                        "specification": "@insertSpotList.specification",
+                        "brandId": "@insertSpotList.brandId",
+                        "price": "@insertSpotList.price",
+                        "amount": "@insertSpotList.amount",
+                        "eqName": "@insertSpotList.eqName",
+                        "eqCode": "@insertSpotList.eqCode",
+                        "providerId": "@insertSpotList.providerId",
+                        "note": "@insertSpotList.note",
+                        "reportery": "@insertSpotList.reportery",
+                        "contractId": "@insertSpotList.contractId",
+                        "locationId": "@insertSpotList.locationId"
+                    }
+                }
+            ]
+        }
+    ]
 }

+ 0 - 4
doc/sql/p.sql

@@ -1,4 +0,0 @@
-repairCode,repairCode,customerId,customerId,groupId,groupId,payStatus,payStatus,employeeId,employeeId,typeName,typeName
-,beginServiceBeginDate,endServiceBeginDate,beginServiceBeginDate,endServiceBeginDate,beginServiceBeginDate,endServiceBeginDate,beginServiceBeginDate,endServiceBeginDate,beginServiceSuccessDate,endServiceSuccessDate,beginServiceSuccessDate,endServiceSuccessDate,beginServiceSuccessDate,endServiceSuccessDate,beginServiceSuccessDate,endServiceSuccessDate,postCode,postCode,
-beginPayDate,endPayDate,beginPayDate,endPayDate,beginPayDate,endPayDate,beginPayDate,endPayDate,beginCollectDate,endCollectDate,beginCollectDate,endCollectDate,beginCollectDate,endCollectDate,beginCollectDate,endCollectDate,
-beginServiceCost,beginServiceCost,endServiceCost,endServiceCost

+ 0 - 183
doc/sql/pi.sql

@@ -1,183 +0,0 @@
-insert into  part_class (partname,partcode,section,pname) 
-values
-('玉米粉碎机',	'14.03.03.01',	3,	'饲喂'),
-('精料系统',	'14.03.03.02',	3,	'饲喂'),
-('饲喂监控系统',	'14.03.03.03',	3,	'饲喂'),
-('燃煤锅炉',	'14.04.01.01',	3,	'锅炉'),
-('沼气锅炉',	'14.04.01.02',	3,	'锅炉'),
-('生物质锅炉',	'14.04.01.03',	3,	'锅炉'),
-('板材',	'14.01.06.01',	3,	'钢材'),
-('管材',	'14.01.06.02',	3,	'钢材'),
-('型材',	'14.01.06.03',	3,	'钢材'),
-('配电',	'14.01.01.01',	3,	'配电'),
-('电气元件',	'14.01.01.02',	3,	'配电'),
-('电缆、电线',	'14.01.01.03',	3,	'配电'),
-('照明',	'14.01.01.04',	3,	'配电'),
-('自控仪表',	'14.01.01.05',	3,	'配电'),
-('电瓶',	'14.02.15.01',	3,	'通用'),
-('滤芯',	'14.02.15.02',	3,	'通用'),
-('轮胎',	'14.02.15.03',	3,	'通用'),
-('皮带',	'14.02.15.04',	3,	'通用'),
-('起动机、发电机',	'14.02.15.05',	3,	'通用'),
-('润滑油',	'14.02.15.06',	3,	'通用'),
-('电气',	'14.02.15.07',	3,	'通用'),
-('液压油管',	'14.02.15.08',	3,	'通用'),
-('其它',	'14.02.15.09',	3,	'通用'),
-('卡车',	'14.02.01',	2,	'运输车辆'),
-('装载机',	'14.02.02',	2,	'运输车辆'),
-('牵引式饲喂车',	'14.02.03',	2,	'运输车辆'),
-('自走式饲喂车',	'14.02.04',	2,	'运输车辆'),
-('撒料车',	'14.02.05',	2,	'运输车辆'),
-('吸粪车',	'14.02.06',	2,	'运输车辆'),
-('抛料车',	'14.02.07',	2,	'运输车辆'),
-('沼液车',	'14.02.08',	2,	'运输车辆'),
-('卧床疏松机',	'14.02.09',	2,	'运输车辆'),
-('拖拉机',	'14.02.10',	2,	'运输车辆'),
-('农用车',	'14.02.11',	2,	'运输车辆'),
-('电动车',	'14.02.12',	2,	'运输车辆'),
-('摩托车',	'14.02.13',	2,	'运输车辆'),
-('其他车辆',	'14.02.14',	2,	'运输车辆'),
-('通用',	'14.02.15',	2,	'运输车辆'),
-('压片玉米厂',	'14.03.04.01',	3,	'辅助设备'),
-('巴杀机',	'14.03.04.02',	3,	'辅助设备'),
-('品控设备',	'14.03.04.03',	3,	'辅助设备'),
-('灌药车',	'14.03.04.04',	3,	'辅助设备'),
-('修蹄专用',	'14.03.04.05',	3,	'辅助设备'),
-('饲料厂',	'14.03.04.06',	3,	'辅助设备'),
-('赶牛器',	'14.06.04.01',	3,	'赶牛器'),
-('16装载机',	'14.02.02.01',	3,	'装载机'),
-('30装载机',	'14.02.02.02',	3,	'装载机'),
-('50装载机',	'14.02.02.03',	3,	'装载机'),
-('滑移装载机',	'14.02.02.04',	3,	'装载机'),
-('其他备件',	'14.02.02.05',	3,	'装载机'),
-('衣物烘干机',	'14.06.08.01',	3,	'衣物烘干机'),
-('18立方',	'14.02.04.01',	3,	'自走式饲喂车'),
-('脱硫系统',	'14.03.05.01',	3,	'能源设备'),
-('脱水系统',	'14.03.05.02',	3,	'能源设备'),
-('储气系统',	'14.03.05.03',	3,	'能源设备'),
-('螺旋分离机',	'14.03.02.01',	3,	'粪污处理设备'),
-('沼渣烘干机',	'14.03.02.02',	3,	'粪污处理设备'),
-('皮带输送机',	'14.03.02.03',	3,	'粪污处理设备'),
-('格栅机',	'14.03.02.04',	3,	'粪污处理设备'),
-('刮粪机',	'14.03.02.05',	3,	'粪污处理设备'),
-('吸粪泵',	'14.03.02.06',	3,	'粪污处理设备'),
-('镜面分离机',	'14.03.02.07',	3,	'粪污处理设备'),
-('分筛机',	'14.03.02.08',	3,	'粪污处理设备'),
-('搅拌器',	'14.03.02.09',	3,	'粪污处理设备'),
-('巴杀机',	'14.03.02.10',	3,	'粪污处理设备'),
-('箱式变压器',	'14.05.01.01',	3,	'箱式变压器'),
-('空压机',	'14.06.03.01',	3,	'空压机'),
-('真空系统',	'14.06.09.01',	3,	'真空系统'),
-('箱式变压器',	'14.05.01',	2,	'电气设备'),
-('柴油发电机',	'14.05.02',	2,	'电气设备'),
-('沼气发电机',	'14.05.03',	2,	'电气设备'),
-('三轮',	'14.02.12.01',	3,	'电动车'),
-('两轮',	'14.02.12.02',	3,	'电动车'),
-('锅炉',	'14.04.01',	2,	'特种设备'),
-('叉车',	'14.04.02',	2,	'特种设备'),
-('18立方',	'14.02.03.01',	3,	'牵引式饲喂车'),
-('30立方',	'14.02.03.02',	3,	'牵引式饲喂车'),
-('17立方',	'14.02.03.03',	3,	'牵引式饲喂车'),
-('32立方',	'14.02.03.04',	3,	'牵引式饲喂车'),
-('工具耗材',	'14.07.01',	2,	'物耗类'),
-('油漆类',	'14.07.02',	2,	'物耗类'),
-('日常物耗',	'14.07.03',	2,	'物耗类'),
-('其他物耗',	'14.07.04',	2,	'物耗类'),
-('洗衣机',	'14.06.07.01',	3,	'洗衣机'),
-('10立方',	'14.02.08.01',	3,	'沼液车'),
-('沼气发电机',	'14.05.03.01',	3,	'沼气发电机'),
-('油漆类',	'14.07.02.01',	3,	'油漆类'),
-('阀门',	'14.01.03.01',	3,	'水暖'),
-('管件',	'14.01.03.02',	3,	'水暖'),
-('消防',	'14.01.03.03',	3,	'水暖'),
-('紧固件',	'14.01.04.01',	3,	'标准件'),
-('轴承',	'14.01.04.02',	3,	'标准件'),
-('密封件',	'14.01.04.03',	3,	'标准件'),
-('气动元件',	'14.01.04.04',	3,	'标准件'),
-('传动元件',	'14.01.04.05',	3,	'标准件'),
-('柴油发电机',	'14.05.02.01',	3,	'柴油发电机'),
-('电机',	'14.01.05.01',	3,	'机电'),
-('泵类',	'14.01.05.02',	3,	'机电'),
-('风机',	'14.01.05.03',	3,	'机电'),
-('减速机',	'14.01.05.04',	3,	'机电'),
-('变频器',	'14.01.05.05',	3,	'机电'),
-('自控仪器',	'14.01.05.06',	3,	'机电'),
-('电机维修',	'14.01.05.07',	3,	'机电'),
-('固定式搅拌机',	'14.03.01',	2,	'机械设备'),
-('粪污处理设备',	'14.03.02',	2,	'机械设备'),
-('饲喂',	'14.03.03',	2,	'机械设备'),
-('辅助设备',	'14.03.04',	2,	'机械设备'),
-('能源设备',	'14.03.05',	2,	'机械设备'),
-('无公害处理设备',	'14.03.06',	2,	'机械设备'),
-('日常物耗',	'14.07.03.01',	3,	'日常物耗'),
-('预碎机',	'14.03.06.01',	3,	'无公害处理设备'),
-('发酵罐',	'14.03.06.02',	3,	'无公害处理设备'),
-('热煤储油桶',	'14.03.06.03',	3,	'无公害处理设备'),
-('输送',	'14.03.06.04',	3,	'无公害处理设备'),
-('17立方',	'14.02.05.01',	3,	'撒料车'),
-('30立方',	'14.02.05.02',	3,	'撒料车'),
-('其他备件',	'14.02.05.03',	3,	'撒料车'),
-('三轮',	'14.02.13.01',	3,	'摩托车'),
-('两轮',	'14.02.13.02',	3,	'摩托车'),
-('挤奶机',	'14.06.01',	2,	'挤奶设备'),
-('制冷机',	'14.06.02',	2,	'挤奶设备'),
-('空压机',	'14.06.03',	2,	'挤奶设备'),
-('赶牛器',	'14.06.04',	2,	'挤奶设备'),
-('CIP系统',	'14.06.05',	2,	'挤奶设备'),
-('奶仓',	'14.06.06',	2,	'挤奶设备'),
-('洗衣机',	'14.06.07',	2,	'挤奶设备'),
-('衣物烘干机',	'14.06.08',	2,	'挤奶设备'),
-('真空系统',	'14.06.09',	2,	'挤奶设备'),
-('巴杀机',	'14.06.10',	2,	'挤奶设备'),
-('挤奶机',	'14.06.01.01',	3,	'挤奶机'),
-('底盘',	'14.02.10.01',	3,	'拖拉机'),
-('电气',	'14.02.10.02',	3,	'拖拉机'),
-('发动机',	'14.02.10.03',	3,	'拖拉机'),
-('3','5立方	14.02.07.01',	3,	'抛料车'),
-('巴杀机',	'14.06.10.01',	3,	'巴杀机'),
-('工具耗材',	'14.07.01.01',	3,	'工具耗材'),
-('手动工具',	'14.01.02.01',	3,	'工具'),
-('电动工具',	'14.01.02.02',	3,	'工具'),
-('测量工具',	'14.01.02.03',	3,	'工具'),
-('气动工具',	'14.01.02.04',	3,	'工具'),
-('奶仓',	'14.06.06.01',	3,	'奶仓'),
-('17立方卧式',	'14.03.01.01',	3,	'固定式搅拌机'),
-('20立方立式',	'14.03.01.02',	3,	'固定式搅拌机'),
-('30立方立式',	'14.03.01.03',	3,	'固定式搅拌机'),
-('33立方',	'14.03.01.04',	3,	'固定式搅拌机'),
-('18立方',	'14.03.01.05',	3,	'固定式搅拌机'),
-('40立方',	'14.03.01.06',	3,	'固定式搅拌机'),
-('9立方',	'14.02.06.01',	3,	'吸粪车'),
-('10立方',	'14.02.06.02',	3,	'吸粪车'),
-('燃油叉车',	'14.04.02.01',	3,	'叉车'),
-('电动叉车',	'14.04.02.02',	3,	'叉车'),
-('疏松机',	'14.02.09.01',	3,	'卧床疏松机'),
-('翻抛机',	'14.02.09.02',	3,	'卧床疏松机'),
-('底盘',	'14.02.01.01',	3,	'卡车'),
-('电气',	'14.02.01.02',	3,	'卡车'),
-('发动机',	'14.02.01.03',	3,	'卡车'),
-('制冷机',	'14.06.02.01',	3,	'制冷机'),
-('底盘',	'14.02.11.01',	3,	'农用车'),
-('电气',	'14.02.11.02',	3,	'农用车'),
-('发动机',	'14.02.11.03',	3,	'农用车'),
-('底盘',	'14.02.14.01',	3,	'其他车辆'),
-('电气',	'14.02.14.02',	3,	'其他车辆'),
-('发动机',	'14.02.14.03',	3,	'其他车辆'),
-('其他物耗',	'14.07.04.01',	3,	'其他物耗'),
-('杂类',	'14.01.07.01',	3,	'其他五金'),
-('加工件',	'14.01.07.02',	3,	'其他五金'),
-('电料',	'14.01.01',	2,	'五金'),
-('工具',	'14.01.02',	2,	'五金'),
-('水暖',	'14.01.03',	2,	'五金'),
-('标准件',	'14.01.04',	2,	'五金'),
-('机电',	'14.01.05',	2,	'五金'),
-('钢材',	'14.01.06',	2,	'五金'),
-('其他五金',	'14.01.07',	2,	'五金'),
-('CIP系统',	'14.06.05.01',	3,	'CIP系统'),
-('运输车辆',	'14.02',	1,''),
-('机械设备',	'14.03',	1,''),
-('特种设备',	'14.04',	1,''),
-('电气设备',	'14.05',	1,''),
-('挤奶设备',	'14.06',	1,''),
-('物耗类',	'14.07',	1,''),
-('五金',	'14.01',	1,'')

+ 0 - 0
doc/sql/pu.sql


+ 35 - 5
doc/sql/s.sql

@@ -21,9 +21,15 @@ or sqlname ='updatePartRepertoryTK'  --(还需要前端 修改参数)
 -- or sqlname ='insertPartquit' 
 -- or sqlname ='updatePartUseQuit'
 
-select sqlname,sqlstr,params from apisql where  sqlname ='getPartsListLY'
+select sqlname,sqlstr,params from apisql where  sqlname ='getPartsListLY';
 select sqlname,sqlstr,params from apisql where  sqlname ='getPartsListLY_m'
-select sqlname,sqlstr,params from apisql where  sqlname ='insertpartapply_m'
+
+select sqlname,sqlstr,params from apisql where  sqlname ="getWarehouselistDB";
+select sqlname,sqlstr,params from apisql where  sqlname ="getBigpartapplyList";
+select sqlname,sqlstr,params from apisql where  sqlname ="updatePartapplyuseAmount_m";
+select sqlname,sqlstr,params from apisql where  sqlname ="autoCreatCode";
+select sqlname,sqlstr,params from apisql where  sqlname ='insertBigpartapply';
+select sqlname,sqlstr,params from apisql where  sqlname ='insertpartapply_m';
 select sqlname,sqlstr,params from apisql where  sqlname ='insertpartapply'
 select sqlname,sqlstr,params from apisql where  sqlname ='getBigpartusecode'
 select sqlname,sqlstr,params from apisql where  sqlname ='getpartUseListBybigTK'
@@ -225,7 +231,7 @@ having count(*)>1
 )a
 
 
-select count(*)
+
 select pr.id, pr.partcode ,pr.contractId  ,c.id ,c.partcode,c2.id,c2.partcode 
 from part_repertory pr 
 left join contract c on c.id =pr.contractId
@@ -455,8 +461,12 @@ select  CAST('123.12' as DECIMAL)
 
  UPDATE part_repertory SET reportery = reportery + '1' WHERE contractId = 497108  AND locationid = 10559 and partcode ="14.01.07.01.001030"
 
-select * from bigpartapply where applycode ='LY19221008015'
+select  pa.*  from bigpartapply bpa join partapply pa on pa.bigid =bpa.id where bpa.applycode ='LY19221008018'
+
+select id  from bigpartapply  order  by id desc limit 5
+select count(*) from partapply 
 select * from partapply where bigid =210605 
+select * from partapply where bigid ='BX19220929004' 
 select * from partapply where bigid =419328 
 
 select * from  parts where partcode ='14.02.03.02.000013'
@@ -467,4 +477,24 @@ left join warehouse w on pr.locationid = w.id
 left join pasture  p on w.pastureId =p.id
 where pr.id =488222
 
-select * from contract where id =521518
+select * from contract where id =521518
+
+
+update part_repertory  pr  
+left join warehouse w on pr.locationid = w.id
+left join pasture  p on w.pastureId =p.id
+set pr.contractId =-pr.contractId
+where pr.id =488222
+
+CK56221002011-17
+
+
+SELECT  pr.*
+FROM part_repertory pr 
+join warehouse w on w.id = pr.locationId
+left join partuse pu on pr.contractId   =pu.contractId  and  pr.locationId = pu.locationId 
+join bigpartuse  bpu on  bpu.id =pu.bigid
+where  bpu.useform ='CK56221002011'
+group by pr.contractId,w.pastureid
+
+select  pu.*   from  partuse pu join bigpartuse  bpu on  bpu.id =pu.bigid where  bpu.useform ='CK56221002011'

+ 0 - 3
doc/sql/sqlx.md

@@ -1,3 +0,0 @@
-GetDataByNames
-
-GetSqlByNameDBT

+ 4 - 29
doc/sql/t3.sql

@@ -1,29 +1,4 @@
-select t.*, IFNULL(pr.`reportery`,0) reporteryQ
-from (
-SELECT
-CONCAT('uploads/thumbnail/',ep.`picpath`,'/',ep.`newpicname`) picpath,
-  CONCAT('uploads/image/',ep.`picpath`,'/',ep.`newpicname`) srcpath,
-IFNULL(pr.`reportery`,0) reporteryQ,
-  b.`brandName`,
-c.`id`,c.`brand`,c.`brandId`,c.`partCode`,c.`partId`,c.`partName`,c.`pastureId`,c.`pastureName`,
-TRIM(TRAILING '.' FROM (TRIM(TRAILING '0' FROM c.`price`))) price,
- c.`specification`,c.`unit`
-FROM
-    contract c
-LEFT JOIN brand b  ON b.id = c.brandId
-LEFT JOIN bigcontract bc  ON bc.id = c.bigId
-LEFT JOIN bigcontract bc2 ON bc2.contractCode = left(bc.contractCode,12)
-join pasture_bigcontract pbt on pbt.bigcontract_id =bc2.id
-LEFT JOIN parts ps  ON ps.id = c.partId
-LEFT JOIN eq_pic ep  ON ep.id = ps.picpath
-  WHERE bc.`providerId` = ? AND c.enable = 1
- AND (bc.`stopTime`>=DATE_FORMAT(NOW(),'%Y-%m-%d') and  bc.statue=1 and bc.SHStatus = 7 )
-  AND (if(?='' ,bc.SHStatus = 7,c.`partCode` LIKE CONCAT('%',?,'%')
-  OR c.`partName` LIKE CONCAT('%',?,'%')
-  OR c.`specification` LIKE CONCAT('%',?,'%')))
-and (bc.pastureId=? or  ?='' or or pbt.pasture_id = ?) 
-)t 
-left join 
-(select reportery,contractId from part_repertory pr2 left join warehouse w  on pr2.locationId =w.id
-where pr2.pastureId ='631' or (pr2.pastureId =18 and  w.pastureId = '?') 
-) pr  ON pr.`contractId` = t.`id`
+SELECT `id`,`warehosetName`,`warehoseCode`,`pastureId` FROM warehouse
+   WHERE warehouse.`pastureId` =115 AND warehouse.isWhPostion=1 
+  --  AND (warehouse.warehoseCode LIKE CONCAT('%',?,'%') OR ?='')
+ORDER BY warehoseCode

+ 0 - 30
doc/sql/t4.sql

@@ -1,30 +0,0 @@
-update apisql set sqlstr="
-select t.*, IFNULL(pr.reportery,0) reporteryQ
-from (
-SELECT
-CONCAT('uploads/thumbnail/',ep.`picpath`,'/',ep.`newpicname`) picpath,
-  CONCAT('uploads/image/',ep.`picpath`,'/',ep.`newpicname`) srcpath,
-  b.`brandName`,c.`id`,c.`brand`,c.`brandId`,c.`partCode`,c.`partId`,c.`partName`,c.`pastureId`,c.`pastureName`,
-TRIM(TRAILING '.' FROM (TRIM(TRAILING '0' FROM c.`price`))) price,
- c.`specification`,c.`unit`
-FROM
-    contract c
-LEFT JOIN brand b  ON b.id = c.brandId
-LEFT JOIN bigcontract bc  ON bc.id = c.bigId
-LEFT JOIN bigcontract bc2 ON bc2.contractCode = left(bc.contractCode,12)
-join pasture_bigcontract pbt on pbt.bigcontract_id =bc2.id
-LEFT JOIN parts ps  ON ps.id = c.partId
-LEFT JOIN eq_pic ep  ON ep.id = ps.picpath
-  WHERE 
-bc.`providerId` = ? AND c.enable = 1
-AND bc.`stopTime`>=DATE_FORMAT( NOW(),'%Y-%m-%d') 
-and  bc.statue=1 and bc.SHStatus = 7 
-AND if(?='' ,bc.SHStatus = 7,c.`partCode` =? OR c.`partName` = ? OR c.`specification` =?)
-and (bc.pastureId=? or  ?='' or  pbt.pasture_id = ?) 
-)t 
-left join 
-(select reportery,contractId from part_repertory pr2 left join warehouse w  on pr2.locationId =w.id
-where pr2.pastureId =? or (pr2.pastureId =18 and  w.pastureId =  ?) 
-) pr  ON pr.`contractId` = t.`id` ",
-params ="providerId,partCode,partCode,partCode,partCode,pastureId,pastureId,pastureId,pastureId,pastureId"
-where  sqlname ='getPartListByProvider'

+ 0 - 46
doc/sql/t5.sql

@@ -1,46 +0,0 @@
-SELECT
-0 as mr,
-CONCAT('uploads/thumbnail/',ep.`picpath`,'/',ep.`newpicname`) picpath,
-  CONCAT('uploads/image/',ep.`picpath`,'/',ep.`newpicname`) srcpath,
-  pr.partId id,
-pr.id prid,
-   c.id contractId,c.bigId,pr.pastureId,c.pastureName,pr.partId,pr.partName,pr.partCode,pr.specification,
-TRIM(TRAILING'.' FROM (TRIM(TRAILING'0' FROM pr.price))) price,pr.brandId,pr.brand,c.inventoryType,
-c.planAmount,c.remark,c.enable,pr.unit,c.isZeroStock,
-   trim(pr.`reportery`) reportery, 
-   pv.providerName,
-  pv.id providerId,
-	pr.locationId,
-  pr.id partRepId 
- FROM 
-  part_repertory pr
-  LEFT JOIN  contract c
-    ON c.`id` = pr.`contractId` 
-  LEFT JOIN bigcontract bc 
-    ON bc.`id` = c.`bigId`
-  LEFT JOIN provider pv
-    ON pv.`id` = pr.`providerId`
-LEFT JOIN parts ps
-    ON ps.id = pr.partId
-    LEFT JOIN eq_pic ep
-    ON ep.id = ps.picpath
-		left join warehouse w
-		on   w.id = pr.locationId
-WHERE
-(pr.pastureId =31 or (pr.pastureId =18 and  (select pastureId from warehouse where id = pr.`locationId`)= 31) )
-and
-(
-	(
-    (
-      (bc.`stopTime`>=DATE_FORMAT(NOW(),'%Y-%m-%d') and  bc.statue=1  AND c.`enable`=1 )
-    or 	bc.isZeroStock=0 )
-  and bc.SHStatus = 7)
-or pr.`contractId` <0
-) 
-and (pr.reportery>0 or(bc.`stopTime`>=DATE_FORMAT(NOW(),'%Y-%m-%d') and  bc.statue=1)) 
--- and ps.enable = 1
- and (pr.`partCode` LIKE CONCAT('%','14.02.03.02.000013','%')
-  )
-
-
-  

+ 0 - 32
doc/sql/t6.sql

@@ -1,32 +0,0 @@
-select count(*) from(
-select t.*, IFNULL(pr.reportery,0) reporteryQ
-from (
-SELECT
-CONCAT('uploads/thumbnail/',ep.`picpath`,'/',ep.`newpicname`) picpath,
-  CONCAT('uploads/image/',ep.`picpath`,'/',ep.`newpicname`) srcpath,
-  b.`brandName`,c.`id`,c.`brand`,c.`brandId`,c.`partCode`,c.`partId`,c.`partName`,c.`pastureId`,c.`pastureName`,
-TRIM(TRAILING '.' FROM (TRIM(TRAILING '0' FROM c.`price`))) price,
- c.`specification`,c.`unit`
-FROM
-    contract c
-LEFT JOIN part_repertory pr  ON c.id = pr.contractId
-LEFT JOIN warehouse w  ON  pr.locationId =w.id
-LEFT JOIN brand b  ON b.id = c.brandId
-LEFT JOIN bigcontract bc  ON bc.id = c.bigId
-LEFT JOIN bigcontract bc2 ON bc2.contractCode = left(bc.contractCode,12)
-join pasture_bigcontract pbt on pbt.bigcontract_id =bc2.id
-LEFT JOIN parts ps  ON ps.id = c.partId
-LEFT JOIN eq_pic ep  ON ep.id = ps.picpath
-  WHERE 
-bc.`providerId` = 1971 AND c.enable = 1
-AND bc.`stopTime`>=DATE_FORMAT( NOW(),'%Y-%m-%d') 
-and  bc.statue=1 and bc.SHStatus = 7 
-AND if(''='' ,bc.SHStatus = 7,c.`partCode` ='' OR c.`partName` = '' OR c.`specification` ='')
-and (bc.pastureId = 18 or  '' = 18 or  pbt.pasture_id = 18) 
-)t 
-left  join 
-(
-select reportery,contractId from part_repertory pr2 left join warehouse w  on pr2.locationId =w.id
-where pr2.pastureId = 18 or (pr2.pastureId = 18 and  w.pastureId = 18)  limit 10
-) pr  ON pr.`contractId` = t.`id` 
-)a

+ 0 - 22
doc/sql/t7.sql

@@ -1,22 +0,0 @@
-select count(*) from(
-SELECT
-CONCAT('uploads/thumbnail/',ep.`picpath`,'/',ep.`newpicname`) picpath,
-  CONCAT('uploads/image/',ep.`picpath`,'/',ep.`newpicname`) srcpath,
-  b.`brandName`,c.`id`,c.`brand`,c.`brandId`,c.`partCode`,c.`partId`,c.`partName`,c.`pastureId`,c.`pastureName`,
-TRIM(TRAILING '.' FROM (TRIM(TRAILING '0' FROM c.`price`))) price,
- c.`specification`,c.`unit`
-FROM
-    contract c
-LEFT JOIN brand b  ON b.id = c.brandId
-LEFT JOIN bigcontract bc  ON bc.id = c.bigId
-LEFT JOIN bigcontract bc2 ON bc2.contractCode = left(bc.contractCode,12)
-join pasture_bigcontract pbt on pbt.bigcontract_id =bc2.id
-LEFT JOIN parts ps  ON ps.id = c.partId
-LEFT JOIN eq_pic ep  ON ep.id = ps.picpath
-  WHERE 
-bc.`providerId` = 1963 AND c.enable = 1
-AND bc.`stopTime`>=DATE_FORMAT( NOW(),'%Y-%m-%d') 
-and  bc.statue=1 and bc.SHStatus = 7 
-AND if(''='' ,bc.SHStatus = 7,c.`partCode` ='14.06.01.01.001122' OR c.`partName` = '' OR c.`specification` ='')
-and (bc.pastureId = 18 or  '' = 18 or  pbt.pasture_id = 18) 
-)a

+ 0 - 10
doc/sql/t8.sql

@@ -1,10 +0,0 @@
-SELECT bpu.id, bpu.useForm, pus.checkoutNumber, pus.quitNumber FROM
-bigpartuse bpu
-INNER JOIN (SELECT SUM(pu.checkoutNumber) checkoutNumber,SUM(pu.quitNumber)quitNumber, pu.bigId FROM partuse pu GROUP BY pu.bigId)pus
-ON pus.bigId =bpu.`id`
-WHERE  bpu.pastureId=304 
-and bpu.`useForm` LIKE CONCAT('%','CK19220907007','%') 
--- AND bpu.`useType` <>4 AND pus.quitNumber < pus.checkoutNumber
-ORDER BY bpu.`useForm`  desc
-
-select * from  bigpartuse where useForm ='CK19220907007'

+ 0 - 201
doc/sql/t9.sql

@@ -1,201 +0,0 @@
-insert into role_menu values
-(1504,	44,	249,0),
-(1507,	44,	251,0),
-(1508,	44,	252,0),
-(1509,	44,	250,0),
-(1510,	44,	255,0),
-(1511,	44,	256,0),
-(1512,	44,	260,0),
-(1513,	44,	258,0),
-(1514,	44,	259,0),
-(1515,	44,	261,0),
-(1516,	44,	262,0),
-(1517,	44,	263,0),
-(1518,	44,	30,0),
-(1519,	44,	39,0),
-(1520,	44,	283,0),
-(1521,	44,	284,0),
-(1522,	44,	286,0),
-(1523,	44,	301,0),
-(1524,	44,	163,0),
-(1525,	44,	164,0),
-(1526,	44,	165,0),
-(1527,	44,	166,0),
-(1528,	44,	40,0),
-(1529,	44,	205,0),
-(1530,	44,	41,0),
-(1531,	44,	42,0),
-(1532,	44,	32,0),
-(1533,	44,	35,0),
-(1534,	44,	203,0),
-(1535,	44,	273,0),
-(1536,	44,	274,0),
-(1537,	44,	275,0),
-(1538,	44,	298,0),
-(1539,	44,	212,0),
-(1540,	44,	213,0),
-(1541,	44,	215,0),
-(1542,	44,	216,0),
-(1543,	44,	217,0),
-(1544,	44,	218,0),
-(1545,	44,	219,0),
-(1546,	44,	206,0),
-(1547,	44,	287,0),
-(1554,	44,	223,0),
-(1555,	44,	225,0),
-(1557,	44,	227,0),
-(1558,	44,	47,0),
-(1559,	44,	49,0),
-(1560,	44,	95,0),
-(1561,	44,	96,0),
-(1562,	44,	97,0),
-(1563,	44,	50,0),
-(1564,	44,	276,0),
-(1565,	44,	277,0),
-(1566,	44,	278,0),
-(1567,	44,	98,0),
-(1568,	44,	99,0),
-(1569,	44,	100,0),
-(1570,	44,	103,0),
-(1571,	44,	104,0),
-(1574,	44,	210,0),
-(1575,	44,	264,0),
-(1576,	44,	299,0),
-(1577,	44,	300,0),
-(1578,	44,	229,0),
-(1579,	44,	230,0),
-(1580,	44,	231,0),
-(1581,	44,	83,0),
-(1582,	44,	105,0),
-(1583,	44,	106,0),
-(1584,	44,	107,0),
-(1585,	44,	108,0),
-(1586,	44,	109,0),
-(1587,	44,	232,0),
-(1588,	44,	233,0),
-(1589,	44,	55,0),
-(1590,	44,	290,0),
-(1591,	44,	291,0),
-(1592,	44,	292,0),
-(1593,	44,	293,0),
-(1594,	44,	110,0),
-(1595,	44,	111,0),
-(1597,	44,	143,0),
-(1599,	44,	234,0),
-(1600,	44,	209,0),
-(1601,	44,	235,0),
-(1602,	44,	236,0),
-(1603,	44,	237,0),
-(1604,	44,	238,0),
-(1605,	44,	239,0),
-(1606,	44,	240,0),
-(1607,	44,	56,0),
-(1608,	44,	118,0),
-(1609,	44,	126,0),
-(1611,	44,	57,0),
-(1613,	44,	127,0),
-(1614,	44,	128,0),
-(1615,	44,	58,0),
-(1617,	44,	94,0),
-(1618,	44,	161,0),
-(1621,	44,	43,0),
-(1622,	44,	162,0),
-(1623,	44,	62,0),
-(1624,	44,	119,0),
-(1625,	44,	121,0),
-(1626,	44,	122,0),
-(1627,	44,	243,0),
-(1628,	44,	63,0),
-(1629,	44,	268,0),
-(1630,	44,	294,0),
-(1631,	44,	123,0),
-(1632,	44,	154,0),
-(1633,	44,	153,0),
-(1634,	44,	124,0),
-(1635,	44,	64,0),
-(1636,	44,	267,0),
-(1637,	44,	88,0),
-(1638,	44,	90,0),
-(1639,	44,	91,0),
-(1640,	44,	92,0),
-(1641,	44,	93,0),
-(1642,	44,	125,0),
-(1643,	44,	244,0),
-(1644,	44,	245,0),
-(1645,	44,	247,0),
-(1647,	44,	65,0),
-(1648,	44,	66,0),
-(1649,	44,	67,0),
-(1650,	44,	68,0),
-(1656,	44,	198,0),
-(1657,	44,	70,0),
-(1658,	44,	152,0),
-(1659,	44,	167,0),
-(1660,	44,	168,0),
-(1661,	44,	169,0),
-(1662,	44,	170,0),
-(1663,	44,	72,0),
-(1664,	44,	156,0),
-(1665,	44,	171,0),
-(1666,	44,	172,0),
-(1667,	44,	173,0),
-(1668,	44,	174,0),
-(1669,	44,	78,0),
-(1670,	44,	159,0),
-(1671,	44,	183,0),
-(1672,	44,	185,0),
-(1673,	44,	187,0),
-(1674,	44,	188,0),
-(1675,	44,	74,0),
-(1676,	44,	157,0),
-(1677,	44,	175,0),
-(1678,	44,	176,0),
-(1679,	44,	177,0),
-(1680,	44,	178,0),
-(1681,	44,	76,0),
-(1682,	44,	158,0),
-(1683,	44,	179,0),
-(1684,	44,	180,0),
-(1685,	44,	181,0),
-(1686,	44,	182,0),
-(1687,	44,	80,0),
-(1688,	44,	160,0),
-(1689,	44,	189,0),
-(1690,	44,	190,0),
-(1691,	44,	191,0),
-(1692,	44,	192,0),
-(1693,	44,	193,0),
-(1694,	44,	194,0),
-(1695,	44,	195,0),
-(1696,	44,	146,0),
-(1697,	44,	295,0),
-(1698,	44,	296,0),
-(1699,	44,	34,0),
-(1700,	44,	19,0),
-(1701,	44,	129,0),
-(1702,	44,	130,0),
-(1703,	44,	37,0),
-(1704,	44,	208,0),
-(1705,	44,	26,0),
-(1706,	44,	33,0),
-(1707,	44,	265,0),
-(1708,	44,	207,0),
-(1709,	44,	303,0),
-(1710,	44,	38,0),
-(1712,	44,	144,0),
-(1713,	44,	266,0),
-(1714,	44,	197,0),
-(1715,	44,	23,0),
-(1716,	44,	21,0),
-(1717,	44,	22,0),
-(1718,	44,	297,0),
-(1719,	44,	24,0),
-(1720,	44,	27,0),
-(1939,	44,	279,0),
-(1940,	44,	280,0),
-(1941,	44,	281,0),
-(1942,	44,	282,0),
-(1943,	44,	136,0),
-(1944,	44,	137,0),
-(1945,	44,	138,0),
-(1946,	44,	139,0)

+ 3 - 1
doc/sql/u.sql

@@ -176,4 +176,6 @@ where pr.pastureid  =621  or (select pastureId from warehouse w where w.id  =pr.
 select * from part_repertory where  partcode ='14.01.04.05.000485'
 
 select * from pasture where name ='云南牧场'
-217
+217
+
+alter table partapply  add column created_at datetime  

+ 0 - 412
doc/sql/u2.sql

@@ -1,412 +0,0 @@
-update contract  
-set  unit  =
-case
-when unit='公斤(千克)'  then 'KG'
-when unit='立方米'  then 'M3'
-when unit='米'  then 'M'
-when unit='平方米'  then 'M2'
-end
-where  partcode in
-(
-'14.01.07.01.000036',
-'14.01.07.01.000161',
-'14.01.07.01.000178',
-'14.01.07.01.000259',
-'14.01.07.01.000626',
-'14.01.07.01.000858',
-'14.02.15.06.000101',
-'14.02.15.06.000102',
-'14.02.15.06.000107',
-'14.02.15.06.000111',
-'14.02.15.06.000112',
-'14.02.15.06.000142',
-'14.02.15.06.000209',
-'14.07.01.01.000001',
-'14.07.01.01.000011',
-'14.07.01.01.000013',
-'14.07.01.01.000063',
-'14.07.01.01.000064',
-'14.07.01.01.000143',
-'14.07.02.01.000002',
-'14.07.02.01.000005',
-'14.07.02.01.000006',
-'14.07.02.01.000007',
-'14.07.02.01.000008',
-'14.07.02.01.000009',
-'14.07.02.01.000010',
-'14.07.02.01.000012',
-'14.07.02.01.000018',
-'14.07.02.01.000020',
-'14.07.02.01.000021',
-'14.07.02.01.000022',
-'14.07.02.01.000023',
-'14.07.02.01.000024',
-'14.07.02.01.000025',
-'14.07.02.01.000026',
-'14.07.02.01.000027',
-'14.07.02.01.000028',
-'14.07.02.01.000033',
-'14.07.02.01.000041',
-'14.07.02.01.000042',
-'14.07.02.01.000049',
-'14.07.02.01.000052',
-'14.07.02.01.000056',
-'14.07.02.01.000058',
-'14.07.02.01.000063',
-'14.07.02.01.000065',
-'14.07.02.01.000067',
-'14.07.02.01.000068',
-'14.07.02.01.000069',
-'14.07.02.01.000070',
-'14.07.02.01.000073',
-'14.07.02.01.000074',
-'14.07.02.01.000075',
-'14.07.02.01.000076',
-'14.07.02.01.000079',
-'14.07.02.01.000085',
-'14.07.02.01.000107',
-'14.07.02.01.000108',
-'14.07.02.01.000109',
-'14.07.02.01.000110',
-'14.07.02.01.000129',
-'14.07.02.01.000130',
-'14.07.02.01.000131',
-'14.07.02.01.000132',
-'14.07.02.01.000133',
-'14.07.02.01.000134',
-'14.07.02.01.000135',
-'14.07.04.01.000006',
-'14.07.04.01.000016',
-'14.07.04.01.000033',
-'14.07.04.01.000035',
-'14.07.04.01.000082',
-'14.07.04.01.000089',
-'14.01.07.02.001107',
-'14.01.05.07.000317',
-'14.01.05.07.000318',
-'14.01.05.07.000320',
-'14.01.07.02.000278',
-'14.01.07.02.000282',
-'14.01.07.02.000300',
-'14.01.07.02.000301',
-'14.01.07.02.000302',
-'14.01.07.02.000303',
-'14.01.07.02.000304',
-'14.01.07.02.000305',
-'14.03.04.01.000150',
-'14.03.04.01.000151',
-'14.01.07.02.000778',
-'14.01.07.02.000991',
-'14.01.07.02.001173',
-'14.01.07.01.000602',
-'14.01.07.01.000603',
-'14.01.01.01.000120',
-'14.01.01.01.000122',
-'14.01.01.01.000123',
-'14.01.01.01.000125',
-'14.01.01.01.000128',
-'14.01.01.01.000131',
-'14.01.01.01.000137',
-'14.01.01.01.000274',
-'14.01.01.01.000304',
-'14.01.01.01.000306',
-'14.01.01.01.000310',
-'14.01.01.01.000347',
-'14.01.01.01.000445',
-'14.01.01.01.000454',
-'14.01.01.01.000482',
-'14.01.01.01.000523',
-'14.01.01.01.000524',
-'14.01.01.01.000854',
-'14.01.01.03.000001',
-'14.01.01.03.000002',
-'14.01.01.03.000003',
-'14.01.01.03.000004',
-'14.01.01.03.000015',
-'14.01.01.03.000029',
-'14.01.01.03.000030',
-'14.01.01.03.000038',
-'14.01.01.03.000039',
-'14.01.01.03.000050',
-'14.01.01.03.000051',
-'14.01.01.03.000052',
-'14.01.01.03.000053',
-'14.01.01.03.000055',
-'14.01.01.03.000069',
-'14.01.01.03.000074',
-'14.01.01.03.000076',
-'14.01.01.03.000081',
-'14.01.01.03.000082',
-'14.01.01.03.000083',
-'14.01.01.03.000084',
-'14.01.01.03.000086',
-'14.01.01.03.000094',
-'14.01.01.03.000095',
-'14.01.01.03.000099',
-'14.01.01.03.000100',
-'14.01.01.03.000119',
-'14.01.01.03.000123',
-'14.01.01.03.000124',
-'14.01.01.03.000125',
-'14.01.01.03.000126',
-'14.01.01.03.000128',
-'14.01.01.03.000131',
-'14.01.01.03.000133',
-'14.01.01.03.000134',
-'14.01.01.03.000135',
-'14.01.01.03.000136',
-'14.01.01.03.000139',
-'14.01.01.03.000141',
-'14.01.01.03.000142',
-'14.01.01.03.000143',
-'14.01.01.03.000145',
-'14.01.01.03.000146',
-'14.01.01.03.000149',
-'14.01.01.03.000151',
-'14.01.01.03.000152',
-'14.01.01.03.000153',
-'14.01.01.03.000154',
-'14.01.01.03.000155',
-'14.01.01.03.000157',
-'14.01.01.03.000158',
-'14.01.01.03.000160',
-'14.01.01.03.000162',
-'14.01.01.03.000169',
-'14.01.01.03.000179',
-'14.01.01.03.000210',
-'14.01.01.03.000211',
-'14.01.01.03.000213',
-'14.01.01.03.000225',
-'14.01.01.03.000226',
-'14.01.01.03.000235',
-'14.01.01.03.000254',
-'14.01.01.03.000266',
-'14.01.01.03.000269',
-'14.01.01.03.000304',
-'14.01.01.03.000328',
-'14.01.01.03.000329',
-'14.01.01.03.000330',
-'14.01.01.03.000448',
-'14.01.01.03.000449',
-'14.01.01.04.000133',
-'14.01.01.04.000179',
-'14.01.03.01.000498',
-'14.01.03.02.000317',
-'14.01.03.02.000318',
-'14.01.03.02.000319',
-'14.01.03.02.000320',
-'14.01.03.02.000324',
-'14.01.03.02.000325',
-'14.01.03.02.000326',
-'14.01.03.02.000334',
-'14.01.03.02.000335',
-'14.01.03.02.000407',
-'14.01.03.02.000420',
-'14.01.03.02.000439',
-'14.01.03.02.000463',
-'14.01.03.02.000469',
-'14.01.03.02.000486',
-'14.01.03.02.000488',
-'14.01.03.02.000489',
-'14.01.03.02.000490',
-'14.01.03.02.000492',
-'14.01.03.02.000493',
-'14.01.03.02.000502',
-'14.01.03.02.000524',
-'14.01.03.02.000581',
-'14.01.03.02.000586',
-'14.01.03.02.000629',
-'14.01.03.02.000631',
-'14.01.03.02.000656',
-'14.01.03.02.000657',
-'14.01.03.02.000659',
-'14.01.03.02.000824',
-'14.01.03.02.000847',
-'14.01.03.02.000918',
-'14.01.03.02.000942',
-'14.01.03.02.000943',
-'14.01.03.02.000944',
-'14.01.03.02.000986',
-'14.01.03.02.000987',
-'14.01.03.02.001029',
-'14.01.03.02.001056',
-'14.01.03.02.001057',
-'14.01.03.02.001079',
-'14.01.03.02.001210',
-'14.01.03.02.001249',
-'14.01.03.02.001250',
-'14.01.03.02.001278',
-'14.01.03.02.001326',
-'14.01.03.02.001327',
-'14.01.03.02.001372',
-'14.01.03.02.001393',
-'14.01.04.05.000015',
-'14.01.04.05.000020',
-'14.01.04.05.000021',
-'14.01.04.05.000022',
-'14.01.04.05.000025',
-'14.01.04.05.000026',
-'14.01.04.05.000055',
-'14.01.04.05.000056',
-'14.01.04.05.000057',
-'14.01.04.05.000058',
-'14.01.04.05.000059',
-'14.01.04.05.000089',
-'14.01.04.05.000095',
-'14.01.04.05.000113',
-'14.01.04.05.000117',
-'14.01.04.05.000125',
-'14.01.04.05.000176',
-'14.01.04.05.000353',
-'14.01.04.05.000419',
-'14.01.04.05.000443',
-'14.01.05.06.000049',
-'14.01.06.01.000020',
-'14.01.06.02.000037',
-'14.01.06.02.000039',
-'14.01.06.02.000040',
-'14.01.06.02.000041',
-'14.01.06.02.000042',
-'14.01.06.02.000043',
-'14.01.06.02.000045',
-'14.01.06.02.000048',
-'14.01.06.02.000049',
-'14.01.06.02.000053',
-'14.01.06.02.000060',
-'14.01.06.02.000063',
-'14.01.06.02.000070',
-'14.01.06.02.000077',
-'14.01.06.02.000115',
-'14.01.06.02.000165',
-'14.01.06.02.000168',
-'14.01.06.02.000169',
-'14.01.06.02.000170',
-'14.01.06.02.000174',
-'14.01.06.02.000176',
-'14.01.06.02.000184',
-'14.01.06.02.000202',
-'14.01.06.03.000041',
-'14.01.06.03.000046',
-'14.01.06.03.000051',
-'14.01.06.03.000055',
-'14.01.06.03.000056',
-'14.01.06.03.000057',
-'14.01.06.03.000058',
-'14.01.06.03.000100',
-'14.01.07.01.000063',
-'14.01.07.01.000064',
-'14.01.07.01.000066',
-'14.01.07.01.000068',
-'14.01.07.01.000069',
-'14.01.07.01.000072',
-'14.01.07.01.000075',
-'14.01.07.01.000087',
-'14.01.07.01.000088',
-'14.01.07.01.000097',
-'14.01.07.01.000126',
-'14.01.07.01.000140',
-'14.01.07.01.000233',
-'14.01.07.01.000234',
-'14.01.07.01.000284',
-'14.01.07.01.000311',
-'14.01.07.01.000318',
-'14.01.07.01.000352',
-'14.01.07.01.000360',
-'14.01.07.01.000361',
-'14.01.07.01.000364',
-'14.01.07.01.000453',
-'14.01.07.01.000456',
-'14.01.07.01.000478',
-'14.01.07.01.000529',
-'14.01.07.01.000563',
-'14.01.07.01.000572',
-'14.01.07.01.000586',
-'14.01.07.01.000702',
-'14.01.07.01.000812',
-'14.01.07.01.000983',
-'14.01.07.01.001129',
-'14.01.07.01.001482',
-'14.01.07.01.002840',
-'14.02.02.01.000708',
-'14.02.02.01.000812',
-'14.02.05.02.000021',
-'14.02.05.02.000024',
-'14.02.05.02.000069',
-'14.02.15.07.000020',
-'14.02.15.08.000039',
-'14.02.15.08.000045',
-'14.02.15.08.000064',
-'14.02.15.08.000076',
-'14.02.15.08.000085',
-'14.02.15.09.000011',
-'14.03.02.05.000020',
-'14.03.02.05.000060',
-'14.03.02.05.000104',
-'14.03.02.05.000223',
-'14.03.03.02.000013',
-'14.03.03.02.000047',
-'14.03.03.02.000061',
-'14.03.03.02.000072',
-'14.03.03.02.000076',
-'14.03.03.02.000089',
-'14.03.04.01.000041',
-'14.03.04.01.000042',
-'14.03.04.01.000043',
-'14.03.04.01.000068',
-'14.03.04.01.000069',
-'14.03.04.01.000080',
-'14.03.04.01.000097',
-'14.03.04.01.000099',
-'14.03.04.01.000123',
-'14.06.01.01.000041',
-'14.06.01.01.000048',
-'14.06.01.01.000049',
-'14.06.01.01.000069',
-'14.06.01.01.000296',
-'14.06.01.01.000509',
-'14.06.01.01.000667',
-'14.06.01.01.000692',
-'14.06.01.01.000875',
-'14.06.01.01.000938',
-'14.06.01.01.001118',
-'14.06.01.01.001152',
-'14.07.04.01.000078',
-'14.01.07.01.000877',
-'14.06.01.01.000958',
-'14.01.07.02.000677',
-'14.01.07.01.001479',
-'14.01.07.02.001120',
-'14.01.06.01.000005',
-'14.01.06.01.000007',
-'14.01.06.01.000017',
-'14.01.07.01.000601',
-'14.01.07.01.000956',
-'14.01.01.01.000026',
-'14.01.01.01.000070',
-'14.01.06.01.000006',
-'14.01.06.01.000008',
-'14.01.06.01.000009',
-'14.01.06.01.000015',
-'14.01.06.01.000016',
-'14.01.06.01.000026',
-'14.01.06.01.000048',
-'14.01.06.01.000051',
-'14.01.06.01.000055',
-'14.01.06.01.000057',
-'14.01.07.01.000282',
-'14.01.07.01.000346',
-'14.01.07.01.000693',
-'14.01.07.01.000714',
-'14.01.07.01.000940',
-'14.02.04.01.000039',
-'14.02.04.01.000040',
-'14.02.04.01.000041',
-'14.02.15.06.000006',
-'14.02.15.06.000013',
-'14.02.15.06.000022',
-'14.02.15.06.000035',
-'14.02.15.06.000119',
-'14.02.15.06.000127',
-'14.06.03.01.000024',
-'14.07.04.01.000203'
-)

+ 0 - 5
doc/sql/yh.sql

@@ -9,8 +9,3 @@ alter table partuse   modify column contractId  bigint(50) ;
 alter table  part_repertory  drop index partcode
 alter table  part_repertory  add unique index (locationId ,providerId ,price,partCode,contractId)
 
-locationId ,
-providerId ,
-price      ,
-partCode   ,
-contractId,