|
|
|
@ -228,10 +228,10 @@ |
|
|
|
select * from MES_WORK_ORDER a inner join MES_YIELD_ORDER b on a.yo_id = b.id and a.yo_id = #{yoId} |
|
|
|
select * from MES_WORK_ORDER a inner join MES_YIELD_ORDER b on a.yo_id = b.id and a.yo_id = #{yoId} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <select id="getByRfpsIdMesNew" resultType="org.springblade.desk.produce.pojo.entity.MesRbFilePreserveDetailEntity">--> |
|
|
|
<!-- <select id="getByRfpsIdMesNew" resultType="org.springblade.desk.produce.pojo.entity.MesRbFilePreserveDetailEntity">--> |
|
|
|
<!-- select * from MES_RB_FILE_PRESERVE_DETAIL a inner join MES_RB_FILE_PRESERVE_SLOT b--> |
|
|
|
<!-- 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_DELETED = 0--> |
|
|
|
<!-- on a.rfps_id = b.id and a.rfps_id = #{id} and a.IS_DELETED = 0--> |
|
|
|
<!-- </select>--> |
|
|
|
<!-- </select>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getByRfpsIdMesNew" resultType="org.springblade.desk.produce.pojo.entity.MesRbFilePreserveDetailEntity"> |
|
|
|
<select id="getByRfpsIdMesNew" resultType="org.springblade.desk.produce.pojo.entity.MesRbFilePreserveDetailEntity"> |
|
|
|
@ -272,13 +272,13 @@ |
|
|
|
select a.* from MES_MAC_TOOL_USE a where a.wp_id = #{wpId} and hang_num is not null |
|
|
|
select a.* from MES_MAC_TOOL_USE a where a.wp_id = #{wpId} and hang_num is not null |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <select id="getDataByWcIdAndPpsId" resultType="org.springblade.desk.produce.pojo.entity.DsRbFilePreserve">--> |
|
|
|
<!-- <select id="getDataByWcIdAndPpsId" resultType="org.springblade.desk.produce.pojo.entity.DsRbFilePreserve">--> |
|
|
|
<!-- select from DS_RB_FILE_PRESERVE a where 1=1--> |
|
|
|
<!-- select from DS_RB_FILE_PRESERVE a where 1=1--> |
|
|
|
<!-- <if test="wcId != null">--> |
|
|
|
<!-- <if test="wcId != null">--> |
|
|
|
<!-- and a.WC_ID = #{wcId}--> |
|
|
|
<!-- and a.WC_ID = #{wcId}--> |
|
|
|
<!-- </if>--> |
|
|
|
<!-- </if>--> |
|
|
|
<!-- and a.PPS_ID = #{ppsId} and a.LINE = 2--> |
|
|
|
<!-- and a.PPS_ID = #{ppsId} and a.LINE = 2--> |
|
|
|
<!-- </select>--> |
|
|
|
<!-- </select>--> |
|
|
|
|
|
|
|
|
|
|
|
<select id="getDataByWcIdAndPpsId" resultType="org.springblade.desk.quality.pojo.entity.ProReTemplate"> |
|
|
|
<select id="getDataByWcIdAndPpsId" resultType="org.springblade.desk.quality.pojo.entity.ProReTemplate"> |
|
|
|
select from QA_PRO_RE_TEMPLATE a where 1=1 |
|
|
|
select from QA_PRO_RE_TEMPLATE a where 1=1 |
|
|
|
@ -438,6 +438,7 @@ |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBsSalaryCalculationPage" resultType="org.springblade.desk.efficiency.pojo.vo.BsSalaryCalculationVO"> |
|
|
|
<select id="selectBsSalaryCalculationPage" resultType="org.springblade.desk.efficiency.pojo.vo.BsSalaryCalculationVO"> |
|
|
|
|
|
|
|
SELECT * FROM ( |
|
|
|
SELECT |
|
|
|
SELECT |
|
|
|
f.WO_CODE AS woCode, |
|
|
|
f.WO_CODE AS woCode, |
|
|
|
g.PART_CODE AS partCode, |
|
|
|
g.PART_CODE AS partCode, |
|
|
|
@ -478,7 +479,8 @@ |
|
|
|
INNER JOIN MES_YIELD_ORDER g ON f.YO_ID = g.ID AND g.IS_DELETED = 0 |
|
|
|
INNER JOIN MES_YIELD_ORDER g ON f.YO_ID = g.ID AND g.IS_DELETED = 0 |
|
|
|
INNER JOIN BS_CENTER_TEAM h ON e.ID = h.TS_ID AND e.WC_ID = h.WC_ID AND h.IS_DELETED = 0 |
|
|
|
INNER JOIN BS_CENTER_TEAM h ON e.ID = h.TS_ID AND e.WC_ID = h.WC_ID AND h.IS_DELETED = 0 |
|
|
|
INNER JOIN BS_WORK_CENTER i ON h.WC_ID = i.ID AND i.IS_DELETED = 0 |
|
|
|
INNER JOIN BS_WORK_CENTER i ON h.WC_ID = i.ID AND i.IS_DELETED = 0 |
|
|
|
INNER JOIN DS_PART_VERSION j on g.part_code = j.part_code and g.part_version = j.part_version and j.IS_DELETED = 0 |
|
|
|
INNER JOIN DS_PART_VERSION j on g.part_code = j.part_code and g.part_version = j.part_version and j.IS_DELETED = |
|
|
|
|
|
|
|
0 |
|
|
|
INNER JOIN DS_PART k ON j.part_id = k.ID AND k.IS_DELETED = 0 |
|
|
|
INNER JOIN DS_PART k ON j.part_id = k.ID AND k.IS_DELETED = 0 |
|
|
|
INNER JOIN MES_QUALITY_GRADE l on g.PRODUCT_IDENT = l.QUALITY_GRADE |
|
|
|
INNER JOIN MES_QUALITY_GRADE l on g.PRODUCT_IDENT = l.QUALITY_GRADE |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
@ -554,6 +556,17 @@ |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
</where> |
|
|
|
</where> |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
<choose> |
|
|
|
|
|
|
|
<when test="bsSalaryCalculation.orderByField != null and bsSalaryCalculation.orderByField != ''"> |
|
|
|
|
|
|
|
ORDER BY ${bsSalaryCalculation.orderByField} |
|
|
|
|
|
|
|
<if test="bsSalaryCalculation.isAsc">ASC</if> |
|
|
|
|
|
|
|
<if test="!bsSalaryCalculation.isAsc">DESC</if> |
|
|
|
|
|
|
|
</when> |
|
|
|
|
|
|
|
<otherwise> |
|
|
|
|
|
|
|
ORDER BY putStoreTime desc |
|
|
|
|
|
|
|
</otherwise> |
|
|
|
|
|
|
|
</choose> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="getByCardNoByPlanAll" resultType="org.springblade.desk.produce.pojo.vo.AllWorkPlanVO"> |
|
|
|
<select id="getByCardNoByPlanAll" resultType="org.springblade.desk.produce.pojo.vo.AllWorkPlanVO"> |
|
|
|
SELECT |
|
|
|
SELECT |
|
|
|
|