| | |
| | | from om_production_orde_info where 1 = 1 |
| | | </select> |
| | | |
| | | <!-- <select id="lineFinishQty" resultType="cn.stylefeng.guns.modular.om.productionOrdeInfo.model.result.ProductionOrdeInfoResult">--> |
| | | <!-- SELECT production_line as name,sum(actual_qty)as value FROM om_production_orde_info GROUP BY production_line--> |
| | | <!-- </select>--> |
| | | <select id="lineFinishQty" resultType="cn.stylefeng.guns.modular.om.productionOrdeInfo.model.result.ProductionOrdeInfoResult"> |
| | | SELECT production_line as name,sum(actual_qty)as value FROM om_production_orde_info GROUP BY production_line |
| | | <![CDATA[ |
| | | SELECT TOP 7 actual_start_time as actualStartTime,actual_qty as actualQty FROM om_production_orde_info WHERE actual_start_time is not null AND actual_qty IS NOT NULL ORDER BY actual_start_time DESC |
| | | ]]> |
| | | </select> |
| | | |
| | | <select id="getOrderWeek" resultType="Map"> |
| | |
| | | select SUM(actual_qty) as actualQty FROM om_production_orde_info WHERE CONVERT ( VARCHAR ( 100 ), create_time, 23 ) = #{testdate} |
| | | </select> |
| | | |
| | | <!-- <select id="getListMonth" resultType="cn.stylefeng.guns.modular.om.productionOrdeInfo.model.result.ProductionOrdeInfoResult">--> |
| | | <!-- <![CDATA[--> |
| | | <!-- select * from om_production_orde_info where datediff(dd, plan_start_time,getdate())<=6--> |
| | | <!-- ]]>--> |
| | | <!-- </select>--> |
| | | |
| | | <select id="getListMonth" resultType="cn.stylefeng.guns.modular.om.productionOrdeInfo.model.result.ProductionOrdeInfoResult"> |
| | | <![CDATA[ |
| | | select * from om_production_orde_info where datediff(dd, plan_start_time,getdate())<=6 |
| | | SELECT TOP 10 * FROM om_production_orde_info ORDER BY actual_start_time DESC |
| | | ]]> |
| | | </select> |
| | | |
| | | <select id="getColumnarDate" resultType="cn.stylefeng.guns.modular.om.productionOrdeInfo.model.result.ProductionOrdeInfoResult"> |
| | | SELECT DISTINCT |
| | | FORMAT ( actual_start_time, 'yyyy-MM-dd' ) AS actual_start_time |
| | | FROM |
| | | om_production_orde_info |
| | | ORDER BY |
| | | actual_start_time DESC OFFSET 0 ROWS FETCH NEXT 7 ROWS ONLY; |
| | | </select> |
| | | |
| | | <select id="orderDescListFive" resultType="cn.stylefeng.guns.modular.om.productionOrdeInfo.model.result.ProductionOrdeInfoResult"> |
| | | SELECT TOP 5 * FROM om_production_orde_info ORDER BY actual_start_time DESC |
| | | </select> |
| | | |
| | | </mapper> |