소스 검색

创建时间修改

WH01243 3 년 전
부모
커밋
28e7498793
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 3
      service/AuthService.go
  2. 1 1
      service/InstitutionService.go

+ 3 - 3
service/AuthService.go

@@ -1,7 +1,8 @@
 package service
 
 import (
-	"app.yhyue.com/moapp/jybase/go-xweb/log"
+    "app.yhyue.com/moapp/jybase/date"
+    "app.yhyue.com/moapp/jybase/go-xweb/log"
 	"app.yhyue.com/moapp/jybase/mysql"
 	"bp.jydev.jianyu360.cn/ApplicationCenter/medicalField/entity"
 	"bp.jydev.jianyu360.cn/ApplicationCenter/medicalField/rpc/medical/medical"
@@ -9,7 +10,6 @@ import (
 	"context"
 	"database/sql"
 	"fmt"
-	"time"
 )
 
 type AuthService struct {
@@ -62,7 +62,7 @@ func (b AuthService) UserAuthInfoSave(in *medical.UserInfo) (bool, string) {
 			"mail":        in.Mail,
 			"ent_name":    in.EntName,
 			"user_id":     in.UserId,
-			"create_time": time.Now(),
+			"create_time": date.NowFormat(date.Date_Full_Layout)),
 			"appid":       in.Appid,
 			"source":      entity.MEDICALDOMAIN,
 		}

+ 1 - 1
service/InstitutionService.go

@@ -101,7 +101,7 @@ func (b InstitutionService) Institution(in *medical.SearchInstitutionReq) (dataL
 	companyMap := make(map[string]map[string]interface{})
 	if len(*companyList) > 0 && companyList != nil {
 		//认领数据查询
-		companyIdMap := b.ClaimCompanyData(in.Appid, in.NewUserId, entity.TypeDistributor)
+		companyIdMap := b.ClaimCompanyData(in.Appid, in.NewUserId, entity.TypeInstitution)
 		for key, value := range *companyList {
 			if key > 0 {
 				companyName += `,`