Kaynağa Gözat

用户身份处理

WH01243 1 yıl önce
ebeveyn
işleme
0483e1f9ad
1 değiştirilmiş dosya ile 9 ekleme ve 9 silme
  1. 9 9
      entity/jyUser.go

+ 9 - 9
entity/jyUser.go

@@ -52,7 +52,7 @@ func (rpc *JyUser) AddUserInfo(info *CompletionUserInfo, res *Resp) error {
 				"type":      1,
 				"person_id": 0,
 			}
-			accountId := BaseMysql.InsertBySqlByTx(tx, BaseAccount, entMap)
+			accountId := BaseMysql.InsertByTx(tx, BaseAccount, entMap)
 			if accountId == 0 {
 				return false
 			}
@@ -78,7 +78,7 @@ func (rpc *JyUser) AddUserInfo(info *CompletionUserInfo, res *Resp) error {
 				"create_time": time.Now().Local(),
 				"update_time": time.Now().Local(),
 			}
-			personId = BaseMysql.InsertBySqlByTx(tx, BasePerson, personMap)
+			personId = BaseMysql.InsertByTx(tx, BasePerson, personMap)
 			if personId == 0 {
 				return false
 			}
@@ -89,7 +89,7 @@ func (rpc *JyUser) AddUserInfo(info *CompletionUserInfo, res *Resp) error {
 				"type":      1,
 				"person_id": personId,
 			}
-			entAccountId = BaseMysql.InsertBySqlByTx(tx, BaseAccount, entMap)
+			entAccountId = BaseMysql.InsertByTx(tx, BaseAccount, entMap)
 			if entAccountId == 0 {
 				return false
 			}
@@ -99,7 +99,7 @@ func (rpc *JyUser) AddUserInfo(info *CompletionUserInfo, res *Resp) error {
 				"type":      0,
 				"person_id": personId,
 			}
-			userAccountId = BaseMysql.InsertBySqlByTx(tx, BaseAccount, entUserMap)
+			userAccountId = BaseMysql.InsertByTx(tx, BaseAccount, entUserMap)
 			if userAccountId == 0 {
 				return false
 			}
@@ -111,7 +111,7 @@ func (rpc *JyUser) AddUserInfo(info *CompletionUserInfo, res *Resp) error {
 				"create_time": time.Now().Local(),
 				"update_time": time.Now().Local(),
 			}
-			userId = BaseMysql.InsertBySqlByTx(tx, UserTable, userMap)
+			userId = BaseMysql.InsertByTx(tx, UserTable, userMap)
 			if userId == 0 {
 				return false
 			}
@@ -158,7 +158,7 @@ func (rpc *JyUser) AddUserInfo(info *CompletionUserInfo, res *Resp) error {
 					"account_name": accountName,
 					"type":         0,
 				}
-				userPositionId = BaseMysql.InsertBySqlByTx(tx, BasePosition, userPositionMap)
+				userPositionId = BaseMysql.InsertByTx(tx, BasePosition, userPositionMap)
 				if userPositionId == 0 {
 					return false
 				}
@@ -174,7 +174,7 @@ func (rpc *JyUser) AddUserInfo(info *CompletionUserInfo, res *Resp) error {
 					"account_name": accountName,
 					"type":         1,
 				}
-				entPositionId = BaseMysql.InsertBySqlByTx(tx, BasePosition, entPositionMap)
+				entPositionId = BaseMysql.InsertByTx(tx, BasePosition, entPositionMap)
 				if entPositionId == 0 {
 					return false
 				}
@@ -197,7 +197,7 @@ func (rpc *JyUser) AddUserInfo(info *CompletionUserInfo, res *Resp) error {
 					"type":      1,
 					"person_id": personId,
 				}
-				entAccountId = BaseMysql.InsertBySqlByTx(tx, BaseAccount, entMap)
+				entAccountId = BaseMysql.InsertByTx(tx, BaseAccount, entMap)
 				if entAccountId == 0 {
 					return false
 				}
@@ -235,7 +235,7 @@ func (rpc *JyUser) AddUserInfo(info *CompletionUserInfo, res *Resp) error {
 					"account_name": accountName,
 					"type":         1,
 				}
-				entPositionId = BaseMysql.InsertBySqlByTx(tx, BasePosition, positionMap)
+				entPositionId = BaseMysql.InsertByTx(tx, BasePosition, positionMap)
 				if entPositionId == 0 {
 					return false
 				}