|
|
@@ -348,7 +348,8 @@ func (this *OilSupplierCertAppendListenerController) WorkflowEndAudit() {
|
|
|
appendWhere := " SupplierId = " + utils.ToStr(supplierCertAppendEntity.SupplierId) + " and SupplierCertId = " + utils.ToStr(supplierCertAppendEntity.SupplierCertId) + " and Type = '2'"
|
|
|
var appendSubModel suppliercertsub.OilSupplierCertSub
|
|
|
appendSubModel.Type = "3"
|
|
|
- certAppendSrv.UpdateEntityBywheretbl(OilSupplierCertSubName, &appendSubModel, []string{"Type"}, appendWhere)
|
|
|
+ appendSubModel.CertSubStatus = "1" // 修改新增准入项状态 1准入 >2暂停
|
|
|
+ certAppendSrv.UpdateEntityBywheretbl(OilSupplierCertSubName, &appendSubModel, []string{"Type", "CertSubStatus"}, appendWhere)
|
|
|
|
|
|
//更新资质表
|
|
|
appendFileWhere := " SupplierId = " + utils.ToStr(supplierCertAppendEntity.SupplierId) + " and SupType = 2"
|
|
|
@@ -374,11 +375,11 @@ func (this *OilSupplierCertAppendListenerController) WorkflowEndAudit() {
|
|
|
user.Realname = infoItems[i].ChangeInfo
|
|
|
var cor register.OilCorporateInfo
|
|
|
var supplier supplier.OilSupplier
|
|
|
- certAppendSrv.GetEntityByWhere(OilSupplierName,"Id = " + strconv.Itoa(supplierCertAppendEntity.SupplierId),&supplier)
|
|
|
- certAppendSrv.GetEntityByWhere(OilCorporateInfoName,"CommercialNo = '" + supplier.CommercialNo + "'",&cor)
|
|
|
+ certAppendSrv.GetEntityByWhere(OilSupplierName, "Id = "+strconv.Itoa(supplierCertAppendEntity.SupplierId), &supplier)
|
|
|
+ certAppendSrv.GetEntityByWhere(OilCorporateInfoName, "CommercialNo = '"+supplier.CommercialNo+"'", &cor)
|
|
|
if cor.UserId > 0 {
|
|
|
// 更新user表的RealName
|
|
|
- certAppendSrv.UpdateEntityBywheretbl("Base_User", &user, []string{"RealName"}, "Id = " + strconv.Itoa(cor.UserId))
|
|
|
+ certAppendSrv.UpdateEntityBywheretbl("Base_User", &user, []string{"RealName"}, "Id = "+strconv.Itoa(cor.UserId))
|
|
|
}
|
|
|
|
|
|
// 曾用名存到主表
|