切换导航条
此项目
正在载入...
登录
root
/
chengxiang
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
ea329e8eb2041fc4b68a8751f353c523a3993398
1 个父辈
312556f1
1 个管道 的构建
通过
耗费 2 秒
托管成功短信提示
变更
1
构建
1
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
12 行增加
和
9 行删除
app/index/model/OrderInfoModel.php
app/index/model/OrderInfoModel.php
查看文件 @
ea329e8
...
...
@@ -99,9 +99,9 @@ class OrderInfoModel extends Model
}
public
function
peopleCount
(
$where
){
$where
[
'o.delete_time'
]
=
[
'eq'
,
0
];
$where
[
'c.expire_time'
]
=
[
'>'
,
time
()];
//判断保单是否还在缴费期限内
$where
[
'o.order_expire_time'
]
=
[
'>'
,
time
()];
//筛选出托管中状态
$where
[
'o.status'
]
=
[
'eq'
,
3
];
//筛选出托管中状态
$where1
[
'o.order_expire_time'
]
=
[
'>'
,
time
()];
//筛选出托管中状态
$where1
[
'o.order_about_time'
]
=
[
'>'
,(
time
()
-
30
*
24
*
60
*
60
)];
$where1
[
'o.status'
]
=
[
'in'
,[
3
,
1
]];
$field
=
"c.*"
;
$data
=
$this
->
alias
(
'o_i'
)
...
...
@@ -109,15 +109,16 @@ class OrderInfoModel extends Model
->
join
(
'cmf_order o'
,
'o.id = o_i.order_id'
)
->
join
(
'cmf_collocation c'
,
'c.id = o_i.collocation_id'
)
->
where
(
$where
)
->
where
(
$where1
)
->
group
(
'c.insurer'
)
->
count
();
return
$data
;
}
public
function
totalSum
(
$where
){
$where
[
'o.delete_time'
]
=
[
'eq'
,
0
];
$where
[
'c.expire_time'
]
=
[
'>'
,
time
()];
//判断保单是否还在缴费期限内
$where
[
'o.order_expire_time'
]
=
[
'>'
,
time
()];
//筛选出托管中状态
$where
[
'o.status'
]
=
[
'eq'
,
3
];
//筛选出托管中状态
$where1
[
'o.order_expire_time'
]
=
[
'>'
,
time
()];
//筛选出托管中状态
$where1
[
'o.order_about_time'
]
=
[
'>'
,(
time
()
-
30
*
24
*
60
*
60
)];
$where1
[
'o.status'
]
=
[
'in'
,[
3
,
1
]];
$field
=
"c.*"
;
$data
=
$this
->
alias
(
'o_i'
)
...
...
@@ -125,14 +126,15 @@ class OrderInfoModel extends Model
->
join
(
'cmf_order o'
,
'o.id = o_i.order_id'
)
->
join
(
'cmf_collocation c'
,
'c.id = o_i.collocation_id'
)
->
where
(
$where
)
->
where
(
$where1
)
->
sum
(
'c.insurance_price'
);
return
$data
;
}
public
function
subjoinSum
(
$where
){
$where
[
'o.delete_time'
]
=
[
'eq'
,
0
];
$where
[
'c.expire_time'
]
=
[
'>'
,
time
()];
//判断保单是否还在缴费期限内
$where
[
'o.order_expire_time'
]
=
[
'>'
,
time
()];
//筛选出托管中状态
$where
[
'o.status'
]
=
[
'eq'
,
3
];
//筛选出托管中状态
$where1
[
'o.order_expire_time'
]
=
[
'>'
,
time
()];
//筛选出托管中状态
$where1
[
'o.order_about_time'
]
=
[
'>'
,(
time
()
-
30
*
24
*
60
*
60
)];
$where1
[
'o.status'
]
=
[
'in'
,[
3
,
1
]];
$field
=
"c.*"
;
$data
=
$this
->
alias
(
'o_i'
)
...
...
@@ -140,6 +142,7 @@ class OrderInfoModel extends Model
->
join
(
'cmf_order o'
,
'o.id = o_i.order_id'
)
->
join
(
'cmf_collocation c'
,
'c.id = o_i.collocation_id'
)
->
where
(
$where
)
->
where
(
$where1
)
->
order
(
'c.create_time'
,
'desc'
)
->
select
()
->
toArray
();
//获取附加险的信息
...
...
请
注册
或
登录
后发表评论