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
6604a53d
Commit
6604a53d
authored
May 13, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
f30b96e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
ConvertOrder.php
application/api/controller/ConvertOrder.php
+4
-3
Shop.php
application/api_broker/controller/Shop.php
+3
-3
OReportModel.php
application/model/OReportModel.php
+1
-0
No files found.
application/api/controller/ConvertOrder.php
View file @
6604a53d
...
@@ -59,7 +59,7 @@ class ConvertOrder extends Basic
...
@@ -59,7 +59,7 @@ class ConvertOrder extends Basic
set_time_limit
(
0
);
set_time_limit
(
0
);
//todo old num convert new table. first select page report num.
//todo old num convert new table. first select page report num.
//$params = $this->params;
//$params = $this->params;
$time_
=
array
(
'between'
,
array
(
"201
6-04-18 23:59:59"
,
"2018-04-17
23:59:59"
)
);
$time_
=
array
(
'between'
,
array
(
"201
8-04-17 23:59:59"
,
"2018-05-13
23:59:59"
)
);
$total
=
$this
->
appliesModel
->
getAppliesCount
([
"a.created"
=>
$time_
]);
$total
=
$this
->
appliesModel
->
getAppliesCount
([
"a.created"
=>
$time_
]);
...
@@ -77,6 +77,7 @@ class ConvertOrder extends Basic
...
@@ -77,6 +77,7 @@ class ConvertOrder extends Basic
if
(
count
(
$userInfo
)
>
1
)
{
if
(
count
(
$userInfo
)
>
1
)
{
$reportParam
=
$this
->
reportBin
(
$item
[
"id"
],
$item
[
"agent_id"
],
$item
[
"phone"
],
$item
[
"realname"
],
$item
[
"agent_shop_id"
],
$userInfo
[
"id"
],
$userInfo
[
"user_phone"
]
$reportParam
=
$this
->
reportBin
(
$item
[
"id"
],
$item
[
"agent_id"
],
$item
[
"phone"
],
$item
[
"realname"
],
$item
[
"agent_shop_id"
],
$userInfo
[
"id"
],
$userInfo
[
"user_phone"
]
,
$userInfo
[
"user_name"
],
$item
[
"vehicle"
],
$item
[
"agent_shop_id"
],
$item
[
"receptiontime"
],
$item
[
"created"
],
$item
[
"modified"
]);
,
$userInfo
[
"user_name"
],
$item
[
"vehicle"
],
$item
[
"agent_shop_id"
],
$item
[
"receptiontime"
],
$item
[
"created"
],
$item
[
"modified"
]);
// dump($reportParam);exit;
$f_id
=
$this
->
reportModel
->
addReport
(
$reportParam
);
$f_id
=
$this
->
reportModel
->
addReport
(
$reportParam
);
if
(
$f_id
>
0
)
{
if
(
$f_id
>
0
)
{
$orderParam
=
$this
->
orderBin
(
$this
->
createOrderNumber
(),
$f_id
,
$item
[
"house_id"
],
$item
[
"created"
],
$item
[
"modified"
]);
$orderParam
=
$this
->
orderBin
(
$this
->
createOrderNumber
(),
$f_id
,
$item
[
"house_id"
],
$item
[
"created"
],
$item
[
"modified"
]);
...
@@ -98,7 +99,7 @@ class ConvertOrder extends Basic
...
@@ -98,7 +99,7 @@ class ConvertOrder extends Basic
public
function
convertMarchIn
()
public
function
convertMarchIn
()
{
{
set_time_limit
(
0
);
set_time_limit
(
0
);
$time_
=
array
(
'between'
,
array
(
"2016-04-18 23:59:59"
,
"2018-04-17
23:59:59"
)
);
$time_
=
array
(
'between'
,
array
(
"2018-04-17 23:59:59"
,
"2018-05-13
23:59:59"
)
);
$total
=
$this
->
remarksModel
->
getRemarksCount
([
"a.created"
=>
$time_
]);
$total
=
$this
->
remarksModel
->
getRemarksCount
([
"a.created"
=>
$time_
]);
$pageSize
=
200
;
$pageSize
=
200
;
...
@@ -124,7 +125,7 @@ class ConvertOrder extends Basic
...
@@ -124,7 +125,7 @@ class ConvertOrder extends Basic
public
function
convertCollectingBill
()
public
function
convertCollectingBill
()
{
{
set_time_limit
(
0
);
set_time_limit
(
0
);
$time_
=
array
(
'between'
,
array
(
"201
6-04-18 23:59:59"
,
"2018-04-17
23:59:59"
)
);
$time_
=
array
(
'between'
,
array
(
"201
8-04-17 23:59:59"
,
"2018-05-13
23:59:59"
)
);
$field
=
"a.type,a.moneytype,a.money,a.trademark,a.remarks,a.created,a.modified,d.id as agent_id,b.id as report_id,c.id as order_id,c.order_no"
;
$field
=
"a.type,a.moneytype,a.money,a.trademark,a.remarks,a.created,a.modified,d.id as agent_id,b.id as report_id,c.id as order_id,c.order_no"
;
$collectingBillList
=
$this
->
journalaccountsModel
->
getJournalAccountsListByStatus
(
1
,
2000
,
$field
,
[
"a.created"
=>
$time_
]);
$collectingBillList
=
$this
->
journalaccountsModel
->
getJournalAccountsListByStatus
(
1
,
2000
,
$field
,
[
"a.created"
=>
$time_
]);
$collectingBillArr
=
[];
$collectingBillArr
=
[];
...
...
application/api_broker/controller/Shop.php
View file @
6604a53d
...
@@ -42,8 +42,8 @@ class Shop extends Basic
...
@@ -42,8 +42,8 @@ class Shop extends Basic
{
{
/*$params = array(
/*$params = array(
"site_area" => 4, //来源 1c首页 2c搜索 3b首页 4b搜索
"site_area" => 4, //来源 1c首页 2c搜索 3b首页 4b搜索
"title" => "vv", //1,2 external_title ,3,4internal_title
//
"title" => "vv", //1,2 external_title ,3,4internal_title
"house_id" =>
1
,
"house_id" =>
4
,
"is_carefully_chosen" => 0, //精选商铺--0否1是
"is_carefully_chosen" => 0, //精选商铺--0否1是
"shop_type" => 0, //商铺类型(0商场,1街铺)
"shop_type" => 0, //商铺类型(0商场,1街铺)
"disc" => "黄浦区",
"disc" => "黄浦区",
...
@@ -166,7 +166,7 @@ class Shop extends Basic
...
@@ -166,7 +166,7 @@ class Shop extends Basic
//获取图片信息
//获取图片信息
foreach
(
$result
as
$key
=>
$val
)
{
foreach
(
$result
as
$key
=>
$val
)
{
$result
[
$key
][
"api_path"
]
=
CK_IMG_URL
.
'images/'
;
$result
[
$key
][
"api_path"
]
=
CK_IMG_URL
.
'images/'
;
$result
[
$key
][
"rent_price"
]
=
$
result
[
$key
]
[
"rent_price"
]
*
0.01
;
$result
[
$key
][
"rent_price"
]
=
$
val
[
"rent_price"
]
*
0.01
;
$param
[
"house_id"
]
=
$val
[
"id"
];
$param
[
"house_id"
]
=
$val
[
"id"
];
$param
[
"img_type"
]
=
1
;
//默认主图
$param
[
"img_type"
]
=
1
;
//默认主图
...
...
application/model/OReportModel.php
View file @
6604a53d
...
@@ -46,6 +46,7 @@ class OReportModel extends Model
...
@@ -46,6 +46,7 @@ class OReportModel extends Model
Db
::
rollback
();
Db
::
rollback
();
return
0
;
return
0
;
}
}
}
}
/**
/**
...
...
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