图纸相关实体类

master
yangwl 3 years ago
parent cd582fc5af
commit 480e114225

@ -0,0 +1,23 @@
package com.foreverwin.mesnac.meapi.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.foreverwin.mesnac.meapi.model.SfcDispatchDrawing;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* <p>
* Mapper
* </p>
*
* @author Leon.L
* @since 2021-06-02
*/
@Repository
public interface SfcDispatchDrawingMapper extends BaseMapper<SfcDispatchDrawing> {
SfcDispatchDrawing findSfcDispatch(@Param("site") String site, @Param("sfc") String sfc, @Param("operation") String operation, @Param("stepId") String stepId);
}

@ -0,0 +1,22 @@
package com.foreverwin.mesnac.meapi.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.foreverwin.mesnac.meapi.mapper.SfcDispatchDrawingMapper;
import com.foreverwin.mesnac.meapi.model.SfcDispatchDrawing;
import com.foreverwin.mesnac.meapi.service.SfcDispatchDrawingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class SfcDispatchDrawingServiceImpl extends ServiceImpl<SfcDispatchDrawingMapper, SfcDispatchDrawing> implements SfcDispatchDrawingService{
@Autowired
private SfcDispatchDrawingMapper sfcDispatchDrawingMapper;
@Override
public SfcDispatchDrawing findSfcDispatch(String site, String sfc, String operation, String stepId) {
return sfcDispatchDrawingMapper.findSfcDispatch(site,sfc,operation,stepId);
}
}

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.foreverwin.mesnac.meapi.mapper.SfcDispatchDrawingMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.foreverwin.mesnac.meapi.model.SfcDispatchDrawing">
<id column="HANDLE" property="handle" />
<result column="SITE" property="site" />
<result column="SHOP_ORDER" property="shopOrder" />
<result column="SFC" property="sfc" />
<result column="BLANKING_SIZE" property="blankingSize" />
<result column="DISPATCH_SEQ" property="dispatchSeq" />
<result column="DISPATCH_NO" property="dispatchNo" />
<result column="DISPATCH_STATUS" property="dispatchStatus" />
<result column="DRAWINGS_NO" property="drawingsNo" />
<result column="DRAWINGS_REVISION" property="drawingsRevision" />
<result column="IS_LOCK" property="isLock" />
<result column="ROUTER_BO" property="routerBo" />
<result column="STEP_ID" property="stepId" />
<result column="OPERATION" property="operation" />
<result column="RESOURCE_TYPE" property="resourceType" />
<result column="WORK_CENTER" property="workCenter" />
<result column="RESRCE" property="resrce" />
<result column="EMPLOYEE" property="employee" />
<result column="EMPLOYEE_DESCRIPTION" property="employeeDescription" />
<result column="TURN_OPERATION" property="turnOperation" />
<result column="DISPATCH_QTY" property="dispatchQty" />
<result column="PROD_HOURS" property="prodHours" />
<result column="PLANNED_START_DATE" property="plannedStartDate" />
<result column="PLANNED_COMP_DATE" property="plannedCompDate" />
<result column="EARLIEST_START_DATE" property="earliestStartDate" />
<result column="LATEST_END_DATE" property="latestEndDate" />
<result column="SO_RELEASED_DATE" property="soReleasedDate" />
<result column="SFC_RELEASED_DATE" property="sfcReleasedDate" />
<result column="RELEASED_COMPLETE_DATE" property="releasedCompleteDate" />
<result column="ACTUAL_START_DATE" property="actualStartDate" />
<result column="ACTUAL_COMPLETE_DATE" property="actualCompleteDate" />
<result column="IS_DISPATCH" property="isDispatch" />
<result column="IS_IMPORT" property="isImport" />
<result column="REMARK" property="remark" />
<result column="PREPOSITION_STEP_ID" property="prepositionStepId" />
<result column="PREPOSITION_OPERATION" property="prepositionOperation" />
<result column="IS_FIRST_OPERATION" property="isFirstOperation" />
<result column="CREATE_USER" property="createUser" />
<result column="CREATED_DATE_TIME" property="createdDateTime" />
<result column="MODIFY_USER" property="modifyUser" />
<result column="MODIFIED_DATE_TIME" property="modifiedDateTime" />
<result column="OTHER_1" property="other1" />
<result column="OTHER_2" property="other2" />
<result column="OTHER_3" property="other3" />
<result column="OTHER_4" property="other4" />
<result column="OTHER_5" property="other5" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
HANDLE, SITE, SHOP_ORDER, SFC, BLANKING_SIZE, DISPATCH_SEQ, DISPATCH_NO, DISPATCH_STATUS, DRAWINGS_NO, DRAWINGS_REVISION, IS_LOCK, ROUTER_BO, STEP_ID, OPERATION, RESOURCE_TYPE, WORK_CENTER, RESRCE, EMPLOYEE, EMPLOYEE_DESCRIPTION, TURN_OPERATION, DISPATCH_QTY, PROD_HOURS, PLANNED_START_DATE, PLANNED_COMP_DATE, EARLIEST_START_DATE, LATEST_END_DATE, SO_RELEASED_DATE, SFC_RELEASED_DATE, RELEASED_COMPLETE_DATE, ACTUAL_START_DATE, ACTUAL_COMPLETE_DATE, IS_DISPATCH, IS_IMPORT, REMARK, PREPOSITION_STEP_ID, PREPOSITION_OPERATION, IS_FIRST_OPERATION, CREATE_USER, CREATED_DATE_TIME, MODIFY_USER, MODIFIED_DATE_TIME, OTHER_1, OTHER_2, OTHER_3, OTHER_4, OTHER_5
</sql>
<!-- BaseMapper标准查询/修改/删除 -->
<select id="findSfcDispatch" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" />
FROM Z_SFC_DISPATCH
WHERE SITE = #{site} AND SFC = #{sfc}
<if test="operation != null and operation != ''">
AND OPERATION = #{operation}
</if>
<if test="stepId != null and stepId != ''">
AND STEP_ID = #{stepId}
</if>
</select>
</mapper>
Loading…
Cancel
Save