Browse Source

fix(production): 修复操作组计划表头查询中的班次信息关联问题

- 在ShiftInfo表关联条件中添加站点过滤条件
- 确保班次信息查询时考虑站点隔离
- 防止跨站点班次信息错误关联的问题
master
常熟吴彦祖 1 month ago
parent
commit
63d521ea57
  1. 2
      src/main/resources/mapper/production/OperatorGroupMapper.xml

2
src/main/resources/mapper/production/OperatorGroupMapper.xml

@ -24,7 +24,7 @@
<select id="getOperatorGroupPlanHeader" resultType="com.xujie.sys.modules.production.data.OperatorGroupPlanHeaderData">
select a.Site,a.OperatorGroupId,a.WorkDate,a.Shiftno,a.allTime,a.WagesTime,a.id,b.OperatorName ,c.shiftdesc
from OperatorGroupPlanHeader a left join Operator b on a.OperatorGroupId=b.OperatorID and a.site=b.site
left join ShiftInfo C on a.Shiftno=c.shiftno
left join ShiftInfo C on a.Shiftno=c.shiftno and a.site=c.site
<where>
<if test = "site != null and site != ''">
AND a.Site LIKE #{site}

Loading…
Cancel
Save