Merge remote-tracking branch 'origin/test' into test
# Conflicts: # src/main/resources/mapper/course/CourseDao.xml
This commit is contained in:
@@ -52,13 +52,13 @@
|
||||
</if>
|
||||
|
||||
<if test="startTime!=null and startTime!='' and endTime!=null and endTime!=''">
|
||||
and date_format(u.create_time,'%Y-%m-%d') BETWEEN #{startTime} and #{endTime}
|
||||
and u.create_time BETWEEN #{startTime} and #{endTime}
|
||||
</if>
|
||||
<if test="startTime!=null and startTime!='' and (endTime==null or endTime=='')">
|
||||
and date_format(u.create_time,'%Y-%m-%d') >= #{startTime}
|
||||
and u.create_time >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime!=null and endTime!='' and (startTime==null or startTime=='')">
|
||||
and date_format(u.create_time,'%Y-%m-%d') <= #{endTime}
|
||||
and u.create_time <= #{endTime}
|
||||
</if>
|
||||
order by create_time desc
|
||||
</select>
|
||||
@@ -143,15 +143,7 @@
|
||||
<if test="sysUserId!=null">
|
||||
and sys_user_id=#{sysUserId}
|
||||
</if>
|
||||
<if test="type==1">
|
||||
and date_format(o.create_time,'%Y-%m-%d')=date_format(#{date},'%Y-%m-%d')
|
||||
</if>
|
||||
<if test="type==2">
|
||||
and date_format(o.create_time,'%Y-%m')=date_format(#{date},'%Y-%m')
|
||||
</if>
|
||||
<if test="type==3">
|
||||
and date_format(o.create_time,'%Y')=date_format(#{date},'%Y')
|
||||
</if>
|
||||
and o.create_time between #{start} and #{end}
|
||||
group by c.course_id
|
||||
order by coursenum desc
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user