|
@@ -582,7 +582,7 @@ func (this *AnnualAuditController) AddEntity() {
|
|
|
svc := annualaudit.GetOilAnnualAuditService(utils.DBE)
|
|
svc := annualaudit.GetOilAnnualAuditService(utils.DBE)
|
|
|
//firstAudit := this.GetString("firstAudit")
|
|
//firstAudit := this.GetString("firstAudit")
|
|
|
json.Unmarshal(jsonBlob, &model)
|
|
json.Unmarshal(jsonBlob, &model)
|
|
|
- where := "SupplierId = " + utils.ToStr(model.SupplierId) + " and SupplierTypeName = " + model.SupplierTypeName + " and Status < 5"
|
|
|
|
|
|
|
+ where := "SupplierId = " + utils.ToStr(model.SupplierId) + " and SupplierTypeName = " + model.SupplierTypeName + " and (Status < 8 or Status in ('9','10'))"
|
|
|
var auditEntity []annualaudit.OilAnnualAudit
|
|
var auditEntity []annualaudit.OilAnnualAudit
|
|
|
svc.GetEntitysByWhere(""+OilAnnualAuditName, where, &auditEntity)
|
|
svc.GetEntitysByWhere(""+OilAnnualAuditName, where, &auditEntity)
|
|
|
if len(auditEntity) >= 1 {
|
|
if len(auditEntity) >= 1 {
|
|
@@ -592,7 +592,7 @@ func (this *AnnualAuditController) AddEntity() {
|
|
|
this.ServeJSON()
|
|
this.ServeJSON()
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- supWhere := "a.Id = " + utils.ToStr(model.SupplierId) + " and b.SupplierTypeCode = '" + model.SupplierTypeName + "' and b.Status = '8' "
|
|
|
|
|
|
|
+ supWhere := "a.Id = " + utils.ToStr(model.SupplierId) + " and b.SupplierTypeCode = '" + model.SupplierTypeName + "' and (b.Status = '8' or b.Status = '11' "
|
|
|
supSvc := supplier.GetOilSupplierService(utils.DBE)
|
|
supSvc := supplier.GetOilSupplierService(utils.DBE)
|
|
|
var list []supplier.OilSupplierView
|
|
var list []supplier.OilSupplierView
|
|
|
total := supSvc.GetMyPagingEntitiesWithOrderBytbl(OilSupplierName, OilSupplierCertName, 1, 1, "a.Id", true, &list, supWhere)
|
|
total := supSvc.GetMyPagingEntitiesWithOrderBytbl(OilSupplierName, OilSupplierCertName, 1, 1, "a.Id", true, &list, supWhere)
|