| | |
| | | package com.aps.core.mapper; |
| | | |
| | | import com.aps.core.domain.ApsGasPipelinePrediction; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.apache.ibatis.annotations.Update; |
| | | import org.jetbrains.annotations.NotNull; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | /** |
| | | * 管路手工气体预测数据Mapper接口 |
| | |
| | | public int deleteApsGasPipelinePredictionByIds(Long[] ids); |
| | | |
| | | void deleteAll(); |
| | | |
| | | @Select(""" |
| | | <script> |
| | | select id, factory || '##' || material_code || '##' || TO_CHAR(predict_date, 'yyyy-MM') as key |
| | | from aps_gas_pipeline_prediction |
| | | where 1 = 0 |
| | | <if test="!keys.isEmpty()">or factory || '##' || material_code || '##' || TO_CHAR(predict_date, 'yyyy-MM') in |
| | | <foreach collection="keys" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </script> |
| | | """) |
| | | List<Map<String, Object>> selectByFacOrMaterial(@NotNull Set<String> keys); |
| | | |
| | | } |