|
|
@@ -1654,6 +1654,7 @@ func (this *AnnualAuditController) updatesupplier(supname string, suppid int, in
|
|
|
// @router /filelist [get]
|
|
|
func (this *AnnualAuditController) FileList() {
|
|
|
page := this.GetPageInfoForm()
|
|
|
+ var errinfo ErrorInfo
|
|
|
var list []qualchange.OilQualChangeDetail1
|
|
|
svc := qualchange.GetQualChangeService(utils.DBE)
|
|
|
where := " 1=1 and a.IsDelete = 0"
|
|
|
@@ -1669,6 +1670,13 @@ func (this *AnnualAuditController) FileList() {
|
|
|
}
|
|
|
SupplierId := this.GetString("SupplierId")
|
|
|
MInfoId := this.GetString("MInfoId")
|
|
|
+ if MInfoId == "" || SupplierId == ""{
|
|
|
+ errinfo.Message = "操作失败!请求信息不完整"
|
|
|
+ errinfo.Code = -2
|
|
|
+ this.Data["json"] = &errinfo
|
|
|
+ this.ServeJSON()
|
|
|
+ return
|
|
|
+ }
|
|
|
if SupplierId != "" {
|
|
|
where = where + " and a.SupplierId = '" + SupplierId + "'"
|
|
|
}
|