作者 陈志颖

test:测试分红预算

@@ -701,7 +701,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent @@ -701,7 +701,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent
701 701
702 initRepo := time.Since(start) 702 initRepo := time.Since(start)
703 log.Logger.Info("初始化耗时", map[string]interface{}{ 703 log.Logger.Info("初始化耗时", map[string]interface{}{
704 - "初始化耗时": initRepo, 704 + "初始化耗时": initRepo.Seconds(),
705 }) 705 })
706 706
707 startFindOrderGood := time.Now() // 获取当前时间 707 startFindOrderGood := time.Now() // 获取当前时间
@@ -716,7 +716,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent @@ -716,7 +716,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent
716 716
717 findOrderGood := time.Since(startFindOrderGood) 717 findOrderGood := time.Since(startFindOrderGood)
718 log.Logger.Info("查询预算产品耗时", map[string]interface{}{ 718 log.Logger.Info("查询预算产品耗时", map[string]interface{}{
719 - "初始化耗时": findOrderGood, 719 + "初始化耗时": findOrderGood.Seconds(),
720 }) 720 })
721 721
722 dividendsEstimates := make([]*domain.DividendsEstimate, 0) 722 dividendsEstimates := make([]*domain.DividendsEstimate, 0)
@@ -749,7 +749,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent @@ -749,7 +749,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent
749 749
750 endFindContracts := time.Since(startFindContracts) 750 endFindContracts := time.Since(startFindContracts)
751 log.Logger.Info("查询合约耗时", map[string]interface{}{ 751 log.Logger.Info("查询合约耗时", map[string]interface{}{
752 - "查询合约耗时": endFindContracts, 752 + "查询合约耗时": endFindContracts.Seconds(),
753 }) 753 })
754 754
755 log.Logger.Info("查询共创合约", map[string]interface{}{ 755 log.Logger.Info("查询共创合约", map[string]interface{}{
@@ -887,7 +887,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent @@ -887,7 +887,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent
887 887
888 endConfirm := time.Since(startConfirm) 888 endConfirm := time.Since(startConfirm)
889 log.Logger.Info("预算耗时", map[string]interface{}{ 889 log.Logger.Info("预算耗时", map[string]interface{}{
890 - "预算耗时": endConfirm, 890 + "预算耗时": endConfirm.Seconds(),
891 }) 891 })
892 892
893 log.Logger.Info("新增的分红预算单", map[string]interface{}{ 893 log.Logger.Info("新增的分红预算单", map[string]interface{}{
@@ -1062,7 +1062,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent @@ -1062,7 +1062,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent
1062 1062
1063 endSave := time.Since(startSave) 1063 endSave := time.Since(startSave)
1064 log.Logger.Info("保存预算单耗时", map[string]interface{}{ 1064 log.Logger.Info("保存预算单耗时", map[string]interface{}{
1065 - "保存预算单耗时": endSave, 1065 + "保存预算单耗时": endSave.Seconds(),
1066 }) 1066 })
1067 1067
1068 return map[string]interface{}{ 1068 return map[string]interface{}{
@@ -13,7 +13,7 @@ func init() { @@ -13,7 +13,7 @@ func init() {
13 Logger = NewBeegoLog(LoggerConfig{ 13 Logger = NewBeegoLog(LoggerConfig{
14 Filename: constant.LOG_FILE, 14 Filename: constant.LOG_FILE,
15 Level: 7, 15 Level: 7,
16 - MaxSize: 1024 * 1024 * 2, 16 + MaxSize: 1024 * 1024 * 5,
17 }) 17 })
18 } else if constant.LOG_FRAMEWORK == "logrus" { 18 } else if constant.LOG_FRAMEWORK == "logrus" {
19 Logger = logrus.NewLogrusLogger() 19 Logger = logrus.NewLogrusLogger()