|
|
@@ -266,6 +266,7 @@ func (this *QualChangeController) AuditFileList() {
|
|
|
}
|
|
|
}
|
|
|
SupplierId := this.GetString("SupplierId")
|
|
|
+ MInfoId := this.GetString("MInfoId")
|
|
|
if SupplierId != "" {
|
|
|
where = where + " and a.SupplierId = '" + SupplierId + "'"
|
|
|
}
|
|
|
@@ -274,7 +275,7 @@ func (this *QualChangeController) AuditFileList() {
|
|
|
where = where + " and a.SupplierTypeCode in ( '000', '" + SupplierTypeCode + "')"
|
|
|
}
|
|
|
where = where + " and (b.FileUrl != '' OR a.IsDelete = 1)"
|
|
|
- total := svc.GetQualPagingEntities(OilSupplierFileName, OilQualChangeDetailName, page.CurrentPage, page.Size, orderby, asc, &list, where, "")
|
|
|
+ total := svc.GetQualPagingEntities(OilSupplierFileName, OilQualChangeDetailName, page.CurrentPage, page.Size, orderby, asc, &list, where, MInfoId)
|
|
|
var datainfo DataInfo
|
|
|
datainfo.Items = list
|
|
|
datainfo.CurrentItemCount = total
|
|
|
@@ -529,7 +530,7 @@ func (this *QualChangeController) EditQualChange() {
|
|
|
entity.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
|
|
|
_, err = svc.InsertEntityBytbl(OilQualChangeDetailName, &entity)
|
|
|
} else {
|
|
|
- err = svc.UpdateEntityBywheretbl(OilQualChangeDetailName, &entity, []string{"OldEffectDate", "FileUrl", "FileName", "OtherRemark"}, qdwhere)
|
|
|
+ err = svc.UpdateEntityBywheretbl(OilQualChangeDetailName, &entity, []string{"EffectDate", "FileUrl", "FileName", "OtherRemark"}, qdwhere)
|
|
|
}
|
|
|
|
|
|
if err == nil {
|