作者 唐旭辉

bug 修复

... ... @@ -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 (
... ...
... ... @@ -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
}
... ...