|
|
@@ -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+"' ")
|