|
@@ -115,7 +115,7 @@
|
|
|
|
|
|
<!-- 批量获取员工某天的报告 -->
|
|
<!-- 批量获取员工某天的报告 -->
|
|
<select id="getUserReportByDate" resultMap="FullMap">
|
|
<select id="getUserReportByDate" resultMap="FullMap">
|
|
- select a.*,b.name as productName,prod_procedure.name as procedureName,checker.name as checkerName,u.name as creatorName,
|
|
|
|
|
|
+ select a.*,b.name as productName,prod_procedure.name as procedureName,prod_procedure.seq,checker.name as checkerName,u.name as creatorName,
|
|
plan.task_type_name,plan.task_name,plan.task_change_notice_num,plan.product_scheduling_num,plan.plan_type,plan.start_date,plan.end_date
|
|
plan.task_type_name,plan.task_name,plan.task_change_notice_num,plan.product_scheduling_num,plan.plan_type,plan.start_date,plan.end_date
|
|
FROM report AS a
|
|
FROM report AS a
|
|
left JOIN product AS b ON a.product_id=b.id
|
|
left JOIN product AS b ON a.product_id=b.id
|
|
@@ -391,7 +391,7 @@
|
|
from plan b
|
|
from plan b
|
|
left join plan_procedure_total a on a.plan_id=b.id
|
|
left join plan_procedure_total a on a.plan_id=b.id
|
|
left join user u on u.id=b.station_id
|
|
left join user u on u.id=b.station_id
|
|
- where b.company_id=#{companyId}
|
|
|
|
|
|
+ where b.company_id=#{companyId} and b.plan_type=0
|
|
<if test="userId!=null and userId!=''">
|
|
<if test="userId!=null and userId!=''">
|
|
and b.foreman_id=#{userId}
|
|
and b.foreman_id=#{userId}
|
|
</if>
|
|
</if>
|
|
@@ -540,7 +540,8 @@
|
|
LEFT JOIN department dd ON d.superior_id=dd.department_id
|
|
LEFT JOIN department dd ON d.superior_id=dd.department_id
|
|
<where>
|
|
<where>
|
|
p.status!=2 and
|
|
p.status!=2 and
|
|
- p.company_id=#{companyId}
|
|
|
|
|
|
+ p.company_id=#{companyId} and
|
|
|
|
+ p.plan_type=0
|
|
<if test="startDate!=null and startDate!='' and endDate!=null and endDate!=''">
|
|
<if test="startDate!=null and startDate!='' and endDate!=null and endDate!=''">
|
|
and p.start_date between #{startDate} and #{endDate}
|
|
and p.start_date between #{startDate} and #{endDate}
|
|
</if>
|
|
</if>
|