src/main/resources/mapper/production/ProductionOperationTaskMapper.xml
@@ -72,6 +72,13 @@ <if test="c != null and c.workOrderNo != null and c.workOrderNo != ''"> and pot.work_order_no like concat('%', #{c.workOrderNo}, '%') </if> <!-- 班组长可以看到所有关联订单的数据,成员只能看到自己的报工 --> <if test="c != null and currentUserId != null"> and ( po.team_leader_user_id = #{currentUserId} or pot.team_user_id = #{currentUserId} ) </if> </where> order by pot.id desc </select>