Răsfoiți Sursa

后端: 新建合同保存二级单位

baichengfei 4 ani în urmă
părinte
comite
ca029051b1

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

@@ -776,6 +776,7 @@ func (this *OilContractController) AddEntity() {
 	model.CreateOn = time.Now()
 	model.CreateBy = this.User.Realname
 	model.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
+	model.SecondUnit = this.User.UnitId
 
 	var contract contract.OilContract
 	tempCount, _ := svc.GetCount(&contract, "ContractNo='"+model.ContractNo+"' ")