diff --git a/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/model/AbnormalBill.java b/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/model/AbnormalBill.java index 8ebf7d8b..430f3f77 100644 --- a/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/model/AbnormalBill.java +++ b/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/model/AbnormalBill.java @@ -229,6 +229,11 @@ public class AbnormalBill extends Model { */ @TableField("PRODUCT_CATEGORY") private String productCategory; + /** + * 工步 + */ + @TableField("STEP_ID") + private String stepId; @TableField(exist = false) private String filePath; @@ -592,6 +597,14 @@ public class AbnormalBill extends Model { this.fileNum = fileNum; } + public String getStepId() { + return stepId; + } + + public void setStepId(String stepId) { + this.stepId = stepId; + } + public static final String HANDLE = "HANDLE"; public static final String SITE = "SITE"; diff --git a/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/model/AbnormalBillLog.java b/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/model/AbnormalBillLog.java index eb89b0af..51b2b912 100644 --- a/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/model/AbnormalBillLog.java +++ b/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/model/AbnormalBillLog.java @@ -315,6 +315,18 @@ public class AbnormalBillLog extends Model { @TableField("MODIFIED_DATE_TIME") private LocalDateTime modifiedDateTime; + /** + * 产品型号 + */ + @TableField("PRODUCT_CATEGORY") + private String productCategory; + + /** + * 工步 + */ + @TableField("STEP_ID") + private String stepId; + public String getHandle() { return handle; @@ -780,7 +792,23 @@ public class AbnormalBillLog extends Model { this.modifiedDateTime = modifiedDateTime; } -public static final String HANDLE = "HANDLE"; + public String getProductCategory() { + return productCategory; + } + + public void setProductCategory(String productCategory) { + this.productCategory = productCategory; + } + + public String getStepId() { + return stepId; + } + + public void setStepId(String stepId) { + this.stepId = stepId; + } + + public static final String HANDLE = "HANDLE"; public static final String SITE = "SITE"; diff --git a/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/service/impl/AbnormalBillLogServiceImpl.java b/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/service/impl/AbnormalBillLogServiceImpl.java index 3c9eec5b..8ade73d2 100644 --- a/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/service/impl/AbnormalBillLogServiceImpl.java +++ b/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/service/impl/AbnormalBillLogServiceImpl.java @@ -162,8 +162,6 @@ public class AbnormalBillLogServiceImpl extends ServiceImpl discoverList = dataFieldListService.findDataFieldListById(discover); + hashMap.put("discover",discoverList); + //原因分类 DataField ncCode = new DataField(); ncCode.setSite(site); @@ -705,6 +714,8 @@ public class AbnormalBillServiceImpl extends ServiceImpl= 1) { throw BusinessException.build(abnormalType + "有未处理完成的产品条码(SFC)"); } + //根据sfc找出STEP_ID + } diff --git a/anomaly/src/main/resources/mapper/AbnormalBillLogMapper.xml b/anomaly/src/main/resources/mapper/AbnormalBillLogMapper.xml index 28ec07f0..1e614a85 100644 --- a/anomaly/src/main/resources/mapper/AbnormalBillLogMapper.xml +++ b/anomaly/src/main/resources/mapper/AbnormalBillLogMapper.xml @@ -62,11 +62,13 @@ + + - HANDLE, SITE, ABNORMAL_NO, STATUS, TYPE, ITEM_BO, SFC, OPERATION, WORK_CENTER, SHOP_ORDER, MESSAGE_TYPE, RESRCE, NC_CODE, NC_CODE_GROUP, SHUT_DOWN, RESPONSE_USER, RESPONSE_DATE_TIME, PB_DESCRIPTION, NC_QTY, PB_GRADE, PB_USER, PB_QTY, REPAIR_DATE_TIME, DISCOVER, INSPECTOR, ENTITY_LOCATION, REPORT_FROM, OBJECT_BO, PB_PHOTOSHOP, CANCEL_CODE, CANCEL_REASON, CANCEL_DATE_TIME, CANCEL_USER, DUTY_USER, DUTY_DATE_TIME, DUTY_DEPART, PRINCIPAL_USER, DUTY_CAUSE_DESCRIPTION, DUTY_CAUSE_TYPE, DUTY_TYPE, DUTY_SEND_USER_GROUP, RESOLVE_USER, RESOLVE_DATE_TIME, ABNORMAL_METHOD, ROUTER_BO, RESOLVE_SHOP_ORDER, RESOLVE_REMARK, RESOLVE_SEND_USER_GROUP, CLOSED_USER, CLOSED_DATE_TIME, ABNORMAL_REASON, BEFORE_MEASURE, REPORT_SEND_USER_GROUP, CANCEL_SEND_USER_GROUP, CREATED_USER, CREATED_DATA_TIME, MODIFIED_USER, MODIFIED_DATE_TIME + HANDLE, SITE, ABNORMAL_NO, STATUS, TYPE, ITEM_BO, SFC, OPERATION, WORK_CENTER, SHOP_ORDER, MESSAGE_TYPE, RESRCE, NC_CODE, NC_CODE_GROUP, SHUT_DOWN, RESPONSE_USER, RESPONSE_DATE_TIME, PB_DESCRIPTION, NC_QTY, PB_GRADE, PB_USER, PB_QTY, REPAIR_DATE_TIME, DISCOVER, INSPECTOR, ENTITY_LOCATION, REPORT_FROM, OBJECT_BO, PB_PHOTOSHOP, CANCEL_CODE, CANCEL_REASON, CANCEL_DATE_TIME, CANCEL_USER, DUTY_USER, DUTY_DATE_TIME, DUTY_DEPART, PRINCIPAL_USER, DUTY_CAUSE_DESCRIPTION, DUTY_CAUSE_TYPE, DUTY_TYPE, DUTY_SEND_USER_GROUP, RESOLVE_USER, RESOLVE_DATE_TIME, ABNORMAL_METHOD, ROUTER_BO, RESOLVE_SHOP_ORDER, RESOLVE_REMARK, RESOLVE_SEND_USER_GROUP, CLOSED_USER, CLOSED_DATE_TIME, ABNORMAL_REASON, BEFORE_MEASURE, REPORT_SEND_USER_GROUP, CANCEL_SEND_USER_GROUP, CREATED_USER, CREATED_DATA_TIME, MODIFIED_USER, MODIFIED_DATE_TIME, PRODUCT_CATEGORY, STEP_ID @@ -158,6 +160,8 @@ AND CREATED_DATA_TIME=#{ew.entity.createdDataTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} + AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} @@ -226,6 +230,8 @@ AND CREATED_DATA_TIME=#{ew.entity.createdDataTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} + AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -302,6 +308,8 @@ AND CREATED_DATA_TIME=#{ew.entity.createdDataTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} + AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -378,6 +386,8 @@ AND CREATED_DATA_TIME=#{ew.entity.createdDataTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} + AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -454,6 +464,8 @@ AND CREATED_DATA_TIME=#{ew.entity.createdDataTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} + AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -530,6 +542,8 @@ AND CREATED_DATA_TIME=#{ew.entity.createdDataTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} + AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -606,6 +620,8 @@ AND CREATED_DATA_TIME=#{ew.entity.createdDataTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} + AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -678,6 +694,8 @@ CREATED_DATA_TIME, MODIFIED_USER, MODIFIED_DATE_TIME, + PRODUCT_CATEGORY, + STEP_ID, VALUES #{handle}, @@ -738,6 +756,8 @@ #{createdDataTime}, #{modifiedUser}, #{modifiedDateTime}, + #{productCategory}, + #{stepId}, @@ -805,6 +825,8 @@ #{createdDataTime}, #{modifiedUser}, #{modifiedDateTime}, + #{productCategory}, + #{stepId}, @@ -868,6 +890,8 @@ CREATED_DATA_TIME=#{et.createdDataTime}, MODIFIED_USER=#{et.modifiedUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, + PRODUCT_CATEGORY=#{et.productCategory}, + STEP_ID=#{et.stepId}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} @@ -931,6 +955,8 @@ CREATED_DATA_TIME=#{et.createdDataTime}, MODIFIED_USER=#{et.modifiedUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, + PRODUCT_CATEGORY=#{et.productCategory}, + STEP_ID=#{et.stepId}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} @@ -994,6 +1020,8 @@ CREATED_DATA_TIME=#{et.createdDataTime}, MODIFIED_USER=#{et.modifiedUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, + PRODUCT_CATEGORY=#{et.productCategory}, + STEP_ID=#{et.stepId}, @@ -1056,6 +1084,8 @@ AND CREATED_DATA_TIME=#{ew.entity.createdDataTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} + AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -1149,6 +1179,8 @@ AND CREATED_DATA_TIME=#{ew.entity.createdDataTime} AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} + AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -1183,7 +1215,7 @@ zabd.ROUTER_BO ROUTER_BO,zabd.RESOLVE_SHOP_ORDER RESOLVE_SHOP_ORDER,zabd.RESOLVE_REMARK RESOLVE_REMARK, zabd.RESOLVE_SEND_USER_GROUP RESOLVE_SEND_USER_GROUP,zabd.CLOSED_USER CLOSED_USER,zabd.CLOSED_DATE_TIME CLOSED_DATE_TIME, zabd.ABNORMAL_REASON ABNORMAL_REASON,zabd.BEFORE_MEASURE BEFORE_MEASURE,zab.REPORT_SEND_USER_GROUP REPORT_SEND_USER_GROUP, - zab.CANCEL_SEND_USER_GROUP CANCEL_SEND_USER_GROUP + zab.CANCEL_SEND_USER_GROUP CANCEL_SEND_USER_GROUP,zab.PRODUCT_CATEGORY PRODUCT_CATEGORY,zab.STEP_ID STEP_ID FROM Z_ABNORMAL_BILL zab INNER JOIN Z_ABNORMAL_BILL_DISPOSE zabd ON zab.HANDLE = zabd.ABNORMAL_BILL_BO @@ -1197,5 +1229,4 @@ - diff --git a/anomaly/src/main/resources/mapper/AbnormalBillMapper.xml b/anomaly/src/main/resources/mapper/AbnormalBillMapper.xml index b590823a..5c0ab437 100644 --- a/anomaly/src/main/resources/mapper/AbnormalBillMapper.xml +++ b/anomaly/src/main/resources/mapper/AbnormalBillMapper.xml @@ -45,6 +45,7 @@ + @@ -76,10 +77,9 @@ - - HANDLE, SITE, ABNORMAL_NO, STATUS, CORRECTION, PROGRAM, TYPE, ITEM_BO, SFC, OPERATION, WORK_CENTER, SHOP_ORDER, MESSAGE_TYPE, RESRCE, NC_CODE, SHUT_DOWN, RESPONSE_USER, RESPONSE_DATE_TIME, PB_DESCRIPTION, NC_QTY, PB_GRADE, PB_USER, PB_QTY, REPAIR_DATE_TIME, DISCOVER, INSPECTOR, ENTITY_LOCATION, REPORT_FROM, OBJECT_BO, PB_PHOTOSHOP, CANCEL_CODE, CANCEL_REASON, CANCEL_DATE_TIME, CANCEL_USER, REPORT_SEND_USER_GROUP, CANCEL_SEND_USER_GROUP, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME, PRODUCT_CATEGORY + HANDLE, SITE, ABNORMAL_NO, STATUS, CORRECTION, PROGRAM, TYPE, ITEM_BO, SFC, OPERATION, WORK_CENTER, SHOP_ORDER, MESSAGE_TYPE, RESRCE, NC_CODE, SHUT_DOWN, RESPONSE_USER, RESPONSE_DATE_TIME, PB_DESCRIPTION, NC_QTY, PB_GRADE, PB_USER, PB_QTY, REPAIR_DATE_TIME, DISCOVER, INSPECTOR, ENTITY_LOCATION, REPORT_FROM, OBJECT_BO, PB_PHOTOSHOP, CANCEL_CODE, CANCEL_REASON, CANCEL_DATE_TIME, CANCEL_USER, REPORT_SEND_USER_GROUP, CANCEL_SEND_USER_GROUP, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME, PRODUCT_CATEGORY, STEP_ID @@ -154,6 +154,7 @@ AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} @@ -205,6 +206,7 @@ AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -264,6 +266,7 @@ AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -323,6 +326,7 @@ AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -382,6 +386,7 @@ AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -441,6 +446,7 @@ AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} AND ${ew.sqlSegment} @@ -500,6 +506,7 @@ AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -555,6 +562,7 @@ MODIFIED_USER, MODIFIED_DATE_TIME, PRODUCT_CATEGORY, + STEP_ID, VALUES #{handle}, @@ -598,6 +606,7 @@ #{modifiedUser}, #{modifiedDateTime}, #{productCategory}, + #{stepId}, @@ -648,6 +657,7 @@ #{modifiedUser}, #{modifiedDateTime}, #{productCategory}, + #{stepId}, @@ -694,6 +704,7 @@ MODIFIED_USER=#{et.modifiedUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, PRODUCT_CATEGORY=#{et.productCategory}, + STEP_ID=#{et.stepId}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} @@ -740,6 +751,7 @@ MODIFIED_USER=#{et.modifiedUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, PRODUCT_CATEGORY=#{et.productCategory}, + STEP_ID=#{et.stepId}, WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL} @@ -786,6 +798,7 @@ MODIFIED_USER=#{et.modifiedUser}, MODIFIED_DATE_TIME=#{et.modifiedDateTime}, PRODUCT_CATEGORY=#{et.productCategory}, + STEP_ID=#{et.stepId}, @@ -831,6 +844,7 @@ AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -907,6 +921,7 @@ AND MODIFIED_USER=#{ew.entity.modifiedUser} AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime} AND PRODUCT_CATEGORY=#{ew.entity.productCategory} + AND STEP_ID=#{ew.entity.stepId} ${ew.sqlSegment} @@ -1177,5 +1192,4 @@ JOIN Z_ABNORMAL_BILL_DISPOSE ZABD ON ZABD.ABNORMAL_BILL_BO= ZAB.HANDLE WHERE zab.SITE=#{site} AND zab.STATUS='G' AND zab."TYPE"='Z' AND s.QTY>1 AND (ZABD.ABNORMAL_METHOD='F' OR ZABD.ABNORMAL_METHOD='C') ORDER BY ZABD.CLOSED_DATE_TIME DESC - diff --git a/meapi/src/main/java/com/foreverwin/mesnac/meapi/controller/SfcController.java b/meapi/src/main/java/com/foreverwin/mesnac/meapi/controller/SfcController.java index c865e264..0bb5ea72 100644 --- a/meapi/src/main/java/com/foreverwin/mesnac/meapi/controller/SfcController.java +++ b/meapi/src/main/java/com/foreverwin/mesnac/meapi/controller/SfcController.java @@ -162,6 +162,7 @@ public class SfcController { @GetMapping("/findOperationBySfc") public R findOperationBySfc(String sfc){ + return R.ok(sfcService.findOperationBySfc(sfc)); } diff --git a/meapi/src/main/java/com/foreverwin/mesnac/meapi/mapper/SfcMapper.java b/meapi/src/main/java/com/foreverwin/mesnac/meapi/mapper/SfcMapper.java index 1d385f6d..e686cd90 100644 --- a/meapi/src/main/java/com/foreverwin/mesnac/meapi/mapper/SfcMapper.java +++ b/meapi/src/main/java/com/foreverwin/mesnac/meapi/mapper/SfcMapper.java @@ -1,15 +1,16 @@ package com.foreverwin.mesnac.meapi.mapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.foreverwin.mesnac.meapi.dto.SfcDto; import com.foreverwin.mesnac.meapi.model.Sfc; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.time.LocalDateTime; +import java.util.Map; /** *

@@ -31,7 +32,8 @@ public interface SfcMapper extends BaseMapper { IPage pageByResrce(Page pagePlus,@Param("ew") QueryWrapper queryWrapper,@Param("locale")String locale); - String findOperationBySfc(@Param("site")String site,@Param("sfc")String sfc); + Map findOperationBySfc(@Param("site")String site, @Param("sfc")String sfc); String findSfcByResrce(@Param("site")String site,@Param("resource")String resource,@Param("sfc")Sfc sfc); + } \ No newline at end of file diff --git a/meapi/src/main/java/com/foreverwin/mesnac/meapi/service/SfcService.java b/meapi/src/main/java/com/foreverwin/mesnac/meapi/service/SfcService.java index f7aba728..90152b7c 100644 --- a/meapi/src/main/java/com/foreverwin/mesnac/meapi/service/SfcService.java +++ b/meapi/src/main/java/com/foreverwin/mesnac/meapi/service/SfcService.java @@ -10,6 +10,7 @@ import com.foreverwin.modular.core.util.FrontPage; import java.time.LocalDateTime; import java.util.List; +import java.util.Map; /** *

@@ -51,7 +52,7 @@ public interface SfcService extends IService { SfcDto findSfcData(String site, String sfc); - String findOperationBySfc(String sfc); + Map findOperationBySfc(String sfc); List findSfcByResrce(String resource,Sfc sfc); diff --git a/meapi/src/main/java/com/foreverwin/mesnac/meapi/service/impl/SfcServiceImpl.java b/meapi/src/main/java/com/foreverwin/mesnac/meapi/service/impl/SfcServiceImpl.java index b477c12f..b4a63915 100644 --- a/meapi/src/main/java/com/foreverwin/mesnac/meapi/service/impl/SfcServiceImpl.java +++ b/meapi/src/main/java/com/foreverwin/mesnac/meapi/service/impl/SfcServiceImpl.java @@ -1,15 +1,15 @@ package com.foreverwin.mesnac.meapi.service.impl; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.foreverwin.mesnac.meapi.dto.SfcDto; -import com.foreverwin.modular.core.util.CommonMethods; -import com.foreverwin.modular.core.util.FrontPage; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.foreverwin.mesnac.meapi.dto.SfcDto; import com.foreverwin.mesnac.meapi.mapper.SfcMapper; import com.foreverwin.mesnac.meapi.model.Sfc; import com.foreverwin.mesnac.meapi.service.SfcService; +import com.foreverwin.modular.core.util.CommonMethods; +import com.foreverwin.modular.core.util.FrontPage; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.i18n.LocaleContextHolder; import org.springframework.stereotype.Service; @@ -17,6 +17,8 @@ import org.springframework.transaction.annotation.Transactional; import java.time.LocalDateTime; import java.util.List; +import java.util.Map; + /** *

* 服务实现类 @@ -75,7 +77,7 @@ public class SfcServiceImpl extends ServiceImpl implements SfcSe } @Override - public String findOperationBySfc(String sfc) { + public Map findOperationBySfc(String sfc) { String site = CommonMethods.getSite(); return sfcMapper.findOperationBySfc(site,sfc); } diff --git a/meapi/src/main/resources/mapper/SfcMapper.xml b/meapi/src/main/resources/mapper/SfcMapper.xml index bc378ec8..744632cf 100644 --- a/meapi/src/main/resources/mapper/SfcMapper.xml +++ b/meapi/src/main/resources/mapper/SfcMapper.xml @@ -685,8 +685,8 @@ - + SELECT SS.OPERATION_BO,SS.STEP_ID FROM SFC S INNER JOIN SFC_ROUTING SR ON SR.SFC_BO = S.HANDLE INNER JOIN SFC_ROUTER ST ON ST.SFC_ROUTING_BO = SR.HANDLE