Browse Source

后:筛选

dubch 4 years ago
parent
commit
d87bc7e65c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/dashoo.cn/backend/api/controllers/oilcontract/contract.go

+ 5 - 0
src/dashoo.cn/backend/api/controllers/oilcontract/contract.go

@@ -115,6 +115,7 @@ func (this *OilContractController) GetEntityList() {
 	ContractClass := this.GetString("ContractClass")
 	ClassName := this.GetString("ClassName")
 	SecondUnit := this.GetString("SecondUnit")
+	ImportSecondUnit := this.GetString("ImportSecondUnit")
 
 	if Id != "" {
 		where = where + " and Id like '%" + Id + "%'"
@@ -128,6 +129,10 @@ func (this *OilContractController) GetEntityList() {
 		where = where + " and SecondUnit=" + SecondUnit + " "
 	}
 
+	if ImportSecondUnit != "" {
+		where = where + " and SecondUnit=" + ImportSecondUnit + " "
+	}
+
 	if ClassName != "" {
 		where = where + " and ClassName='" + ClassName + "' "
 	}