|
@@ -19,18 +19,18 @@
|
|
|
<result column="report_time_type" property="reportTimeType" />
|
|
|
<result column="sub_project_id" property="subProjectId" />
|
|
|
<result column="task_id" property="taskId" />
|
|
|
+ <result column="is_overtime" property="isOvertime" />
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, creator_id, project_id, create_date, working_time, content, state, create_time, time_type, cost, start_time, end_time, report_time_type, sub_project_id, task_id
|
|
|
+ id, creator_id, project_id, create_date, working_time, content, state, create_time, time_type, cost, start_time, end_time, report_time_type, sub_project_id, task_id, is_overtime
|
|
|
</sql>
|
|
|
-
|
|
|
<!--根据日期获取全部报告信息-->
|
|
|
<select id="getAllReportByDate" resultType="java.util.Map">
|
|
|
SELECT c.name, b.project_name AS project, a.working_time AS duration, a.content, a.create_time AS time,
|
|
|
a.state, a.time_type as timeType, a.cost, a.report_time_type as reportTimeType, a.start_time as startTime,
|
|
|
- a.end_time as endTime, d.name as subProjectName,a.task_id as taskId, task.name as taskName
|
|
|
+ a.end_time as endTime, d.name as subProjectName,a.task_id as taskId, task.name as taskName, a.is_overtime as isOvertime
|
|
|
FROM report AS a
|
|
|
JOIN project AS b ON a.project_id=b.id
|
|
|
LEFT JOIN user AS c ON a.creator_id=c.id
|
|
@@ -53,7 +53,7 @@
|
|
|
<select id="getReportByDate" resultType="java.util.Map">
|
|
|
SELECT a.id, b.project_name AS project, a.working_time AS time, a.content, a.state, a.time_type as timeType, a.cost, a.report_time_type as reportTimeType, a.start_time as startTime,
|
|
|
a.end_time as endTime, b.incharger_id as inchargerId,
|
|
|
- a.creator_id as creatorId, d.name as subProjectName,a.task_id as taskId, task.name as taskName
|
|
|
+ a.creator_id as creatorId, d.name as subProjectName,a.task_id as taskId, task.name as taskName, a.is_overtime as isOvertime
|
|
|
FROM report AS a
|
|
|
JOIN project AS b ON a.project_id=b.id
|
|
|
left join sub_project as d on d.id = a.sub_project_id
|
|
@@ -71,7 +71,7 @@
|
|
|
SELECT a.id, b.project_name AS project, a.working_time AS time, a.content, a.state, a.time_type as timeType,
|
|
|
a.cost, a.report_time_type as reportTimeType, a.start_time as startTime,
|
|
|
a.end_time as endTime, b.incharger_id as inchargerId,
|
|
|
- a.creator_id as creatorId, d.name as subProjectName,a.task_id as taskId, task.name as taskName
|
|
|
+ a.creator_id as creatorId, d.name as subProjectName,a.task_id as taskId, task.name as taskName, a.is_overtime as isOvertime
|
|
|
FROM report AS a
|
|
|
JOIN project AS b ON a.project_id=b.id
|
|
|
left join sub_project as d on d.id = a.sub_project_id
|
|
@@ -90,7 +90,7 @@
|
|
|
<!-- 批量获取员工某天的报告 -->
|
|
|
<select id="getUserReportByDate" resultType="java.util.Map">
|
|
|
SELECT a.id, b.project_name AS project, a.working_time AS time, a.content, a.state, a.time_type as timeType, a.creator_id as creatorId, a.cost, a.report_time_type as reportTimeType, a.start_time as startTime,
|
|
|
- a.end_time as endTime, d.name as subProjectName,a.task_id as taskId, task.name as taskName
|
|
|
+ a.end_time as endTime, d.name as subProjectName,a.task_id as taskId, task.name as taskName, a.is_overtime as isOvertime
|
|
|
FROM report AS a
|
|
|
JOIN project AS b ON a.project_id=b.id
|
|
|
left join sub_project as d on d.id = a.sub_project_id
|