| | |
| | | |
| | | <select id="getProductionByPid" resultType="org.jeecg.modules.system.entity.MdcProduction"> |
| | | SELECT |
| | | t1.* |
| | | t1.* |
| | | FROM |
| | | mdc_production t1 |
| | | LEFT JOIN mdc_user_production t2 ON t1.id = t2.pro_id |
| | | WHERE |
| | | t1.parent_id = #{ productionId } AND t2.user_id = #{ userId } |
| | | mdc_production t1 |
| | | -- LEFT JOIN mdc_user_production t2 ON t1.id = t2.pro_id |
| | | WHERE 1=1 |
| | | <if test="productionId != null and productionId != ''"> |
| | | AND t1.parent_id = #{ productionId } |
| | | </if> |
| | | <!-- <if test="userId != null and userId != ''">--> |
| | | <!-- AND t2.user_id = #{ userId }--> |
| | | <!-- </if>--> |
| | | </select> |
| | | |
| | | <select id="getProcessCount" resultType="java.math.BigDecimal"> |
| | |
| | | <select id="getEquipmentSevenUtilizationStatistics" resultType="org.jeecg.modules.mdc.entity.MdcEquipmentStatisticalInfo"> |
| | | SELECT |
| | | equipment_id, |
| | | the_date, |
| | | SUM ( process_long ) processLong, |
| | | SUM ( open_long ) openLong |
| | | FROM |
| | |
| | | </if> |
| | | </where> |
| | | GROUP BY |
| | | equipment_id |
| | | equipment_id, |
| | | the_date |
| | | </select> |
| | | |
| | | |