Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projecttwo
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
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
wangtao
projecttwo
Commits
ee030bdf
Commit
ee030bdf
authored
Jul 04, 2025
by
wangzhengwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cs
parent
57be441a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
CertOrder.php
app/api/controller/cert/CertOrder.php
+1
-1
Cert.php
app/api/controller/mine/Cert.php
+2
-0
CourseUserWork.php
app/model/CourseUserWork.php
+4
-2
No files found.
app/api/controller/cert/CertOrder.php
View file @
ee030bdf
...
...
@@ -42,7 +42,7 @@ class CertOrder extends BaseController
}
$where
=
[
'is_del'
=>
0
,
'user_id'
=>
$data
[
'user_id'
],
'cert_id'
=>
$data
[
'cert_id'
]];
$count
=
OrderModel
::
where
(
$where
)
->
count
();
$count
=
OrderModel
::
where
(
$where
)
->
where
(
'status'
,
'in'
,[
1
,
3
])
->
count
();
if
(
$count
>
0
)
{
return
$this
->
returnMsg
(
'请勿重复提交'
);
}
...
...
app/api/controller/mine/Cert.php
View file @
ee030bdf
...
...
@@ -31,8 +31,10 @@ class Cert extends BaseController
$query
=
CertOrder
::
where
(
$where
)
// ->append(['otherFileList'])
->
with
([
'certfiledata'
=>
[
'certfile'
]])
->
where
(
'co.status'
,
'!='
,
0
)
->
alias
(
'co'
)
->
join
(
'cert c'
,
'c.id = co.cert_id'
)
->
order
(
'co.id'
,
'desc'
)
->
field
([
'co.*'
,
'c.title'
,
...
...
app/model/CourseUserWork.php
View file @
ee030bdf
...
...
@@ -106,14 +106,16 @@ class CourseUserWork extends Model
{
return
$this
->
hasOne
(
CourseWork
::
class
,
'id'
,
'work_id'
)
// ->append(['filelist'])
->
where
(
'is_del'
,
0
)
//
->where('is_del', 0)
->
field
(
'id,title,file_id_str,content'
);
}
//关联课程
public
function
course
()
{
return
$this
->
hasOne
(
Course
::
class
,
'id'
,
'course_id'
)
->
where
(
'is_del'
,
0
)
->
field
(
'id,title,cate_id'
);
return
$this
->
hasOne
(
Course
::
class
,
'id'
,
'course_id'
)
// ->where('is_del', 0)
->
field
(
'id,title,cate_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