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
d643ab73
Commit
d643ab73
authored
Aug 22, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7d199dc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
StoreFeeService.php
application/api_broker/service/StoreFeeService.php
+8
-2
FApplyForFee.php
application/model/FApplyForFee.php
+2
-1
No files found.
application/api_broker/service/StoreFeeService.php
View file @
d643ab73
...
@@ -11,6 +11,7 @@ use app\model\FSettingLog;
...
@@ -11,6 +11,7 @@ use app\model\FSettingLog;
use
app\model\FStoreCost
;
use
app\model\FStoreCost
;
use
app\model\FStoreCostExt
;
use
app\model\FStoreCostExt
;
use
app\model\FStoreData
;
use
app\model\FStoreData
;
use
Think\Log
;
/**
/**
* Created by PhpStorm.
* Created by PhpStorm.
...
@@ -745,18 +746,23 @@ class StoreFeeService
...
@@ -745,18 +746,23 @@ class StoreFeeService
$storeInfo
=
$storeModel
->
getStoreById
(
$store_id
);
$storeInfo
=
$storeModel
->
getStoreById
(
$store_id
);
if
(
!
$storeInfo
||
!
$storeInfo
[
"agents_id"
]
||
!
$storeInfo
[
"site_id"
])
{
if
(
!
$storeInfo
||
!
$storeInfo
[
"agents_id"
]
||
!
$storeInfo
[
"site_id"
])
{
return
[
"code"
=>
101
,
"msg"
=>
"门店信息错误"
];
return
[
"code"
=>
101
,
"msg"
=>
"门店信息错误
,第"
.
$row
.
"行
"
];
}
}
$agent_id
=
$storeInfo
[
"agents_id"
];
$agent_id
=
$storeInfo
[
"agents_id"
];
$site_id
=
$storeInfo
[
"site_id"
];
$site_id
=
$storeInfo
[
"site_id"
];
$office_id
=
$storeInfo
[
"office_id"
];
$office_id
=
$storeInfo
[
"office_id"
];
if
(
!
$office_id
)
{
return
[
"code"
=>
101
,
"msg"
=>
"没有绑定办公楼,第"
.
$row
.
"行"
];
}
array_push
(
$data
,
$this
->
applyForFeeBin
(
0
,
$type
,
$fee_item
,
$total_fee
,
$agent_id
,
$store_id
,
$purpose
,
$site_id
,
""
,
array_push
(
$data
,
$this
->
applyForFeeBin
(
0
,
$type
,
$fee_item
,
$total_fee
,
$agent_id
,
$store_id
,
$purpose
,
$site_id
,
""
,
""
,
""
,
$date
,
$office_id
,
0
,
1
));
""
,
""
,
$date
,
$office_id
,
0
,
1
));
}
}
if
(
$data
)
{
if
(
$data
)
{
$applyForModel
=
new
FApplyForFee
();
$applyForModel
=
new
FApplyForFee
();
$is_ok
=
$applyForModel
->
addData
(
$data
);
$is_ok
=
$applyForModel
->
addData
(
$data
);
return
[
"code"
=>
200
,
"msg"
=>
"
$is_ok
"
];
if
(
$is_ok
>
0
){
return
[
"code"
=>
200
,
"msg"
=>
"
$is_ok
"
];
}
}
}
return
[
"code"
=>
101
,
"msg"
=>
"未知异常"
];
return
[
"code"
=>
101
,
"msg"
=>
"未知异常"
];
...
...
application/model/FApplyForFee.php
View file @
d643ab73
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
namespace
app\model
;
namespace
app\model
;
use
think\Db
;
use
think\Db
;
use
Think\Log
;
use
think\Model
;
use
think\Model
;
class
FApplyForFee
extends
BaseModel
class
FApplyForFee
extends
BaseModel
...
@@ -35,7 +36,7 @@ class FApplyForFee extends BaseModel
...
@@ -35,7 +36,7 @@ class FApplyForFee extends BaseModel
{
{
Db
::
startTrans
();
Db
::
startTrans
();
try
{
try
{
$this
->
db_
->
insertAll
(
$params
);
$this
->
insertAll
(
$params
);
Db
::
commit
();
Db
::
commit
();
return
1
;
return
1
;
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
...
...
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