|
|
@@ -5,6 +5,7 @@ import (
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/supplier"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/suppliercert"
|
|
|
"dashoo.cn/backend/api/business/oilsupplier/supplierpausereason"
|
|
|
+ "dashoo.cn/backend/api/business/organize"
|
|
|
"dashoo.cn/business2/parameter"
|
|
|
"encoding/json"
|
|
|
|
|
|
@@ -381,6 +382,11 @@ func (this *OilSupplierCertSubController) AddGoodsBus() {
|
|
|
datamain.IsDelete = 0
|
|
|
datamain.CreateBy = this.User.Realname
|
|
|
datamain.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
|
|
|
+ unitsvc := organize.GetOrganizeService(utils.DBE)
|
|
|
+ unitid := unitsvc.GetMyUnitDepartmentId(this.User.DepartmentId)
|
|
|
+ if unitid == "100000095" {
|
|
|
+ datamain.CertSubStatus = "1"
|
|
|
+ }
|
|
|
svc.InsertEntityBytbl(OilSupplierCertSubName, &datamain)
|
|
|
|
|
|
paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
|
|
|
@@ -490,6 +496,11 @@ func (this *OilSupplierCertSubController) AddTechBus() {
|
|
|
datamain.IsDelete = 0
|
|
|
datamain.CreateBy = this.User.Realname
|
|
|
datamain.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
|
|
|
+ unitsvc := organize.GetOrganizeService(utils.DBE)
|
|
|
+ unitid := unitsvc.GetMyUnitDepartmentId(this.User.DepartmentId)
|
|
|
+ if unitid == "100000095" {
|
|
|
+ datamain.CertSubStatus = "1"
|
|
|
+ }
|
|
|
svc.InsertEntityBytbl(OilSupplierCertSubName, &datamain)
|
|
|
|
|
|
paramSvc := baseparameter.GetBaseparameterService(utils.DBE)
|