Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
e58fee6e
Commit
e58fee6e
authored
May 17, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务确认时间
parent
f3abe816
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
9 deletions
+30
-9
PayLogOpen.php
application/index/controller/PayLogOpen.php
+7
-8
OPayLogOpenLog.php
application/model/OPayLogOpenLog.php
+22
-0
open_check_template_tpl.html
public/resource/template/open_check_template_tpl.html
+1
-1
No files found.
application/index/controller/PayLogOpen.php
View file @
e58fee6e
...
...
@@ -163,7 +163,7 @@ class PayLogOpen extends Basic
}
$where
[
'a.is_del'
]
=
0
;
$fields
=
'a.id,a.create_time,a.agent_id,a.pay_log_id,a.bargain_id,a.order_id,a.house_id,a.status,a.house_address,
b.create_time as disc_time,max(b.id) as two_id
'
;
$fields
=
'a.id,a.create_time,a.agent_id,a.pay_log_id,a.bargain_id,a.order_id,a.house_id,a.status,a.house_address,
c.name
'
;
$redis_service
=
new
RedisCacheService
();
$m_pay_log
=
new
OPayLogModel
();
...
...
@@ -174,17 +174,16 @@ class PayLogOpen extends Basic
$log_where
[
'open_id'
]
=
$v
[
'id'
];
$log_where
[
'is_del'
]
=
0
;
$log_where
[
'status'
]
=
1
;
$list
[
$k
][
'disc_time'
]
=
$this
->
m_pay_open_log
->
getFieldOneValue
(
'create_time'
,
$log_where
);
$disc_time
=
$this
->
m_pay_open_log
->
getFieldOneValue
(
'create_time'
,
$log_where
);
$list
[
$k
][
'disc_time'
]
=
empty
(
$disc_time
)
?
''
:
$disc_time
;
if
(
$v
[
'status'
]
==
3
)
{
$pay_log_data
=
$
m_pay_log
->
selectPayLogByOrderNo
(
'create_time'
,
[
'id'
=>
$v
[
'pay_log_id'
]
]);
$list
[
$k
][
'check_time'
]
=
isset
(
$pay_log_data
[
0
][
'create_time'
])
?
$pay_log_data
[
0
]
[
'create_time'
]
:
''
;
if
(
$v
[
'status'
]
>
1
)
{
$pay_log_data
=
$
this
->
m_pay_open_log
->
getFind
(
'create_time'
,
0
,
[
'open_id'
=>
$v
[
'id'
],
'status'
=>
3
]);
$list
[
$k
][
'check_time'
]
=
isset
(
$pay_log_data
[
'create_time'
])
?
$pay_log_data
[
'create_time'
]
:
''
;
}
else
{
$list
[
$k
][
'check_time'
]
=
''
;
}
$agent_name
=
$redis_service
->
getRedisCache
(
2
,
$v
[
'agent_id'
]);
$list
[
$k
][
'agent_name'
]
=
$agent_name
[
'name'
];
$list
[
$k
][
'agent_name'
]
=
$v
[
'name'
];
unset
(
$list
[
$k
][
'two_id'
]);
}
$data
[
'list'
]
=
$list
;
...
...
application/model/OPayLogOpenLog.php
View file @
e58fee6e
...
...
@@ -57,4 +57,25 @@ class OPayLogOpenLog extends BaseModel
->
where
(
$params
)
->
select
();
}
/**
* @param $field
* @param $id
* @param array $params
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* User HuJun
* Date 19-5-17 上午10:30
*/
public
function
getFind
(
$field
,
$id
,
$params
=
[])
{
if
(
$id
)
{
$params
[
'id'
]
=
$id
;
}
$params
[
'is_del'
]
=
0
;
return
$this
->
db_
->
field
(
$field
)
->
where
(
$params
)
->
find
();
}
}
\ No newline at end of file
public/resource/template/open_check_template_tpl.html
View file @
e58fee6e
...
...
@@ -20,8 +20,8 @@
[
%
}
else
if
(
it
[
item
][
'status'
]
==
0
)
{
%
]
<
td
>
未审核
<
/td
>
[
%
}
%
]
<
td
>
[
%=
it
[
item
][
'check_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'disc_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'check_time'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success rejected"
href
=
"#modal-check"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
开业审核
<
/a
>
<
a
class
=
"btn1 btn-success details-btn"
href
=
"#modal_detail"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["bargain_id"] %]'
>
成交报告
<
/a
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment