forked from free-lancers/electricity_bill_calc_service
doc(calculate): 优化代码格式,删除部分无用打印语句
This commit is contained in:
@@ -217,7 +217,7 @@ func (rs _ReportService) CreateNewReport(createFrom *vo.ReportCreationForm) (boo
|
||||
rs.log.Error("创建核算报表错误", zap.Error(err))
|
||||
return false, err
|
||||
}
|
||||
log.Println("创建成功,successsssssssssssssssssssssssssssssssssssssssssssssssssssss")
|
||||
|
||||
|
||||
if !state {
|
||||
status, err := repository.CalculateRepository.UpdateReportCalculateStatus(report, "InsufficientData",
|
||||
@@ -228,13 +228,13 @@ func (rs _ReportService) CreateNewReport(createFrom *vo.ReportCreationForm) (boo
|
||||
}
|
||||
return status, nil
|
||||
}
|
||||
log.Println("更新成功succssssssssssssssss")
|
||||
|
||||
err = rs.CalculateReport(report)
|
||||
if err != nil {
|
||||
rs.log.Error("计算时出错", zap.Error(err))
|
||||
return false, err
|
||||
}
|
||||
log.Println("返回truettttttttttttttttttt")
|
||||
|
||||
return true, nil
|
||||
}
|
||||
|
||||
@@ -270,7 +270,7 @@ func (rs _ReportService) CalculateReport(rid string) error {
|
||||
//defer semaphore.Unlock()
|
||||
|
||||
errs := calculate.MainCalculateProcess(rid)
|
||||
log.Println("开始计算555555555555555555555555555")
|
||||
|
||||
if errs == nil {
|
||||
_, err := repository.CalculateRepository.UpdateReportCalculateStatus(rid, "success", "")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user