Browse Source

查询产量报告里增加开工时间

master
赵宏斌 5 months ago
parent
commit
39e8297d16
  1. 3
      src/main/java/com/heai/modules/production/entity/SfdcCancel.java
  2. 3
      src/main/resources/mapper/production/DailyPlanMapper.xml

3
src/main/java/com/heai/modules/production/entity/SfdcCancel.java

@ -48,6 +48,9 @@ public class SfdcCancel {
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date statisticDate;
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date lastStartTime;
private String reverseflag;
private Double reportWeight;
private Double approveWeight;

3
src/main/resources/mapper/production/DailyPlanMapper.xml

@ -1374,6 +1374,7 @@
,
a.c_sys_scrap_rate as csysScrapRate,
b.shiftType as shiftType,
SOP.LastStartTime as lastStartTime,
case
when a.ReportQty!=0 then Round((a.ReportQty - a.ApproveQty) * 100 / a.ReportQty, 2)
else 0 end as scrapRate
@ -1386,6 +1387,8 @@
f.DefectCode = 'PQ001'
left join SFDC_DefectHist g on a.site = g.site and a.OrderNo = g.OrderNo and a.seqNo = g.SeqNo and
g.DefectCode = 'PQ003'
left join SoRouting h on b.site=h.site and b.orderNo=h.OrderNo and b.itemNo=h.itemNo
LEFT JOIN SORoutingOutput SOP ON a.site=SOP.site and a.OrderNo=SOP.OrderNo and SOP.itemNo=dbo.Get_SORouting_PreviousOperationItemNo(a.site,a.OrderNo,h.itemNo)
<where>
and a.AssJobSeqNo is not null
<if test="orderNo != null and orderNo != ''">

Loading…
Cancel
Save