|
|
|
|
@ -136,15 +136,15 @@ |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="findCubByYoIdMes" resultType="org.springblade.desk.produce.pojo.entity.WorkOrder"> |
|
|
|
|
select * from MES_WORK_ORDER a left join MES_YIELD_ORDER b on a.YO_ID = b.ID where b.FATHER_YO_ID = #{yoId} |
|
|
|
|
select * from MES_WORK_ORDER a inner join MES_YIELD_ORDER b on a.YO_ID = b.ID where b.FATHER_YO_ID = #{yoId} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="listByWpIdMes" resultType="org.springblade.desk.quality.pojo.entity.WorkPlanItem"> |
|
|
|
|
select * from QA_WORK_PLAN_ITEM a left join MES_WORK_PLAN b on a.wp_id = b.ID where a.wp_id= #{wpId} |
|
|
|
|
select * from QA_WORK_PLAN_ITEM a inner join MES_WORK_PLAN b on a.wp_id = b.ID where a.wp_id= #{wpId} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="listByPartCodeNew" resultType="org.springblade.desk.dashboard.pojo.entity.DsPartRelationEntity"> |
|
|
|
|
select * from DS_PART_RELATION a left join DS_PART b on a.PART_CODE = b.PART_CODE where a.PART_CODE= #{partCode} and b.SIN_TER_TYPE = #{indexNum} |
|
|
|
|
select * from DS_PART_RELATION a inner join DS_PART b on a.PART_CODE = b.PART_CODE where a.PART_CODE= #{partCode} and b.SIN_TER_TYPE = #{indexNum} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getByPartCodeAndSubCodeMes" resultType="org.springblade.desk.dashboard.pojo.entity.DsPartSub"> |
|
|
|
|
@ -153,7 +153,7 @@ |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="findByPartCodeAndMemoMes" resultType="org.springblade.desk.produce.pojo.entity.WorkOrder"> |
|
|
|
|
select * from MES_WORK_ORDER a left join MES_YIELD_ORDER b on a.YO_ID = b.ID where b.PART_CODE= #{partCode} and b.YP_CODE = #{memo} |
|
|
|
|
select * from MES_WORK_ORDER a inner join MES_YIELD_ORDER b on a.YO_ID = b.ID where b.PART_CODE= #{partCode} and b.YP_CODE = #{memo} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getCheckManByNewErpMes" resultType="String"> |
|
|
|
|
@ -229,7 +229,8 @@ |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getByRfpsIdMesNew" resultType="org.springblade.desk.produce.pojo.entity.MesRbFilePreserveDetailEntity"> |
|
|
|
|
select * from MES_RB_FILE_PRESERVE_DETAIL a left join MES_RB_FILE_PRESERVE_SLOT b on a.rfps_id = b.id and a.rfps_id = #{id} |
|
|
|
|
select * from MES_RB_FILE_PRESERVE_DETAIL a inner join MES_RB_FILE_PRESERVE_SLOT b |
|
|
|
|
on a.rfps_id = b.id and a.rfps_id = #{id} and a.is_delete = 0 |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="listByWoIdAllMes" resultType="org.springblade.desk.produce.pojo.entity.WorkPlan"> |
|
|
|
|
@ -252,13 +253,13 @@ |
|
|
|
|
|
|
|
|
|
<select id="getDataByWpIdAndIndexListNew" resultType="org.springblade.desk.produce.pojo.entity.MacToolUse"> |
|
|
|
|
select a.* from MES_MAC_TOOL_USE a |
|
|
|
|
left join MES_WORK_PLAN wp on a.WP_ID = wp.ID |
|
|
|
|
inner join MES_WORK_PLAN wp on a.WP_ID = wp.ID |
|
|
|
|
where a.WP_ID=#{wpId} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getDataByWpIdAndIndex" resultType="org.springblade.desk.produce.pojo.entity.MacToolUse"> |
|
|
|
|
select a.* from MES_MAC_TOOL_USE a |
|
|
|
|
left join MES_WORK_PLAN wp on a.WP_ID = wp.ID |
|
|
|
|
inner join MES_WORK_PLAN wp on a.WP_ID = wp.ID |
|
|
|
|
where wp.Id=#{wpId} and a.mtu_index=#{numberIndex} order by a.Id desc |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
@ -285,7 +286,7 @@ |
|
|
|
|
|
|
|
|
|
<select id="getByRfpsId" resultType="org.springblade.desk.produce.pojo.dto.MesRbFilePreserveDetailDTO"> |
|
|
|
|
select * ,slot.rfps_type as rfpsType from MES_RB_FILE_PRESERVE_DETAIL a |
|
|
|
|
left join MES_RB_FILE_PRESERVE_SLOT slot on a.rfps_id = slot.rfp_id |
|
|
|
|
inner join MES_RB_FILE_PRESERVE_SLOT slot on a.rfps_id = slot.rfp_id |
|
|
|
|
where slot.rfp_id =#{rfpsId} |
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|
@ -294,7 +295,7 @@ |
|
|
|
|
<select id="getByRfpId" resultType="org.springblade.desk.produce.pojo.entity.MesRbFilePreserveSlotEntity"> |
|
|
|
|
select a.* from MES_RB_FILE_PRESERVE_SLOT slot |
|
|
|
|
-- left join DS_RB_FILE_PRESERVE slot on a.Id = slot.RFP_ID |
|
|
|
|
left join QA_PRO_RE_TEMPLATE a on a.Id = slot.RFP_ID |
|
|
|
|
inner join QA_PRO_RE_TEMPLATE a on a.Id = slot.RFP_ID |
|
|
|
|
where slot.RFP_ID =#{rfpId} |
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|
|