Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
stock_new
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
stock_new
Commits
6a0a44bb
Commit
6a0a44bb
authored
Jun 20, 2024
by
wuxiaoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善导出功能
parent
3a90fd64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
application/stock/admin/Operate.php
application/stock/admin/Operate.php
+8
-8
No files found.
application/stock/admin/Operate.php
View file @
6a0a44bb
...
@@ -203,7 +203,7 @@ class Operate extends Admin{
...
@@ -203,7 +203,7 @@ class Operate extends Admin{
$model
=
new
SubMoneyRecord
();
$model
=
new
SubMoneyRecord
();
$xlsData
=
$model
->
get_record
(
$map
,
$order
,
$listRows
);
$xlsData
=
$model
->
get_record
(
$map
,
$order
,
$listRows
);
foreach
(
$xlsData
as
$key
=>
$value
){
foreach
(
$xlsData
as
$key
=>
$value
){
$xlsData
->
items
->
items
[
$key
][
'create_time'
]
=
date
(
'Y-m-d h:i'
,
$value
[
'create_time'
]);
$xlsData
->
items
[
$key
][
'create_time'
]
=
date
(
'Y-m-d h:i'
,
$value
[
'create_time'
]);
};
};
$title
=
"资金流水"
;
$title
=
"资金流水"
;
$arrHeader
=
array
(
'子账户ID'
,
'子账户'
,
'影响金额'
,
'账户余额'
,
'资金类型'
,
'详情'
,
'变动日期'
);
$arrHeader
=
array
(
'子账户ID'
,
'子账户'
,
'影响金额'
,
'账户余额'
,
'资金类型'
,
'详情'
,
'变动日期'
);
...
@@ -334,7 +334,7 @@ class Operate extends Admin{
...
@@ -334,7 +334,7 @@ class Operate extends Admin{
->
where
(
$map
)
->
where
(
$map
)
->
order
(
$order
)
->
paginate
(
$listRows
);
->
order
(
$order
)
->
paginate
(
$listRows
);
foreach
(
$xlsData
as
$key
=>
$value
){
foreach
(
$xlsData
as
$key
=>
$value
){
$xlsData
->
items
->
items
[
$key
][
'deal_date'
]
=
date
(
'Y-m-d'
,
$value
[
'deal_date'
]);
$xlsData
->
items
[
$key
][
'deal_date'
]
=
date
(
'Y-m-d'
,
$value
[
'deal_date'
]);
};
};
$title
=
"历史成交"
;
$title
=
"历史成交"
;
$arrHeader
=
array
(
'子账户ID'
,
'手机号'
,
'子账户'
,
'交易账户名'
,
'证券代码'
,
'证券名称'
,
'成交日期'
,
'成交时间'
,
'委托编号'
,
'委托价格'
,
'委托数量'
,
'成交编号'
,
'成交价格'
,
'成交数量'
,
'成交金额'
,
'买卖标志'
,
'状态说明'
);
$arrHeader
=
array
(
'子账户ID'
,
'手机号'
,
'子账户'
,
'交易账户名'
,
'证券代码'
,
'证券名称'
,
'成交日期'
,
'成交时间'
,
'委托编号'
,
'委托价格'
,
'委托数量'
,
'成交编号'
,
'成交价格'
,
'成交数量'
,
'成交金额'
,
'买卖标志'
,
'状态说明'
);
...
@@ -433,7 +433,7 @@ class Operate extends Admin{
...
@@ -433,7 +433,7 @@ class Operate extends Admin{
->
order
(
$order
)
->
order
(
$order
)
->
paginate
(
$listRows
);
->
paginate
(
$listRows
);
foreach
(
$xlsData
as
$key
=>
$value
){
foreach
(
$xlsData
as
$key
=>
$value
){
$xlsData
->
items
->
items
[
$key
][
'trust_date'
]
=
date
(
'Y-m-d'
,
$value
[
'trust_date'
]);
$xlsData
->
items
[
$key
][
'trust_date'
]
=
date
(
'Y-m-d'
,
$value
[
'trust_date'
]);
};
};
$title
=
"历史委托"
;
$title
=
"历史委托"
;
$arrHeader
=
array
(
'子账户ID'
,
'手机号'
,
'子账户'
,
'交易账户名'
,
'证券代码'
,
'证券名称'
,
'委托日期'
,
'委托时间'
,
'委托编号'
,
'委托价格'
,
'委托数量
$arrHeader
=
array
(
'子账户ID'
,
'手机号'
,
'子账户'
,
'交易账户名'
,
'证券代码'
,
'证券名称'
,
'委托日期'
,
'委托时间'
,
'委托编号'
,
'委托价格'
,
'委托数量
...
@@ -529,7 +529,7 @@ ume','amount','cancel_order_count','status');
...
@@ -529,7 +529,7 @@ ume','amount','cancel_order_count','status');
->
where
(
$map
)
->
where
(
$map
)
->
order
(
$order
)
->
paginate
(
$listRows
);
->
order
(
$order
)
->
paginate
(
$listRows
);
foreach
(
$xlsData
as
$key
=>
$value
){
foreach
(
$xlsData
as
$key
=>
$value
){
$xlsData
->
items
->
items
[
$key
][
'trust_date'
]
=
date
(
'Y-m-d'
,
$value
[
'trust_date'
]);
$xlsData
->
items
[
$key
][
'trust_date'
]
=
date
(
'Y-m-d'
,
$value
[
'trust_date'
]);
};
};
//$type_arr=['5'=>'免息配资','1'=>'按天配资','2'=>'按周配资','3'=>'按月配资','4'=>'免费体验','6'=>'模拟操盘'];
//$type_arr=['5'=>'免息配资','1'=>'按天配资','2'=>'按周配资','3'=>'按月配资','4'=>'免费体验','6'=>'模拟操盘'];
...
@@ -637,7 +637,7 @@ ume','amount','cancel_order_count','status');
...
@@ -637,7 +637,7 @@ ume','amount','cancel_order_count','status');
->
order
(
$order
)
->
order
(
$order
)
->
paginate
(
$listRows
);
->
paginate
(
$listRows
);
foreach
(
$xlsData
as
$key
=>
$value
){
foreach
(
$xlsData
as
$key
=>
$value
){
$xlsData
->
items
->
items
[
$key
][
'trust_date'
]
=
date
(
'Y-m-d'
,
$value
[
'trust_date'
]);
$xlsData
->
items
[
$key
][
'trust_date'
]
=
date
(
'Y-m-d'
,
$value
[
'trust_date'
]);
};
};
$title
=
"当日暂时未成交委托"
;
$title
=
"当日暂时未成交委托"
;
$arrHeader
=
array
(
'子账户ID'
,
'手机号'
,
'子账户'
,
'交易账户名'
,
'证券代码'
,
'证券名称'
,
'委托日期'
,
'委托时间'
,
'委托编号'
,
'委托价格'
,
'委托数量'
,
'成交数量'
,
'成交金额'
,
'撤单数量'
,
'状态说明'
);
$arrHeader
=
array
(
'子账户ID'
,
'手机号'
,
'子账户'
,
'交易账户名'
,
'证券代码'
,
'证券名称'
,
'委托日期'
,
'委托时间'
,
'委托编号'
,
'委托价格'
,
'委托数量'
,
'成交数量'
,
'成交金额'
,
'撤单数量'
,
'状态说明'
);
...
@@ -810,7 +810,7 @@ ume','amount','cancel_order_count','status');
...
@@ -810,7 +810,7 @@ ume','amount','cancel_order_count','status');
->
where
(
$map
)
->
where
(
$map
)
->
order
(
$order
)
->
paginate
(
$listRows
);
->
order
(
$order
)
->
paginate
(
$listRows
);
foreach
(
$xlsData
as
$key
=>
$value
){
foreach
(
$xlsData
as
$key
=>
$value
){
$xlsData
->
items
->
items
[
$key
][
'deal_date'
]
=
date
(
'Y-m-d'
,
$value
[
'deal_date'
]);
$xlsData
->
items
[
$key
][
'deal_date'
]
=
date
(
'Y-m-d'
,
$value
[
'deal_date'
]);
};
};
$title
=
"当日成交"
;
$title
=
"当日成交"
;
$arrHeader
=
array
(
'子账户ID'
,
'手机号'
,
'子账户'
,
'交易账户名'
,
'证券代码'
,
'证券名称'
,
'成交日期'
,
'成交时间'
,
'委托编号'
,
'委托价格'
,
'委托数量'
,
'成交编号'
,
'成交价格'
,
'成交数量'
,
'成交金额'
,
'买卖标志'
,
'状态说明'
);
$arrHeader
=
array
(
'子账户ID'
,
'手机号'
,
'子账户'
,
'交易账户名'
,
'证券代码'
,
'证券名称'
,
'成交日期'
,
'成交时间'
,
'委托编号'
,
'委托价格'
,
'委托数量'
,
'成交编号'
,
'成交价格'
,
'成交数量'
,
'成交金额'
,
'买卖标志'
,
'状态说明'
);
...
@@ -1032,7 +1032,7 @@ ume','amount','cancel_order_count','status');
...
@@ -1032,7 +1032,7 @@ ume','amount','cancel_order_count','status');
->
where
(
't.status'
,
'='
,
'已撤'
)
->
where
(
't.status'
,
'='
,
'已撤'
)
->
order
(
$order
)
->
paginate
(
$listRows
);
->
order
(
$order
)
->
paginate
(
$listRows
);
foreach
(
$xlsData
as
$key
=>
$value
){
foreach
(
$xlsData
as
$key
=>
$value
){
$xlsData
->
items
->
items
[
$key
][
'trust_date'
]
=
date
(
'Y-m-d'
,
$value
[
'trust_date'
]);
$xlsData
->
items
[
$key
][
'trust_date'
]
=
date
(
'Y-m-d'
,
$value
[
'trust_date'
]);
};
};
$title
=
"撤单查询"
;
$title
=
"撤单查询"
;
$arrHeader
=
array
(
'子账户ID'
,
'手机号'
,
'子账户'
,
'交易账户名'
,
'证券代码'
,
'证券名称'
,
'委托日期'
,
'委托时间'
,
'委托编号'
,
'委托价格'
,
'委托数量'
,
'成交数量'
,
'成交金额'
,
'撤单数量'
,
'状态说明'
);
$arrHeader
=
array
(
'子账户ID'
,
'手机号'
,
'子账户'
,
'交易账户名'
,
'证券代码'
,
'证券名称'
,
'委托日期'
,
'委托时间'
,
'委托编号'
,
'委托价格'
,
'委托数量'
,
'成交数量'
,
'成交金额'
,
'撤单数量'
,
'状态说明'
);
...
@@ -1135,7 +1135,7 @@ ume','amount','cancel_order_count','status');
...
@@ -1135,7 +1135,7 @@ ume','amount','cancel_order_count','status');
->
order
(
$order
)
->
order
(
$order
)
->
paginate
(
$listRows
);
->
paginate
(
$listRows
);
foreach
(
$xlsData
as
$key
=>
$value
){
foreach
(
$xlsData
as
$key
=>
$value
){
$xlsData
->
items
->
items
[
$key
][
'deal_date'
]
=
date
(
'Y-m-d'
,
$value
[
'deal_date'
]);
$xlsData
->
items
[
$key
][
'deal_date'
]
=
date
(
'Y-m-d'
,
$value
[
'deal_date'
]);
};
};
$title
=
"交割单"
;
$title
=
"交割单"
;
$arrHeader
=
array
(
'子账户ID'
,
'手机号'
,
'子账户'
,
'交易账户名'
,
'证券代码'
,
'证券名称'
,
'成交日期'
,
'业务名称'
,
'成交价格'
,
'成交数量'
,
'剩余数量'
,
'成交金额'
,
'清算金额'
,
'剩余金额'
,
'印花税'
,
'过户费'
,
'净佣金'
,
'委托编号'
,
'成交编号'
);
$arrHeader
=
array
(
'子账户ID'
,
'手机号'
,
'子账户'
,
'交易账户名'
,
'证券代码'
,
'证券名称'
,
'成交日期'
,
'业务名称'
,
'成交价格'
,
'成交数量'
,
'剩余数量'
,
'成交金额'
,
'清算金额'
,
'剩余金额'
,
'印花税'
,
'过户费'
,
'净佣金'
,
'委托编号'
,
'成交编号'
);
...
...
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