| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | <select id="weldSeamStat" parameterType="java.util.List" resultType="com.aps.core.domain.ApsWeldSeamStatistics"> |
| | | SELECT produce_year as year, |
| | | produce_month as month, |
| | | production_base as productionBase, |
| | | work_order_type as workOrderType, |
| | | classification, |
| | | sum(total_weld_seam) as total |
| | | FROM aps_weld_seam where del_flag='0' |
| | | GROUP BY produce_year, produce_month, production_base, work_order_type, classification |
| | | </select> |
| | | <update id="removeLastBatch" parameterType="String"> |
| | | update aps_weld_seam set del_flag='1' where del_flag='0' |
| | | </update> |
| | | |
| | | <select id="weldSeamEcharts" parameterType="java.util.List" resultType="map"> |
| | | |
| | | SELECT |
| | | seam.produce_year, |
| | | seam.produce_month, |
| | | seam.production_base, |
| | | workOrderType.dict_label AS work_order_name, |
| | | classification.dict_label AS classification_name, |
| | | SUM ( seam.total_weld_seam ) AS total_weld_seam |
| | | FROM |
| | | aps_weld_seam seam |
| | | LEFT JOIN sys_dict_data workOrderType ON seam.work_order_type = workOrderType.dict_value |
| | | AND workOrderType.dict_type = 'aps_weld_work_order_type' |
| | | LEFT JOIN sys_dict_data classification ON seam.classification = classification.dict_value |
| | | AND classification.dict_type = 'aps_weld_classification' |
| | | <where> |
| | | seam.del_flag = '0' |
| | | <foreach item="item" index="index" collection="list" separator=" OR " open="and (" close=") "> |
| | | produce_year = #{item.produceYear} and produce_month = #{item.produceMonth} |
| | | </foreach> |
| | | </where> |
| | | GROUP BY |
| | | seam.produce_year, |
| | | seam.produce_month, |
| | | seam.production_base, |
| | | workOrderType.dict_label, |
| | | classification.dict_label |
| | | |
| | | </select> |
| | | </mapper> |