浏览代码

后:筛选

dubch 4 年之前
父节点
当前提交
d87bc7e65c
共有 1 个文件被更改,包括 5 次插入0 次删除
  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 + "' "
 	}