|
|
@@ -11,6 +11,7 @@ import (
|
|
|
"mtp2_if/global/e"
|
|
|
"mtp2_if/logger"
|
|
|
"mtp2_if/models"
|
|
|
+ "mtp2_if/mtpcache"
|
|
|
"net/http"
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
@@ -18,7 +19,7 @@ import (
|
|
|
|
|
|
// 查询客户资料请求
|
|
|
type QryUserInfoReq struct {
|
|
|
- MemberUserID int `form:"MemberUserID" binding:"required"` // 所属机构用户ID
|
|
|
+ MemberUserID int64 `form:"MemberUserID" binding:"required"` // 所属机构用户ID
|
|
|
QueryType int32 `form:"queryType" binding:"required"` // 查询类型(1:未提交 2:待审核 3:正常 4:停用)
|
|
|
}
|
|
|
|
|
|
@@ -44,7 +45,7 @@ func QueryUserInfo(c *gin.Context) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- var m = models.ErmcpUserModel{MEMBERUSERID: req.MemberUserID}
|
|
|
+ var m = models.ErmcpUserModel{MEMBERUSERID: int(mtpcache.GetAreaUserId(req.MemberUserID, 0))}
|
|
|
if d, err := m.GetData(req.QueryType); err == nil {
|
|
|
appG.Response(http.StatusOK, e.SUCCESS, d)
|
|
|
} else {
|