切换导航条
此项目
正在载入...
登录
mmm-go
/
partnermg
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
唐旭辉
5 years ago
提交
e22e1506c138b1644aa5235570b59fde8182a00c
1 个父辈
bfb940ac
bug 修复
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
7 行增加
和
2 行删除
pkg/application/businessBonus/service/service.go
pkg/infrastructure/repository/pg_company_reponsitory.go
pkg/application/businessBonus/service/service.go
查看文件 @
e22e150
...
...
@@ -19,6 +19,7 @@ func NewBusinessBonusService(option map[string]interface{}) *BusinessBonusServic
return
newService
}
// ListBusinessBonus 列表
func
(
srv
BusinessBonusService
)
ListBusinessBonus
(
queryOption
query
.
ListBusinessBonusQuery
)
(
int
,
interface
{},
error
)
{
var
(
transactionContext
,
_
=
factory
.
CreateTransactionContext
(
nil
)
...
...
@@ -61,7 +62,10 @@ func (srv BusinessBonusService) ListBusinessBonus(queryOption query.ListBusiness
"stateOfPayment"
:
v
.
BonusStatus
,
"stateOfPaymentName"
:
domain
.
DescribeBusinessBonusStatus
(
v
.
BonusStatus
),
"partner"
:
v
.
PartnerName
,
"updateTime"
:
v
.
UpdateAt
.
Format
(
"2006-01-02 15:04:05"
),
"updateTime"
:
""
,
}
if
!
v
.
UpdateAt
.
IsZero
()
{
m
[
"updateTime"
]
=
v
.
UpdateAt
.
Format
(
"2006-01-02 15:04:05"
)
}
returnData
=
append
(
returnData
,
m
)
}
...
...
@@ -113,6 +117,7 @@ func (srv BusinessBonusService) UpdateBusinessBonus(cmd command.UpdateBusinessBo
return
nil
}
//GetBusinessBonus 获取详情
func
(
srv
BusinessBonusService
)
GetBusinessBonus
(
queryOption
query
.
GetBusinessBonusQuery
)
(
map
[
string
]
interface
{},
error
)
{
var
(
...
...
pkg/infrastructure/repository/pg_company_reponsitory.go
查看文件 @
e22e150
...
...
@@ -77,7 +77,7 @@ func (reponsitory CompanyRepository) Edit(m *domain.Company) error {
DeleteAt
:
m
.
DeleteAt
,
UpdateAt
:
m
.
UpdateAt
,
}
_
,
err
=
tx
.
Model
(
&
companyModel
)
.
Update
()
_
,
err
=
tx
.
Model
(
&
companyModel
)
.
WherePK
()
.
Update
()
return
err
}
...
...
请
注册
或
登录
后发表评论