Jelajahi Sumber

接收人改为部门

baichengfei 5 tahun lalu
induk
melakukan
d5b66d5f4b

+ 2 - 2
src/dashoo.cn/backend/api/business/oilcontract/contractEvaluationOrder/contractEvaluationOrder.go

@@ -8,8 +8,8 @@ type OilContractEvaluationOrder struct {
 	Id             int       `json:"Id" xorm:"not null pk autoincr INT(11) 'Id'"`
 	ContractId     int       `json:"ContractId" xorm:"not null comment('合同表Id') INT(11) 'ContractId'"`
 	ReviewId       int       `json:"ReviewId" xorm:"comment('日常评价审批id') INT(11) 'ReviewId'"`
-	AuditId        int       `json:"AuditId" xorm:"comment('审核工单接收人id') INT(11) 'AuditId'"`
-	AuditBy        string    `json:"AuditBy" xorm:"comment('接收人') VARCHAR(50) 'AuditBy'"`
+	UnitId         int       `json:"AuditId" xorm:"comment('审核工单接收部门id') INT(11) 'AuditId'"`
+	UnitBy         string    `json:"AuditBy" xorm:"comment('接收部门') VARCHAR(50) 'AuditBy'"`
 	IsConfirm      int       `json:"IsConfirm" xorm:"default 0 comment('是否确认 0未确认,1已确认') INT(11) 'IsConfirm'"`
 	CreateOn       time.Time `json:"CreateOn" xorm:"DATETIME 'CreateOn'"`
 	CreateUserId   int       `json:"CreateUserId" xorm:"INT(11) 'CreateUserId'"`

+ 6 - 6
src/dashoo.cn/backend/api/controllers/oilcontract/contractEvaluationOrder.go

@@ -41,8 +41,8 @@ func (this *OilContractEvaluationOrderController) GetEntityList() {
 	Id := this.GetString("Id")
 	ContractId := this.GetString("ContractId")
 	ReviewId := this.GetString("ReviewId")
-	AuditId := this.GetString("AuditId")
-	AuditBy := this.GetString("AuditBy")
+	UnitId := this.GetString("UnitId")
+	UnitBy := this.GetString("UnitBy")
 	IsConfirm := this.GetString("IsConfirm")
 	CreateOn := this.GetString("CreateOn")
 	CreateUserId := this.GetString("CreateUserId")
@@ -63,12 +63,12 @@ func (this *OilContractEvaluationOrderController) GetEntityList() {
 		where = where + " and ReviewId like '%" + ReviewId + "%'"
 	}
 
-	if AuditId != "" {
-		where = where + " and AuditId like '%" + AuditId + "%'"
+	if UnitId != "" {
+		where = where + " and UnitId like '%" + UnitId + "%'"
 	}
 
-	if AuditBy != "" {
-		where = where + " and AuditBy like '%" + AuditBy + "%'"
+	if UnitBy != "" {
+		where = where + " and UnitBy like '%" + UnitBy + "%'"
 	}
 
 	if IsConfirm != "" {