切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
Administrator
about a year ago
提交
30fd08584537f4e62a8035a6ffb56fbd4f530c8c
2 个父辈
fe4303ed
7a45bec5
合并分支 'test' 到 'master'
Test 查看合并请求
!14
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
10 行增加
和
7 行删除
go_build_performance_main_go
pkg/application/notify/sms_staff_assess.go
pkg/port/beego/controllers/import_controller.go
go_build_performance_main_go
0 → 100755
查看文件 @
30fd085
ELF
\ No newline at end of file
...
...
pkg/application/notify/sms_staff_assess.go
查看文件 @
30fd085
...
...
@@ -4,6 +4,7 @@ import (
"time"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/factory"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/constant"
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
)
...
...
@@ -48,9 +49,9 @@ func (notices notifyStaffAssess) makeNotify(param *domain.StaffAssess) *domain.L
// ifSend 确认是否发送通知
func
(
notices
notifyStaffAssess
)
ifSend
(
index
int
)
(
bool
,
error
)
{
// if constant.Env != "prd" {
// return false, nil
// }
if
constant
.
Env
!=
"prd"
{
return
false
,
nil
}
transactionContext
,
err
:=
factory
.
CreateTransactionContext
(
nil
)
if
err
!=
nil
{
...
...
@@ -123,9 +124,9 @@ func (notices notifyStaffAssess2) makeNotify(param *domain.StaffAssess) *domain.
// ifSend 确认是否发送通知
func
(
notices
notifyStaffAssess2
)
ifSend
(
index
int
)
(
bool
,
error
)
{
// if constant.Env != "prd" {
// return false, nil
// }
if
constant
.
Env
!=
"prd"
{
return
false
,
nil
}
transactionContext
,
err
:=
factory
.
CreateTransactionContext
(
nil
)
if
err
!=
nil
{
return
false
,
err
...
...
pkg/port/beego/controllers/import_controller.go
查看文件 @
30fd085
...
...
@@ -16,6 +16,7 @@ import (
"golang.org/x/text/transform"
"io"
"io/ioutil"
"math"
"mime/multipart"
"os"
"path"
...
...
@@ -168,7 +169,7 @@ func (controller *ImportController) parseTemplateNodeContent(data []*domain.Perf
nodeContents
=
append
(
nodeContents
,
nc
)
}
}
weightTotal
=
math
.
Round
(
weightTotal
*
100
)
/
100
// 权重总数不等于100%,提示报错
if
weightTotal
!=
100
{
sprintf
:=
fmt
.
Sprintf
(
"当前导入的总权重值为:%s%%(必须等于100%%)"
,
utils
.
FormatFloatDecimal
(
weightTotal
,
2
))
...
...
请
注册
或
登录
后发表评论