|
|
@@ -244,6 +244,15 @@ func (this *BadRecordController) AddBadRecord() {
|
|
|
supplierCert.InFlag=rmodel.Status
|
|
|
cols := []string{ "InFlag"}
|
|
|
err=svc.UpdateEntityBywheretbl(OilSupplierCertName,&supplierCert, cols,"SupplierId='"+companyCode+"' and SupplierTypeCode='01'")
|
|
|
+ var badhis BadRecord.BadRecordHistory
|
|
|
+ badhis.SupplierId, _ = strconv.Atoi(companyCode)
|
|
|
+ badhis.Createuserid, _ = strconv.Atoi(this.User.Id)
|
|
|
+ badhis.Createon = time.Now()
|
|
|
+ badhis.Createby = this.User.Realname
|
|
|
+ badhis.SupplierTypeCode = "01"
|
|
|
+ badhis.CertSubStatus = model.Wzstatus
|
|
|
+ badhis.BackReason = model.Wzrecord
|
|
|
+ svc.InsertEntity(&badhis)
|
|
|
}else{
|
|
|
model.Wzstatus=""
|
|
|
}
|
|
|
@@ -255,6 +264,15 @@ func (this *BadRecordController) AddBadRecord() {
|
|
|
supplierCert.InFlag = rmodel.Status
|
|
|
cols := []string{"InFlag"}
|
|
|
err = svc.UpdateEntityBywheretbl(OilSupplierCertName, &supplierCert, cols, "SupplierId='"+companyCode+"' and SupplierTypeCode='02'")
|
|
|
+ var badhis BadRecord.BadRecordHistory
|
|
|
+ badhis.SupplierId, _ = strconv.Atoi(companyCode)
|
|
|
+ badhis.Createuserid, _ = strconv.Atoi(this.User.Id)
|
|
|
+ badhis.Createon = time.Now()
|
|
|
+ badhis.Createby = this.User.Realname
|
|
|
+ badhis.SupplierTypeCode = "02"
|
|
|
+ badhis.CertSubStatus = model.Jjstatus
|
|
|
+ badhis.BackReason = model.Jjrecord
|
|
|
+ svc.InsertEntity(&badhis)
|
|
|
}else{
|
|
|
model.Jjstatus=""
|
|
|
}
|
|
|
@@ -266,6 +284,15 @@ func (this *BadRecordController) AddBadRecord() {
|
|
|
supplierCert.InFlag = rmodel.Status
|
|
|
cols := []string{"InFlag"}
|
|
|
err = svc.UpdateEntityBywheretbl(OilSupplierCertName, &supplierCert, cols, "SupplierId='"+companyCode+"' and SupplierTypeCode='03'")
|
|
|
+ var badhis BadRecord.BadRecordHistory
|
|
|
+ badhis.SupplierId, _ = strconv.Atoi(companyCode)
|
|
|
+ badhis.Createuserid, _ = strconv.Atoi(this.User.Id)
|
|
|
+ badhis.Createon = time.Now()
|
|
|
+ badhis.Createby = this.User.Realname
|
|
|
+ badhis.SupplierTypeCode = "03"
|
|
|
+ badhis.CertSubStatus = model.Jfstatus
|
|
|
+ badhis.BackReason = model.Jfrecord
|
|
|
+ svc.InsertEntity(&badhis)
|
|
|
}else{
|
|
|
model.Jfstatus=""
|
|
|
}
|