diff --git a/op-modules/op-mes/src/main/java/com/op/mes/service/impl/IWCInterfaceServiceImpl.java b/op-modules/op-mes/src/main/java/com/op/mes/service/impl/IWCInterfaceServiceImpl.java index 91debeeb..3b20a3cd 100644 --- a/op-modules/op-mes/src/main/java/com/op/mes/service/impl/IWCInterfaceServiceImpl.java +++ b/op-modules/op-mes/src/main/java/com/op/mes/service/impl/IWCInterfaceServiceImpl.java @@ -655,8 +655,10 @@ public class IWCInterfaceServiceImpl implements IWCSInterfaceService { new LinkedBlockingQueue()); try { cxjList.forEach(cxj -> { - Runnable run = () -> changeTransferResultFunc(cxj); - executorService.execute(run); + if(cxj.getEquipmentCode().equals("C4")){ + Runnable run = () -> changeTransferResultFunc(cxj); + executorService.execute(run); + } }); } catch (Exception e) { logger.error("service == changeTransferResultTask == exception", e); diff --git a/op-modules/op-mes/src/main/java/com/op/mes/service/impl/MesBoradServiceImpl.java b/op-modules/op-mes/src/main/java/com/op/mes/service/impl/MesBoradServiceImpl.java index 1471b0f9..12853668 100644 --- a/op-modules/op-mes/src/main/java/com/op/mes/service/impl/MesBoradServiceImpl.java +++ b/op-modules/op-mes/src/main/java/com/op/mes/service/impl/MesBoradServiceImpl.java @@ -153,11 +153,11 @@ public class MesBoradServiceImpl implements IMesBoradService { public List getHFQcInfo(BoardDTO boardDTO) { DynamicDataSourceContextHolder.push(boardDTO.getFactoryCode()); List dtos = mesMapper.getHFQcInfo(boardDTO); - if(!CollectionUtils.isEmpty(dtos)){ - //不合格 - List isquas = dtos.stream().filter(a -> a.getIsqua().equals("0")).collect(Collectors.toList()); - dtos.get(0).setTaskNum(isquas.size()+""); - } +// if(!CollectionUtils.isEmpty(dtos)){ +// //不合格 +// List isquas = dtos.stream().filter(a -> a.getIsqua().equals("0")).collect(Collectors.toList()); +// dtos.get(0).setTaskNum(isquas.size()+""); +// } return dtos; } diff --git a/op-modules/op-mes/src/main/resources/mapper/mes/MesMapper.xml b/op-modules/op-mes/src/main/resources/mapper/mes/MesMapper.xml index e9d08bf5..27c259b3 100644 --- a/op-modules/op-mes/src/main/resources/mapper/mes/MesMapper.xml +++ b/op-modules/op-mes/src/main/resources/mapper/mes/MesMapper.xml @@ -397,6 +397,8 @@ create_time createTime from qc_pro_check where CONVERT(varchar(10),create_time, 120) = CONVERT(varchar(10),GETDATE(), 120) + and isqua = '0' + order by create_time desc diff --git a/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkMapper.xml b/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkMapper.xml index b464dff5..b0b71ccc 100644 --- a/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkMapper.xml +++ b/op-modules/op-mes/src/main/resources/mapper/mes/MesReportWorkMapper.xml @@ -266,14 +266,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" mrw.unit, mrw.quantity, mrw.quantity_feedback quantityFeedback, - bpa.iei, - bpa.man_standar manStandar, + ISNULL(bpa.iei, '0') iei, + ISNULL(bpa.man_standar, '0') manStandar, mrw.use_man useMan, mrw.work_time workTime from mes_report_work mrw left join pro_order_workorder ow on ow.workorder_code = mrw.workorder_code left join base_team_t tm on mrw.team_code = tm.Team_Code - left join base_product_attached bpa on bpa.product_code = mrw.product_code + left join base_product_attached bpa on bpa.product_code = right(mrw.product_code,11) where CONVERT(varchar(10),ow.product_date, 23) = CONVERT(varchar(10), #{productDateStr}, 23) and mrw.work_center = #{workCenter} and mrw.parent_order != '0' order by ow.workorder_code diff --git a/op-modules/op-quality/src/main/resources/mapper/quality/QcCheckTaskIncomeMapper.xml b/op-modules/op-quality/src/main/resources/mapper/quality/QcCheckTaskIncomeMapper.xml index 422a46ae..f959db80 100644 --- a/op-modules/op-quality/src/main/resources/mapper/quality/QcCheckTaskIncomeMapper.xml +++ b/op-modules/op-quality/src/main/resources/mapper/quality/QcCheckTaskIncomeMapper.xml @@ -403,8 +403,8 @@ qct.check_loc checkLoc, qct.remark from qc_check_task qct - left join pro_order_workorder pow on pow.workorder_code = qct.order_no - where qct.record_id = #{recordId} and pow.del_flag = '0' + left join pro_order_workorder pow on pow.workorder_code = qct.order_no and pow.del_flag = '0' + where qct.record_id = #{recordId}