Jelajahi Sumber

后端: 合同评价 合同状态和结算状态的设置及查询

baichengfei 4 tahun lalu
induk
melakukan
8a6e6c5629

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

@@ -49,6 +49,8 @@ func (this *OilContractController) GetEntityList() {
 	Id := this.GetString("Id")
 	SupplierId := this.GetString("SupplierId")
 	SupplierName := this.GetString("SupplierName")
+	Status := this.GetString("Status")
+	SettleStatus := this.GetString("SettleStatus")
 	ProjectName := this.GetString("ProjectName")
 	ContractNo := this.GetString("ContractNo")
 	ProjectPlace := this.GetString("ProjectPlace")
@@ -118,6 +120,14 @@ func (this *OilContractController) GetEntityList() {
 		where = where + " and SupplierName like '%" + SupplierName + "%'"
 	}
 
+	if Status != "" {
+		where = where + " and Status=" + Status + " "
+	}
+
+	if SettleStatus != "" {
+		where = where + " and SettleStatus='" + SettleStatus + "' "
+	}
+
 	if ProjectName != "" {
 		where = where + " and ProjectName like '%" + ProjectName + "%'"
 	}
@@ -838,6 +848,10 @@ func (this *OilContractController) UpdateEntity() {
 
 		"SupplierName",
 
+		"Status",
+
+		"SettleStatus",
+
 		"ProjectName",
 
 		"ContractNo",