作者 陈志颖

test:测试分红预算

... ... @@ -701,7 +701,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent
initRepo := time.Since(start)
log.Logger.Info("初始化耗时", map[string]interface{}{
"初始化耗时": initRepo,
"初始化耗时": initRepo.Seconds(),
})
startFindOrderGood := time.Now() // 获取当前时间
... ... @@ -716,7 +716,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent
findOrderGood := time.Since(startFindOrderGood)
log.Logger.Info("查询预算产品耗时", map[string]interface{}{
"初始化耗时": findOrderGood,
"初始化耗时": findOrderGood.Seconds(),
})
dividendsEstimates := make([]*domain.DividendsEstimate, 0)
... ... @@ -749,7 +749,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent
endFindContracts := time.Since(startFindContracts)
log.Logger.Info("查询合约耗时", map[string]interface{}{
"查询合约耗时": endFindContracts,
"查询合约耗时": endFindContracts.Seconds(),
})
log.Logger.Info("查询共创合约", map[string]interface{}{
... ... @@ -887,7 +887,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent
endConfirm := time.Since(startConfirm)
log.Logger.Info("预算耗时", map[string]interface{}{
"预算耗时": endConfirm,
"预算耗时": endConfirm.Seconds(),
})
log.Logger.Info("新增的分红预算单", map[string]interface{}{
... ... @@ -1062,7 +1062,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent
endSave := time.Since(startSave)
log.Logger.Info("保存预算单耗时", map[string]interface{}{
"保存预算单耗时": endSave,
"保存预算单耗时": endSave.Seconds(),
})
return map[string]interface{}{
... ...
... ... @@ -13,7 +13,7 @@ func init() {
Logger = NewBeegoLog(LoggerConfig{
Filename: constant.LOG_FILE,
Level: 7,
MaxSize: 1024 * 1024 * 2,
MaxSize: 1024 * 1024 * 5,
})
} else if constant.LOG_FRAMEWORK == "logrus" {
Logger = logrus.NewLogrusLogger()
... ...