|
|
@@ -267,6 +267,23 @@ func (this *SelectController) GetBaseInfo() {
|
|
|
var infoInte supplier.OilSupplierInte
|
|
|
where := " where 1 = 1 AND a.SupplierName = '" + item + "'"
|
|
|
svc.GetInfoByCompId(where,&infoInte.SupplierInfo)
|
|
|
+
|
|
|
+ var cert1 suppliercert.OilSupplierCert
|
|
|
+ where = "SupplierId=" + strconv.Itoa(infoInte.SupplierInfo.Id) + " and SupplierTypeCode= '01'"
|
|
|
+ svc.GetEntityByWhere(OilSupplierCertName, where, &cert1)
|
|
|
+ infoInte.SupplierInfo.WZStatus = cert1.InFlag
|
|
|
+ infoInte.SupplierInfo.WZDate = cert1.ApplyTime.Format("2006-01-02")
|
|
|
+ var cert2 suppliercert.OilSupplierCert
|
|
|
+ where = "SupplierId=" + strconv.Itoa(infoInte.SupplierInfo.Id) + " and SupplierTypeCode= '02'"
|
|
|
+ svc.GetEntityByWhere(OilSupplierCertName, where, &cert2)
|
|
|
+ infoInte.SupplierInfo.JSStatus = cert2.InFlag
|
|
|
+ infoInte.SupplierInfo.JSDate = cert2.ApplyTime.Format("2006-01-02")
|
|
|
+ var cert3 suppliercert.OilSupplierCert
|
|
|
+ where = "SupplierId=" + strconv.Itoa(infoInte.SupplierInfo.Id) + " and SupplierTypeCode= '03'"
|
|
|
+ svc.GetEntityByWhere(OilSupplierCertName, where, &cert3)
|
|
|
+ infoInte.SupplierInfo.JFStatus = cert3.InFlag
|
|
|
+ infoInte.SupplierInfo.JFDate = cert3.ApplyTime.Format("2006-01-02")
|
|
|
+
|
|
|
if infoInte.SupplierInfo.SupplierName != "" {
|
|
|
|
|
|
//var suplliersup []supplier.OilSupplierCertSubInte
|