切换导航条
此项目
正在载入...
登录
mmm-go
/
partnermg
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
唐旭辉
4 years ago
提交
c4c3b17c3bb56c867fdb0ea69abc81f89bd4533a
1 个父辈
5712e6ed
修复错误
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
5 行增加
和
5 行删除
pkg/infrastructure/dao/pg_order_base_dao.go
pkg/port/beego/controllers/order_info_controlller.go
pkg/infrastructure/dao/pg_order_base_dao.go
查看文件 @
c4c3b17
...
...
@@ -168,7 +168,7 @@ func (dao OrderBaseDao) OrderBonusListForExcel(companyId int64, orderType int, p
//@param orderType 订单类型
//@param partnerOrCode 合伙人姓名或订单号或发货单号
//@param partnerCategory 合伙人类型id
//@param updateTime 订单更新时间范围"[开始时间,结束时间]",时间格式"20
1
6-01-02 15:04:05+07"
//@param updateTime 订单更新时间范围"[开始时间,结束时间]",时间格式"20
0
6-01-02 15:04:05+07"
func
(
dao
OrderBaseDao
)
OrderListByCondition
(
companyId
int64
,
orderType
int
,
partnerOrCode
string
,
updateTime
[
2
]
string
,
partnerCategory
int
,
limit
,
offset
int
)
([]
models
.
OrderBase
,
int
,
error
)
{
tx
:=
dao
.
transactionContext
.
GetDB
()
...
...
pkg/port/beego/controllers/order_info_controlller.go
查看文件 @
c4c3b17
...
...
@@ -438,24 +438,24 @@ func (c *OrderInfoController) PageListOrderReal() {
)
if
len
(
param
.
UpdateTime
)
>
0
{
if
len
(
param
.
UpdateTime
[
0
])
>
0
{
t
,
err
:=
time
.
ParseInLocation
(
"20
1
6-01-02"
,
param
.
UpdateTime
[
0
],
time
.
Local
)
t
,
err
:=
time
.
ParseInLocation
(
"20
0
6-01-02"
,
param
.
UpdateTime
[
0
],
time
.
Local
)
if
err
!=
nil
{
c
.
ResponseError
(
errors
.
New
(
"UpdateTimeBegin 时间格式错误"
))
return
}
updateTimeBegin
=
t
.
Format
(
"20
1
6-01-02 15:04:05+07"
)
updateTimeBegin
=
t
.
Format
(
"20
0
6-01-02 15:04:05+07"
)
}
}
if
len
(
param
.
UpdateTime
)
>
1
{
if
len
(
param
.
UpdateTime
[
1
])
>
0
{
t
,
err
:=
time
.
ParseInLocation
(
"20
1
6-01-02"
,
param
.
UpdateTime
[
1
],
time
.
Local
)
t
,
err
:=
time
.
ParseInLocation
(
"20
0
6-01-02"
,
param
.
UpdateTime
[
1
],
time
.
Local
)
if
err
!=
nil
{
c
.
ResponseError
(
errors
.
New
(
"UpdateTimeEnd 时间格式错误"
))
return
}
//设定时间边界
t
.
Add
(
86399
*
time
.
Second
)
updateTimeEnd
=
t
.
Format
(
"20
1
6-01-02 15:04:05+07"
)
updateTimeEnd
=
t
.
Format
(
"20
0
6-01-02 15:04:05+07"
)
}
}
companyId
:=
c
.
GetUserCompany
()
...
...
请
注册
或
登录
后发表评论