|
|
|
@ -1,14 +1,18 @@
|
|
|
|
|
queryByCondition
|
|
|
|
|
===
|
|
|
|
|
================
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行分页查询
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
|
@pageTag(){
|
|
|
|
|
t.*
|
|
|
|
|
t.*,
|
|
|
|
|
t2.student_sn studentSn,
|
|
|
|
|
t2.student_name studentName
|
|
|
|
|
@}
|
|
|
|
|
from student_hands_on_task_ppt t
|
|
|
|
|
where 1=1
|
|
|
|
|
@//数据权限,该sql语句功能点,如果不考虑数据权限,可以删除此行
|
|
|
|
|
left join student t2 on t.student_id = t2.student_id
|
|
|
|
|
where 1=1
|
|
|
|
|
@//数据权限,该sql语句功能点,如果不考虑数据权限,可以删除此行
|
|
|
|
|
and #function("studentHandsOnTaskPpt.query")#
|
|
|
|
|
@if(!isEmpty(studentHandsOnTaskPptId)){
|
|
|
|
|
and t.student_hands_on_task_ppt_id =#studentHandsOnTaskPptId#
|
|
|
|
@ -67,18 +71,28 @@ queryByCondition
|
|
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentSn)){
|
|
|
|
|
and t2.student_sn =#studentSn#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentName)){
|
|
|
|
|
and t2.student_name =#studentName#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queryByConditionQuery
|
|
|
|
|
===
|
|
|
|
|
=====================
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行分页查询(无权限)
|
|
|
|
|
|
|
|
|
|
select
|
|
|
|
|
@pageTag(){
|
|
|
|
|
t.*
|
|
|
|
|
t.*,
|
|
|
|
|
t2.student_sn studentSn,
|
|
|
|
|
t2.student_name studentName
|
|
|
|
|
@}
|
|
|
|
|
from student_hands_on_task_ppt t
|
|
|
|
|
where 1=1
|
|
|
|
|
left join student t2 on t.student_id = t2.student_id
|
|
|
|
|
where 1=1
|
|
|
|
|
@if(!isEmpty(studentHandsOnTaskPptId)){
|
|
|
|
|
and t.student_hands_on_task_ppt_id =#studentHandsOnTaskPptId#
|
|
|
|
|
@}
|
|
|
|
@ -136,27 +150,27 @@ queryByConditionQuery
|
|
|
|
|
@if(!isEmpty(studentIdPlural)){
|
|
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(!isEmpty(studentSn)){
|
|
|
|
|
and t2.student_sn =#studentSn#
|
|
|
|
|
@}
|
|
|
|
|
@if(!isEmpty(studentName)){
|
|
|
|
|
and t2.student_name =#studentName#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
deleteStudentHandsOnTaskPptByIds
|
|
|
|
|
===
|
|
|
|
|
================================
|
|
|
|
|
|
|
|
|
|
* 批量删除
|
|
|
|
|
|
|
|
|
|
delete from student_hands_on_task_ppt where find_in_set(student_hands_on_task_ppt_id,#ids#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getByIds
|
|
|
|
|
===
|
|
|
|
|
========
|
|
|
|
|
|
|
|
|
|
select * from student_hands_on_task_ppt where find_in_set(student_hands_on_task_ppt_id,#ids#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateGivenByIds
|
|
|
|
|
===
|
|
|
|
|
================
|
|
|
|
|
|
|
|
|
|
* 批量更新指定字段,无论此字段是否有值
|
|
|
|
|
|
|
|
|
@ -235,16 +249,14 @@ updateGivenByIds
|
|
|
|
|
student_hands_on_task_ppt_id = student_hands_on_task_ppt_id
|
|
|
|
|
where find_in_set(student_hands_on_task_ppt_id,#studentHandsOnTaskPptIdPlural#)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getStudentHandsOnTaskPptValues
|
|
|
|
|
===
|
|
|
|
|
==============================
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
|
|
|
|
select t.*
|
|
|
|
|
from student_hands_on_task_ppt t
|
|
|
|
|
where 1=1
|
|
|
|
|
where 1=1
|
|
|
|
|
@if(!isEmpty(studentHandsOnTaskPptId)){
|
|
|
|
|
and t.student_hands_on_task_ppt_id =#studentHandsOnTaskPptId#
|
|
|
|
|
@}
|
|
|
|
@ -279,9 +291,8 @@ getStudentHandsOnTaskPptValues
|
|
|
|
|
and t.student_id =#studentId#
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getValuesByQuery
|
|
|
|
|
===
|
|
|
|
|
================
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询
|
|
|
|
|
|
|
|
|
@ -346,9 +357,8 @@ getValuesByQuery
|
|
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getValuesByQueryNotWithPermission
|
|
|
|
|
===
|
|
|
|
|
=================================
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询(不包含权限)
|
|
|
|
|
|
|
|
|
@ -413,11 +423,8 @@ getValuesByQueryNotWithPermission
|
|
|
|
|
and find_in_set(t.student_id,#studentIdPlural#)
|
|
|
|
|
@}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getExcelValues
|
|
|
|
|
===
|
|
|
|
|
==============
|
|
|
|
|
|
|
|
|
|
* 根据不为空的参数进行查询导入需要的参数
|
|
|
|
|
|
|
|
|
@ -504,7 +511,7 @@ getExcelValues
|
|
|
|
|
t.teacher_id ,
|
|
|
|
|
t.student_id
|
|
|
|
|
from student_hands_on_task_ppt t
|
|
|
|
|
where 1=1 and #function("studentHandsOnTaskPpt.query")#
|
|
|
|
|
where 1=1 and #function("studentHandsOnTaskPpt.query")#
|
|
|
|
|
@if(!isEmpty(studentHandsOnTaskPptId)){
|
|
|
|
|
and t.student_hands_on_task_ppt_id =#studentHandsOnTaskPptId#
|
|
|
|
|
@}
|
|
|
|
@ -564,4 +571,3 @@ getExcelValues
|
|
|
|
|
@}
|
|
|
|
|
)
|
|
|
|
|
)t
|
|
|
|
|
|
|
|
|
|