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
a0a36be5
Commit
a0a36be5
authored
Jun 20, 2024
by
wuxiaoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
5edc28b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
application/market/model/Position.php
application/market/model/Position.php
+2
-2
No files found.
application/market/model/Position.php
View file @
a0a36be5
...
@@ -363,7 +363,7 @@ class Position extends Model{
...
@@ -363,7 +363,7 @@ class Position extends Model{
$data
[
0
][
'gudong_code'
]
=
""
;
//股东代码 无法模拟暂时空
$data
[
0
][
'gudong_code'
]
=
""
;
//股东代码 无法模拟暂时空
$data
[
0
][
'type'
]
=
$stockinfo
[
"exchange_code"
];
//帐号类别
$data
[
0
][
'type'
]
=
$stockinfo
[
"exchange_code"
];
//帐号类别
$data
[
0
][
'jigou_type'
]
=
1
;
$data
[
0
][
'jigou_type'
]
=
1
;
$data
[
0
][
'jiyisuo'
]
=
$stockinfo
[
"exchange_code"
]
==
0
?
"深交所"
:
"上交所"
;
//交易所
$data
[
0
][
'jiyisuo'
]
=
toMarket
(
$stockinfo
[
"code"
])
==
"HK"
?
"港交所"
:
toMarket
(
$stockinfo
[
"code"
])
==
'SZ'
?
"深交所"
:
"上交所"
;
//交易所
$data
[
0
][
'info'
]
=
""
;
$data
[
0
][
'info'
]
=
""
;
$result
=
Db
::
name
(
'stock_position'
)
->
insert
(
$data
[
0
],
true
);
$result
=
Db
::
name
(
'stock_position'
)
->
insert
(
$data
[
0
],
true
);
}
elseif
(
$model
==
1
){
}
elseif
(
$model
==
1
){
...
@@ -401,7 +401,7 @@ class Position extends Model{
...
@@ -401,7 +401,7 @@ class Position extends Model{
$data
[
0
][
'gudong_code'
]
=
""
;
//股东代码 无法模拟暂时空
$data
[
0
][
'gudong_code'
]
=
""
;
//股东代码 无法模拟暂时空
$data
[
0
][
'type'
]
=
$stockinfo
[
"exchange_code"
];
//帐号类别
$data
[
0
][
'type'
]
=
$stockinfo
[
"exchange_code"
];
//帐号类别
$data
[
0
][
'jigou_type'
]
=
1
;
$data
[
0
][
'jigou_type'
]
=
1
;
$data
[
0
][
'jiyisuo'
]
=
$stockinfo
[
"exchange_code"
]
==
0
?
"深交所"
:
"上交所"
;
//交易所
$data
[
0
][
'jiyisuo'
]
=
toMarket
(
$stockinfo
[
"code"
])
==
"HK"
?
"港交所"
:
toMarket
(
$stockinfo
[
"code"
])
==
'SZ'
?
"深交所"
:
"上交所"
;
//交易所
$data
[
0
][
'info'
]
=
""
;
$data
[
0
][
'info'
]
=
""
;
}
}
$result
=
Db
::
name
(
'stock_position'
)
->
where
([
'id'
=>
$position_res
[
'id'
]])
->
update
(
$data
[
0
]);
$result
=
Db
::
name
(
'stock_position'
)
->
where
([
'id'
=>
$position_res
[
'id'
]])
->
update
(
$data
[
0
]);
...
...
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