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
9ab22df7
Commit
9ab22df7
authored
Nov 10, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
志高-维修业务-浏览
parent
4efa5a9b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
119 additions
and
15 deletions
+119
-15
Chigo.php
application/controllers/api/Chigo.php
+18
-0
Chigo.php
application/controllers/test/Chigo.php
+37
-8
ReceiveChigo.php
application/libraries/Receive/ReceiveChigo.php
+21
-0
SourceChigo.php
application/libraries/Source/SourceChigo.php
+32
-6
SourceSuning.php
application/libraries/Source/SourceSuning.php
+11
-1
No files found.
application/controllers/api/Chigo.php
View file @
9ab22df7
...
@@ -92,6 +92,24 @@ class Chigo extends BaseController
...
@@ -92,6 +92,24 @@ class Chigo extends BaseController
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
}
}
//家用维修业务-业务-维修单录入-浏览
public
function
queryRepairBill
()
{
$param
=
$this
->
input
->
post
();
//验证参数
$obj
=
$this
->
receiveObj
();
$obj
->
SetValues
(
$param
);
$obj
->
CheckQueryRepairBillValues
();
$values
=
$obj
->
GetValues
();
$this
->
saveLog
(
''
,
'queryRepairBill'
,
$values
);
$sourceObj
=
$this
->
sourceObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$result
=
$sourceObj
->
QueryRepairBill
(
$values
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
}
//服务商编号
//服务商编号
public
function
pickupAllSerNodeForUser
()
public
function
pickupAllSerNodeForUser
()
...
...
application/controllers/test/Chigo.php
View file @
9ab22df7
...
@@ -41,15 +41,15 @@ class Chigo extends BaseController
...
@@ -41,15 +41,15 @@ class Chigo extends BaseController
$sobj
=
$this
->
sourceObj
();
$sobj
=
$this
->
sourceObj
();
$data
=
[
$data
=
[
'
periodb'
=>
'201610
'
,
'
input_date_begin'
=>
'2016-10-01
'
,
'
periode'
=>
'201611
'
,
'
input_date_end'
=>
'2016-11-08
'
,
'
ser_
node_id'
=>
'0200145'
,
'node_id'
=>
'0200145'
,
'
center_code'
=>
'0801
'
,
'
repair_date_begin'
=>
'
'
,
'
ins_rep'
=>
'I
'
,
'
repair_date_end'
=>
'
'
,
'
wxqx'
=>
'
'
,
'
repair_no'
=>
'201609235
'
,
];
];
$res
=
$sobj
->
BrowseCloseAccount
(
$data
);
$res
=
$sobj
->
QueryRepairBill
(
$data
);
$this
->
show
(
$res
);
$this
->
show
(
$res
);
}
}
...
@@ -58,7 +58,7 @@ class Chigo extends BaseController
...
@@ -58,7 +58,7 @@ class Chigo extends BaseController
{
{
$xml
=
'<?xml version="1.0" encoding="gbk" standalone="yes"?>
$xml
=
'<?xml version="1.0" encoding="gbk" standalone="yes"?>
<DATAPACKET Version="2.0"><ACTION isquery="true"/><DATASET providername="
BrowseCloseAccount"><METADATA><FIELDS><FIELD attrname="PERIODB" fieldtype="string" width="0"/><FIELD attrname="PERIODE" fieldtype="string" width="0"/><FIELD attrname="SER_NODE_ID" fieldtype="string" width="0"/><FIELD attrname="CENTER_CODE" fieldtype="string" width="0"/><FIELD attrname="INS_REP" fieldtype="string" width="0"/><FIELD attrname="WXQX" fieldtype="string" width="0"/></FIELDS><PARAMS/></METADATA><ROWDATA><ROW PERIODB="201608" PERIODE="201611" SER_NODE_ID="0200145" CENTER_CODE="0801" INS_REP="I" WXQX="
"/></ROWDATA></DATASET></DATAPACKET>
<DATAPACKET Version="2.0"><ACTION isquery="true"/><DATASET providername="
QueryRepairBill"><METADATA><FIELDS><FIELD attrname="INPUT_DATE_BEGIN" fieldtype="string" width="0"/><FIELD attrname="INPUT_DATE_END" fieldtype="string" width="0"/><FIELD attrname="NODE_ID" fieldtype="string" width="0"/><FIELD attrname="REPAIR_DATE_BEGIN" fieldtype="string" width="0"/><FIELD attrname="REPAIR_DATE_END" fieldtype="string" width="0"/><FIELD attrname="REPAIR_NO" fieldtype="string" width="0"/><FIELD attrname="MACHINE_MODEL" fieldtype="string" width="0"/></FIELDS><PARAMS/></METADATA><ROWDATA><ROW INPUT_DATE_BEGIN="2016-10-01" INPUT_DATE_END="2016-11-08" NODE_ID="" REPAIR_DATE_BEGIN="" REPAIR_DATE_END="" REPAIR_NO="" MACHINE_MODEL="<10
"/></ROWDATA></DATASET></DATAPACKET>
'
;
'
;
$sobj
=
$this
->
sourceObj
();
$sobj
=
$this
->
sourceObj
();
...
@@ -190,6 +190,35 @@ class Chigo extends BaseController
...
@@ -190,6 +190,35 @@ class Chigo extends BaseController
$this
->
show
(
$result
);
$this
->
show
(
$result
);
}
}
public
function
queryRepairBill
()
{
$obj
=
$this
->
receiveObj
();
$data
=
[
'appid'
=>
'10001'
,
'account'
=>
self
::
$testu
,
'pwd'
=>
self
::
$testp
,
'input_date_begin'
=>
'20161001'
,
'input_date_end'
=>
'20161108'
,
'node_id'
=>
'0200145'
,
'repair_date_begin'
=>
''
,
'repair_date_end'
=>
''
,
'repair_no'
=>
'201609235'
,
];
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$obj
->
SetValues
(
$data
);
$obj
->
SetSign
();
$values
=
$obj
->
GetValues
();
$url
=
self
::
$apiUrl
.
"api/chigo/queryRepairBill"
;
$result
=
curl_post
(
$url
,
$values
);
$result
=
json_decode
(
$result
[
'data'
],
true
);
$this
->
show
(
$result
);
}
public
function
pickupAllSerNodeForUser
()
public
function
pickupAllSerNodeForUser
()
{
{
$obj
=
$this
->
receiveObj
();
$obj
=
$this
->
receiveObj
();
...
...
application/libraries/Receive/ReceiveChigo.php
View file @
9ab22df7
...
@@ -94,5 +94,26 @@ class ReceiveChigo extends Receive
...
@@ -94,5 +94,26 @@ class ReceiveChigo extends Receive
];
];
$this
->
SetDefaultValues
(
$dfields
);
$this
->
SetDefaultValues
(
$dfields
);
}
}
public
function
CheckQueryRepairBillValues
()
{
$fileds
=
[];
$this
->
CheckValues
(
$fileds
);
$dfields
=
[
'input_date_begin'
,
//20161011
'input_date_end'
,
'node_id'
,
//0200145
'repair_date_begin'
,
//20161011
'repair_date_end'
,
'repair_no'
,
//
];
$this
->
SetDefaultValues
(
$dfields
);
$this
->
values
[
'input_date_begin'
]
=
$this
->
DateFormatValues
(
$this
->
values
[
'input_date_begin'
]);
$this
->
values
[
'input_date_end'
]
=
$this
->
DateFormatValues
(
$this
->
values
[
'input_date_end'
]);
$this
->
values
[
'repair_date_begin'
]
=
$this
->
DateFormatValues
(
$this
->
values
[
'repair_date_begin'
]);
$this
->
values
[
'repair_date_end'
]
=
$this
->
DateFormatValues
(
$this
->
values
[
'repair_date_end'
]);
}
}
}
\ No newline at end of file
application/libraries/Source/SourceChigo.php
View file @
9ab22df7
...
@@ -124,6 +124,27 @@ class SourceChigo extends Source
...
@@ -124,6 +124,27 @@ class SourceChigo extends Source
return
$data
;
return
$data
;
}
}
/**
* 家用维修业务-业务-维修单录入-浏览
* @param $condition
* @return array
*/
public
function
QueryRepairBill
(
$condition
)
{
$post
=
[
'input_date_begin'
=>
$condition
[
'input_date_begin'
],
//输单日期: 2016-10-01
'input_date_end'
=>
$condition
[
'input_date_end'
],
'node_id'
=>
$condition
[
'node_id'
],
//服务商, PickupAllSerNodeForUser->node_id
'repair_date_begin'
=>
$condition
[
'repair_date_begin'
],
//维修日期: 2016-10-01
'repair_date_end'
=>
$condition
[
'repair_date_end'
],
'repair_no'
=>
$condition
[
'repair_no'
],
//维修单号: 201609235
'machine_model'
=>
'<10'
,
];
$data
=
$this
->
HandelAction
(
'RepairBillAction'
,
'QueryRepairBill'
,
$post
);
return
$data
;
}
//服务商编号
//服务商编号
public
function
PickupAllSerNodeForUser
()
public
function
PickupAllSerNodeForUser
()
...
@@ -168,9 +189,9 @@ class SourceChigo extends Source
...
@@ -168,9 +189,9 @@ class SourceChigo extends Source
$url
=
"http://58.254.204.86:9001/cus/SerNodeAction.do"
;
$url
=
"http://58.254.204.86:9001/cus/SerNodeAction.do"
;
break
;
break
;
//
家用安装业务-录入
//
服务中心
case
'
InstallBill
Action'
:
case
'
SerCenter
Action'
:
$url
=
"http://58.254.204.86:9001/cus/
InstallBill
Action.do"
;
$url
=
"http://58.254.204.86:9001/cus/
SerCenter
Action.do"
;
break
;
break
;
//呼叫受理
//呼叫受理
...
@@ -178,9 +199,9 @@ class SourceChigo extends Source
...
@@ -178,9 +199,9 @@ class SourceChigo extends Source
$url
=
"http://58.254.204.86:9001/cus/CallAcceptAction.do"
;
$url
=
"http://58.254.204.86:9001/cus/CallAcceptAction.do"
;
break
;
break
;
//
服务中心
//
家用安装业务-浏览
case
'
SerCenter
Action'
:
case
'
InstallBill
Action'
:
$url
=
"http://58.254.204.86:9001/cus/
SerCenter
Action.do"
;
$url
=
"http://58.254.204.86:9001/cus/
InstallBill
Action.do"
;
break
;
break
;
//家用安装业务-结算
//家用安装业务-结算
...
@@ -188,6 +209,11 @@ class SourceChigo extends Source
...
@@ -188,6 +209,11 @@ class SourceChigo extends Source
$url
=
"http://58.254.204.86:9001/cus/BrowseCloseAccount.do"
;
$url
=
"http://58.254.204.86:9001/cus/BrowseCloseAccount.do"
;
break
;
break
;
//家用维修业务-浏览
case
'RepairBillAction'
:
$url
=
"http://58.254.204.86:9001/cus/RepairBillAction.do"
;
break
;
default
:
default
:
$url
=
''
;
$url
=
''
;
}
}
...
...
application/libraries/Source/SourceSuning.php
View file @
9ab22df7
...
@@ -87,8 +87,18 @@ class SourceSuning extends Source
...
@@ -87,8 +87,18 @@ class SourceSuning extends Source
$post
[
'choosedtabNow'
]
=
'0'
;
$post
[
'choosedtabNow'
]
=
'0'
;
$result
=
$this
->
ServiceOrderTab1
(
$post
);
$result
=
$this
->
ServiceOrderTab1
(
$post
);
break
;
break
;
case
2
:
return_msg
(
false
,
'可重派未开发'
);
break
;
case
3
:
return_msg
(
false
,
'待核销未开发'
);
break
;
default
:
default
:
return_msg
(
'false'
,
'type参数错误'
);
return_msg
(
false
,
'type参数错误'
);
}
}
return
$result
;
return
$result
;
...
...
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