|
|
@@ -31,7 +31,7 @@ func GetSupplierfileService(xormEngine *xorm.Engine) *SupplierfileService {
|
|
|
return s
|
|
|
}
|
|
|
|
|
|
-func (s *SupplierfileService) GetGoodsNeedFileList(classid string,IsManuf ...string) (needList []FileList) {
|
|
|
+func (s *SupplierfileService) GetGoodsNeedFileList(classid string, IsManuf ...string) (needList []FileList) {
|
|
|
Ids := strings.Split(classid, ",")
|
|
|
search := ""
|
|
|
if len(IsManuf) == 0 {
|
|
|
@@ -67,7 +67,7 @@ func (s *SupplierfileService) GetGoodsNeedFileList(classid string,IsManuf ...str
|
|
|
return needList
|
|
|
}
|
|
|
|
|
|
-func (s *SupplierfileService) GetGoodsNeedFileListNew(classid string,IsManuf ...string) (needList []FileList) {
|
|
|
+func (s *SupplierfileService) GetGoodsNeedFileListNew(classid string, IsManuf ...string) (needList []FileList) {
|
|
|
search := ""
|
|
|
if len(IsManuf) == 0 {
|
|
|
search = ""
|
|
|
@@ -116,7 +116,7 @@ func (s *SupplierfileService) GetBasicNeedFileList(classid string) (needList []F
|
|
|
curCertConfig := reflect.ValueOf(entity)
|
|
|
setValue := curCertConfig.FieldByName(header.Code).String()
|
|
|
//if setValue != "" && setValue != "0" {
|
|
|
- if setValue == "1" {
|
|
|
+ if setValue == "1" {
|
|
|
needList = append(needList, FileList{FileName: header.Name})
|
|
|
}
|
|
|
}
|
|
|
@@ -139,7 +139,7 @@ func (s *SupplierfileService) GetBasicNeedFileListNew(classid string) (needList
|
|
|
curCertConfig := reflect.ValueOf(entity)
|
|
|
setValue := curCertConfig.FieldByName(header.Code).String()
|
|
|
//if setValue != "" && setValue != "0" {
|
|
|
- if setValue == "1" {
|
|
|
+ if setValue == "1" {
|
|
|
needList = append(needList, FileList{FileName: header.Name})
|
|
|
}
|
|
|
}
|
|
|
@@ -174,7 +174,8 @@ func (s *SupplierfileService) GetTechNeedFileListNew(classid string) (needList [
|
|
|
sql += "max(F21) as F21,max(F22) as F22,max(F23) as F23,max(F24) as F24,max(F25) as F25,max(F26) as F26,max(F27) as F27,max(F28) as F28,max(F29) as F29,max(F30) as F30,"
|
|
|
sql += "max(F31) as F31,max(F32) as F32,max(F33) as F33,max(F34) as F34,max(F35) as F35,max(F36) as F36,max(F37) as F37,max(F38) as F38,max(F39) as F39,max(F40) as F40,"
|
|
|
sql += "max(F41) as F41,max(F42) as F42,max(F43) as F43,max(F44) as F44,max(F45) as F45,max(F46) as F46,max(F47) as F47,max(F48) as F48,max(F49) as F49,max(F50) as F50,"
|
|
|
- sql += "max(F51) as F51,max(F52) as F52"
|
|
|
+ sql += "max(F51) as F51,max(F52) as F52,max(F53) as F53,max(F54) as F54,max(F55) as F55,max(F56) as F56,max(F57) as F57,max(F58) as F58,max(F59) as F59,max(F60) as F60,"
|
|
|
+ sql += "max(F61) as F61,max(F62) as F62"
|
|
|
sql += " from OilTechnologyService where ClassId in (" + strings.TrimLeft(classid, ",") + ")"
|
|
|
s.DBE.Sql(sql).Get(&entity)
|
|
|
|
|
|
@@ -192,6 +193,7 @@ func (s *SupplierfileService) GetTechNeedFileListNew(classid string) (needList [
|
|
|
|
|
|
return needList
|
|
|
}
|
|
|
+
|
|
|
//查看是否为制造商
|
|
|
func (s *SupplierfileService) CheckIsManuf(id string) (IsManufacturer string) {
|
|
|
var entity suppliercertsub.OilSupplierCertSub
|
|
|
@@ -201,9 +203,10 @@ func (s *SupplierfileService) CheckIsManuf(id string) (IsManufacturer string) {
|
|
|
|
|
|
return IsManufacturer
|
|
|
}
|
|
|
+
|
|
|
//查看是否为制造商
|
|
|
func (s *SupplierfileService) GetListBySupplierId(SupplierId string) (entitys []OilSupplierFile) {
|
|
|
queryWhere := "SupplierId='" + SupplierId + "'"
|
|
|
s.GetEntitysByWhere("OilSupplierFile", queryWhere, &entitys)
|
|
|
return entitys
|
|
|
-}
|
|
|
+}
|