|
|
@@ -459,6 +459,16 @@ func (this *OilCorporateInfoController) ComAudit() {
|
|
|
// //_, err3 := svcRegister.InsertEntityBytbl(OilCorporateInfoName, &model)
|
|
|
//}
|
|
|
if err0 == nil {
|
|
|
+ //修改主表数据的邮箱和手机号,如果能找到的话
|
|
|
+ supSvc := supplier.GetOilSupplierService(utils.DBE)
|
|
|
+ var supplier supplier.OilSupplier
|
|
|
+ supSvc.GetEntityByWhere(OilSupplierName, "CommercialNo = '" + model.CommercialNo + "'", &supplier)
|
|
|
+ if supplier.Id > 0 {
|
|
|
+ cols := []string{"EMail", "Mobile"}
|
|
|
+ model.Mobile = model.UserTelephone
|
|
|
+ supSvc.UpdateEntityBywheretbl(OilSupplierName, &model, cols, "Id = " + strconv.Itoa(supplier.Id))
|
|
|
+ }
|
|
|
+
|
|
|
//编辑短信内容
|
|
|
toMobile := model.UserTelephone
|
|
|
msg := "恭喜您!市场管理信息系统账号注册成功,系统登录用户名为: " + model.UserName //
|