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
6b337374
Commit
6b337374
authored
Sep 27, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 维修单搜索接口修改
2. 安装单搜索接口修改
parent
646142fa
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
143 additions
and
112 deletions
+143
-112
Galanz.php
application/controllers/api/Galanz.php
+3
-3
ReceiveGalanz.php
application/libraries/Receive/ReceiveGalanz.php
+16
-45
SourceGalanz.php
application/libraries/Source/SourceGalanz.php
+124
-64
No files found.
application/controllers/api/Galanz.php
View file @
6b337374
...
@@ -113,7 +113,7 @@ class Galanz extends BaseController
...
@@ -113,7 +113,7 @@ class Galanz extends BaseController
$this
->
saveLog
(
''
,
'searchWorkOrder'
,
$param
);
$this
->
saveLog
(
''
,
'searchWorkOrder'
,
$param
);
$sourceGalanzObj
=
$this
->
sourceGalanzObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$sourceGalanzObj
=
$this
->
sourceGalanzObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$result
=
$sourceGalanzObj
->
SearchWorkOrder
(
$values
[
'name'
],
$values
[
'custmobile'
],
$values
[
'
producenumber'
],
$values
[
'approvalstatus'
],
$values
[
'ischangepart'
],
$values
[
'returnfactory'
],
$values
[
'isrelief
'
],
$values
[
'starttime'
],
$values
[
'endtime'
]);
$result
=
$sourceGalanzObj
->
SearchWorkOrder
(
$values
[
'name'
],
$values
[
'custmobile'
],
$values
[
'
approvalstatus'
],
$values
[
'ischangepart'
],
$values
[
'returnfactory'
],
$values
[
'isrelief'
],
$values
[
'producenumber
'
],
$values
[
'starttime'
],
$values
[
'endtime'
]);
$result
=
$sourceGalanzObj
->
HandelSearchOrderFields
(
$result
,
'work'
);
$result
=
$sourceGalanzObj
->
HandelSearchOrderFields
(
$result
,
'work'
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
...
@@ -128,10 +128,10 @@ class Galanz extends BaseController
...
@@ -128,10 +128,10 @@ class Galanz extends BaseController
$obj
->
SetValues
(
$param
);
$obj
->
SetValues
(
$param
);
$obj
->
CheckSearchUserProfieOrderValues
();
$obj
->
CheckSearchUserProfieOrderValues
();
$values
=
$obj
->
GetValues
();
$values
=
$obj
->
GetValues
();
$this
->
saveLog
(
$values
[
'mobile'
]
,
'searchUserProfieOrder'
,
$param
);
$this
->
saveLog
(
''
,
'searchUserProfieOrder'
,
$param
);
$sourceGalanzObj
=
$this
->
sourceGalanzObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$sourceGalanzObj
=
$this
->
sourceGalanzObj
(
$values
[
'account'
],
$values
[
'pwd'
]);
$result
=
$sourceGalanzObj
->
SearchUserProfieOrder
(
$values
[
'
mobil
e'
]);
$result
=
$sourceGalanzObj
->
SearchUserProfieOrder
(
$values
[
'
custmobile'
],
$values
[
'status'
],
$values
[
'investstatus'
],
$values
[
'havadetail'
],
$values
[
'isuseful'
],
$values
[
'jiesuanstatus'
],
$values
[
'producenumber'
],
$values
[
'installstarttime'
],
$values
[
'installendtime'
],
$values
[
'inputstarttime'
],
$values
[
'inputendtim
e'
]);
$result
=
$sourceGalanzObj
->
HandelSearchOrderFields
(
$result
,
'userprofile'
);
$result
=
$sourceGalanzObj
->
HandelSearchOrderFields
(
$result
,
'userprofile'
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
$obj
->
ReturnMessage
(
true
,
''
,
$result
);
...
...
application/libraries/Receive/ReceiveGalanz.php
View file @
6b337374
...
@@ -33,9 +33,6 @@ class ReceiveGalanz extends Receive
...
@@ -33,9 +33,6 @@ class ReceiveGalanz extends Receive
public
function
CheckSearchOrderValues
()
public
function
CheckSearchOrderValues
()
{
{
// $fileds = ['custmobile'];
// $this->CheckValues($fileds);
$dfields
=
[
$dfields
=
[
'name'
,
'name'
,
'custmobile'
,
'custmobile'
,
...
@@ -44,69 +41,43 @@ class ReceiveGalanz extends Receive
...
@@ -44,69 +41,43 @@ class ReceiveGalanz extends Receive
'callintype'
,
'callintype'
,
'starttime'
,
'starttime'
,
'endtime'
,
'endtime'
,
'isreminder'
'isreminder'
,
];
];
$this
->
SetDefaultValues
(
$dfields
);
$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
()
{
{
// $fileds = ['mobile'];
// $this->CheckValues($fileds);
$dfields
=
[
$dfields
=
[
'name'
,
'name'
,
'custmobile'
,
'custmobile'
,
'producenumber'
,
'approvalstatus'
,
'approvalstatus'
,
'ischangepart'
,
'ischangepart'
,
'returnfactory'
,
'returnfactory'
,
'isrelief'
,
'isrelief'
,
'producenumber'
,
'starttime'
,
'starttime'
,
'endtime'
'endtime'
];
];
$this
->
SetDefaultValues
(
$dfields
);
$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'
]));
}
if
(
$this
->
values
[
'ischangepart'
]
&&
in_array
(
$this
->
values
[
'ischangepart'
],
[
1
,
2
]))
{
$this
->
values
[
'ischangepart'
]
+=
1
;
}
else
{
$this
->
values
[
'ischangepart'
]
=
1
;
}
if
(
$this
->
values
[
'returnfactory'
]
&&
in_array
(
$this
->
values
[
'returnfactory'
],
[
1
,
2
]))
{
$this
->
values
[
'returnfactory'
]
+=
1
;
}
else
{
$this
->
values
[
'returnfactory'
]
=
1
;
}
if
(
$this
->
values
[
'isrelief'
]
&&
in_array
(
$this
->
values
[
'isrelief'
],
[
1
,
2
]))
{
$this
->
values
[
'isrelief'
]
+=
1
;
}
else
{
$this
->
values
[
'isrelief'
]
=
1
;
}
}
}
public
function
CheckSearchUserProfieOrderValues
()
public
function
CheckSearchUserProfieOrderValues
()
{
{
$fileds
=
[
'mobile'
];
$dfields
=
[
$this
->
CheckValues
(
$fileds
);
'custmobile'
,
'status'
,
'investstatus'
,
'havadetail'
,
'isuseful'
,
'jiesuanstatus'
,
'producenumber'
,
'installstarttime'
,
'installendtime'
,
'inputstarttime'
,
'inputendtime'
,
];
$this
->
SetDefaultValues
(
$dfields
);
}
}
/**
/**
...
...
application/libraries/Source/SourceGalanz.php
View file @
6b337374
This diff is collapsed.
Click to expand it.
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