首次提交

上级 ce4991d7
......@@ -11,8 +11,7 @@
</component>
<component name="ChangeListManager">
<list default="true" id="f606bdfa-94c3-4eb6-9db3-7fb30f22bd38" name="Default Changelist" comment="首次提交">
<change afterPath="$PROJECT_DIR$/sql/345200.jpg" afterDir="false" />
<change afterPath="$PROJECT_DIR$/sql/微信截图_20210312162312.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/sql/微信图片_20210312165040.jpg" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
</list>
......@@ -75,7 +74,7 @@
<workItem from="1614758864696" duration="12602000" />
<workItem from="1614909080390" duration="1335000" />
<workItem from="1615174077797" duration="24000" />
<workItem from="1615537187326" duration="343000" />
<workItem from="1615537187326" duration="1627000" />
</task>
<task id="LOCAL-00001" summary="首次提交">
<created>1614759833695</created>
......@@ -147,7 +146,14 @@
<option name="project" value="LOCAL" />
<updated>1614825310541</updated>
</task>
<option name="localTasksCounter" value="11" />
<task id="LOCAL-00011" summary="首次提交">
<created>1615537812898</created>
<option name="number" value="00011" />
<option name="presentableId" value="LOCAL-00011" />
<option name="project" value="LOCAL" />
<updated>1615537812898</updated>
</task>
<option name="localTasksCounter" value="12" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
......@@ -170,9 +176,9 @@
<option name="LAST_COMMIT_MESSAGE" value="首次提交" />
</component>
<component name="WindowStateProjectService">
<state x="552" y="252" key="Vcs.Push.Dialog.v2" timestamp="1614825312697">
<state x="552" y="252" key="Vcs.Push.Dialog.v2" timestamp="1615537832114">
<screen x="0" y="0" width="1920" height="1040" />
</state>
<state x="552" y="252" key="Vcs.Push.Dialog.v2/0.0.1920.1040@0.0.1920.1040" timestamp="1614825312697" />
<state x="552" y="252" key="Vcs.Push.Dialog.v2/0.0.1920.1040@0.0.1920.1040" timestamp="1615537832114" />
</component>
</project>
\ No newline at end of file
......@@ -13,11 +13,13 @@
# 腾讯云服务器限时优惠活动
[【腾讯云】云产品限时秒杀,爆款1核2G云服务器,首年99元,点击直达](https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=0dc53892c213f8acbb68182fbbf23a66&from=console)
![image](sql/345200.jpg)
![image](sql/微信截图_20210312162312.png)
[【腾讯云】云产品限时秒杀,爆款1核2G云服务器,首年99元,点击直达](https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=0dc53892c213f8acbb68182fbbf23a66&from=console)
## 特别说明
只要从以上链接购买腾讯云服务器用户,永久提供技术支持服务!
## 一、项目概述
......@@ -206,24 +208,8 @@ hp-jx
## 统计学生考勤信息
SELECT class_id,teacher_id,attendance_datetime,classroom,lesson,sum(attendancenum) as attendancenum ,sum(studentnum) as studentnum from
(
SELECT class_id,teacher_id,attendance_datetime,classroom,lesson,count(0) as studentnum,0 as attendancenum
from teach_attendance ta
join teach_student_attendance tsa on
ta.attendance_id = tsa.attendance_id
-- WHERE DATEDIFF(ta.attendance_datetime,NOW())=-1
GROUP BY ta.class_id,ta.lesson,ta.teacher_id
UNION
select class_id,teacher_id,attendance_datetime,classroom,lesson,0 as studentnum,count(attendance) as attendancenum from teach_attendance ta
join teach_student_attendance tsa on
ta.attendance_id = tsa.attendance_id
where tsa.attendance = '1'
-- and DATEDIFF(ta.attendance_datetime,NOW())=-1
GROUP BY ta.class_id,ta.lesson,ta.teacher_id
) a
GROUP BY a.class_id,a.teacher_id,a.attendance_datetime,a.classroom,a.lesson
## 提供全方位技术支持服务!请作者喝杯茶!
![image](sql/微信图片_20210312165040.jpg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册