|
@@ -191,7 +191,7 @@
|
|
|
left join prod_procedure c on a.prod_procedure_id=c.id
|
|
|
where b.company_id=#{companyId} and b.status!=2
|
|
|
<if test="userId!=null and userId!=''">
|
|
|
- and d.user_id=#{userId}
|
|
|
+ and b.foreman_id=#{userId}
|
|
|
</if>
|
|
|
<if test="deptId!=null and deptId!=''">
|
|
|
and b.station_id=#{deptId}
|
|
@@ -217,7 +217,7 @@
|
|
|
left join prod_procedure c on a.prod_procedure_id=c.id
|
|
|
where b.company_id=#{companyId} and b.status!=2
|
|
|
<if test="userId!=null and userId!=''">
|
|
|
- and d.user_id=#{userId}
|
|
|
+ and b.foreman_id=#{userId}
|
|
|
</if>
|
|
|
<if test="deptId!=null and deptId!=''">
|
|
|
and b.station_id=#{deptId}
|