Browse Source

年度评价保存

Yikoo 5 years ago
parent
commit
2875aa008a

+ 9 - 5
src/dashoo.cn/backend/api/controllers/oilcontract/contractReview.go

@@ -45,11 +45,12 @@ func (this *OilContractReviewController) GetEntityList() {
 	}
 	Id := this.GetString("Id")
 	ContractClass := this.GetString("ContractClass")
-	WorkflowId := this.GetString("WorkflowId")
-	BusinessKey := this.GetString("BusinessKey")
-	ProcessKey := this.GetString("ProcessKey")
-	BackRemark := this.GetString("BackRemark")
-	CreateOn := this.GetString("CreateOn")
+	ContractId    := this.GetString("ContractId")
+	WorkflowId    := this.GetString("WorkflowId")
+	BusinessKey   := this.GetString("BusinessKey")
+	ProcessKey    := this.GetString("ProcessKey")
+	BackRemark    := this.GetString("BackRemark")
+	CreateOn      := this.GetString("CreateOn")
 
 	if Id != "" {
 		where = where + " and r.Id like '%" + Id + "%'"
@@ -59,6 +60,9 @@ func (this *OilContractReviewController) GetEntityList() {
 		where = where + " and c.ContractClass = '" + ContractClass + "'"
 	}
 
+	if ContractId != "" {
+		where = where + " and r.ContractId = '" + ContractId + "'"
+	}
 
 	if WorkflowId != "" {
 		where = where + " and r.WorkflowId like '%" + WorkflowId + "%'"