Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
weixiuhui
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
蒋林
weixiuhui
Commits
f3506497
Commit
f3506497
authored
Sep 26, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 派工单搜索相关修改
parent
6f6e3c6a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
16 deletions
+40
-16
Galanz.php
application/controllers/api/Galanz.php
+1
-1
Galanz.php
application/controllers/task/Galanz.php
+1
-1
ReceiveGalanz.php
application/libraries/Receive/ReceiveGalanz.php
+22
-2
SourceGalanz.php
application/libraries/Source/SourceGalanz.php
+16
-12
No files found.
application/controllers/api/Galanz.php
View file @
f3506497
...
@@ -94,7 +94,7 @@ class Galanz extends BaseController
...
@@ -94,7 +94,7 @@ class Galanz extends BaseController
$this
->
saveLog
(
''
,
'searchOrder'
,
$param
);
$this
->
saveLog
(
''
,
'searchOrder'
,
$param
);
$sourceGalanzObj
=
$this
->
sourceGalanzObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$sourceGalanzObj
=
$this
->
sourceGalanzObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$result
=
$sourceGalanzObj
->
SearchOrder
(
''
,
$values
[
'mobile
'
]);
$result
=
$sourceGalanzObj
->
SearchOrder
(
$values
[
'name'
],
$values
[
'custmobile'
],
$values
[
'finishstatus'
],
$values
[
'acceptstatus'
],
$values
[
'callintype'
],
$values
[
'starttime'
],
$values
[
'endtime'
],
$values
[
'isreminder
'
]);
$result
=
$sourceGalanzObj
->
HandelSearchOrderFields
(
$result
,
'call'
);
$result
=
$sourceGalanzObj
->
HandelSearchOrderFields
(
$result
,
'call'
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
...
...
application/controllers/task/Galanz.php
View file @
f3506497
...
@@ -65,7 +65,7 @@ class Galanz extends BaseController
...
@@ -65,7 +65,7 @@ class Galanz extends BaseController
$endTime
=
date
(
"Y/m/d"
,
strtotime
(
$nowTime
)
+
86400
);
$endTime
=
date
(
"Y/m/d"
,
strtotime
(
$nowTime
)
+
86400
);
$orders
=
$this
->
SourceGalanz
->
SearchOrder
(
''
,
''
,
$startTime
,
$endTime
);
$orders
=
$this
->
SourceGalanz
->
SearchOrder
(
''
,
''
,
''
,
''
,
''
,
$startTime
,
$endTime
);
if
(
empty
(
$orders
))
{
if
(
empty
(
$orders
))
{
return
false
;
return
false
;
...
...
application/libraries/Receive/ReceiveGalanz.php
View file @
f3506497
...
@@ -33,8 +33,28 @@ class ReceiveGalanz extends Receive
...
@@ -33,8 +33,28 @@ class ReceiveGalanz extends Receive
public
function
CheckSearchOrderValues
()
public
function
CheckSearchOrderValues
()
{
{
$fileds
=
[
'mobile'
];
// $fileds = ['custmobile'];
$this
->
CheckValues
(
$fileds
);
// $this->CheckValues($fileds);
$dfields
=
[
'name'
,
'custmobile'
,
'finishstatus'
,
'acceptstatus'
,
'callintype'
,
'starttime'
,
'endtime'
,
'isreminder'
];
$this
->
SetDefaultValues
(
$dfields
);
if
(
$this
->
values
[
'starttime'
])
{
$this
->
values
[
'starttime'
]
=
date
(
'Y/m/d'
,
strtotime
(
$this
->
values
[
'starttime'
]));
}
if
(
$this
->
values
[
'endtime'
])
{
$this
->
values
[
'endtime'
]
=
date
(
'Y/m/d'
,
strtotime
(
$this
->
values
[
'endtime'
]));
}
}
}
public
function
CheckSearchWorkOrderValues
()
public
function
CheckSearchWorkOrderValues
()
...
...
application/libraries/Source/SourceGalanz.php
View file @
f3506497
...
@@ -182,13 +182,17 @@ class SourceGalanz extends Source
...
@@ -182,13 +182,17 @@ class SourceGalanz extends Source
/**
/**
* 派工单搜索
* 派工单搜索
* @param string $new_name
* @param string $name 受理单号: CALL2015052002491
* @param string $mobile
* @param string $custtel 联系号码: 18611112222
* @param string $startTime
* @param string $finishStatus 是否完成: 0:否; 1:是
* @param string $endTime
* @param string $isAccept 是否接受: 1:是 2:否; 3:未处理
* @param string $callintype 受理类型: 1:咨询; 2:报修; 3:投诉; 4:安装; 5:建议; 6:移机
* @param string $startTime 开始时间,格式:2016/08/05
* @param string $endTime 结束时间,格式:同上
* @param string $isreminder 是否催单: 0:否; 1:是
* @return array
* @return array
*/
*/
public
function
SearchOrder
(
$n
ew_name
=
''
,
$mobile
=
''
,
$startTime
=
''
,
$endTime
=
''
)
public
function
SearchOrder
(
$n
ame
=
''
,
$custtel
=
''
,
$finishStatus
=
''
,
$isAccept
=
''
,
$callintype
=
''
,
$startTime
=
''
,
$endTime
=
''
,
$isreminder
=
''
)
{
{
$post
=
[
$post
=
[
'__EVENTTARGET'
=>
'ctl00$ContentQuery$btnQuery'
,
'__EVENTTARGET'
=>
'ctl00$ContentQuery$btnQuery'
,
...
@@ -199,18 +203,18 @@ class SourceGalanz extends Source
...
@@ -199,18 +203,18 @@ class SourceGalanz extends Source
'ctl00$ContentQuery$hidMainId'
=>
''
,
'ctl00$ContentQuery$hidMainId'
=>
''
,
'ctl00$ContentQuery$hidAttrCode'
=>
''
,
'ctl00$ContentQuery$hidAttrCode'
=>
''
,
'ctl00$ContentQuery$hidMainIdName'
=>
''
,
'ctl00$ContentQuery$hidMainIdName'
=>
''
,
'ctl00$ContentQuery$new_name'
=>
$n
ew_n
ame
,
'ctl00$ContentQuery$new_name'
=>
$name
,
'ctl00$ContentQuery$new_custname'
=>
''
,
'ctl00$ContentQuery$new_custname'
=>
''
,
'ctl00$ContentQuery$ddlfinishstatus'
=>
''
,
'ctl00$ContentQuery$ddlfinishstatus'
=>
$finishStatus
,
'ctl00$ContentQuery$startTime'
=>
$startTime
,
'ctl00$ContentQuery$startTime'
=>
$startTime
,
'ctl00$ContentQuery$endTime'
=>
$endTime
,
'ctl00$ContentQuery$endTime'
=>
$endTime
,
'ctl00$ContentQuery$ddlIsAccept'
=>
''
,
'ctl00$ContentQuery$ddlIsAccept'
=>
$isAccept
,
'ctl00$ContentQuery$new_custtel'
=>
$
mobile
,
'ctl00$ContentQuery$new_custtel'
=>
$
custtel
,
'ctl00$ContentQuery$new_address'
=>
''
,
'ctl00$ContentQuery$new_address'
=>
''
,
'ctl00$ContentQuery$ddlcallintype'
=>
''
,
'ctl00$ContentQuery$ddlcallintype'
=>
$callintype
,
'ctl00$ContentQuery$new_isReminder'
=>
''
,
'ctl00$ContentQuery$new_isReminder'
=>
$isreminder
,
'ctl00$ContentQuery$new_ServicePersonnel'
=>
''
,
'ctl00$ContentQuery$new_ServicePersonnel'
=>
''
,
'ctl00$ContentData$PagerToolBar1$ctl00'
=>
50
0
,
'ctl00$ContentData$PagerToolBar1$ctl00'
=>
50
,
'ctl00$ContentData$PagerToolBar1$ctl05'
=>
1
'ctl00$ContentData$PagerToolBar1$ctl05'
=>
1
];
];
...
...
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