|
@@ -1,10 +1,7 @@
|
|
|
package com.gyee.healthmodel.mapper.auto;
|
|
|
|
|
|
-import com.gyee.healthmodel.model.auto.Partbjcount;
|
|
|
-import com.gyee.healthmodel.model.auto.Statejudgmentrecord2;
|
|
|
-import com.gyee.healthmodel.model.auto.Windturbinebjcount;
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.gyee.healthmodel.model.auto.Windturbineinfoday3;
|
|
|
+import com.gyee.healthmodel.model.auto.Windturbinebjcount;
|
|
|
import org.apache.ibatis.annotations.Delete;
|
|
|
import org.apache.ibatis.annotations.Insert;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
@@ -24,24 +21,27 @@ import java.util.List;
|
|
|
public interface WindturbinebjcountMapper extends BaseMapper<Windturbinebjcount> {
|
|
|
|
|
|
|
|
|
- @Delete(" delete from Windturbinebjcount ")
|
|
|
+ @Delete(" delete from pro_econ_windturbine_warn_count ")
|
|
|
public int deleteWindturbineBjCountData();
|
|
|
|
|
|
|
|
|
- @Insert(" insert into windturbinebjcount (id,wtid,lnid,wpid,alertruleid,alertrulename,part,count,reference,recodedate) values(#{id,jdbcType=VARCHAR},#{wtid,jdbcType=VARCHAR},#{lnid,jdbcType=VARCHAR},#{wpid,jdbcType=VARCHAR},#{alertruleid,jdbcType=VARCHAR},#{alertrulename,jdbcType=VARCHAR},#{part,jdbcType=VARCHAR},#{count,jdbcType=INTEGER},#{reference,jdbcType=DOUBLE},#{recodedate}) ")
|
|
|
+ @Insert(" insert into pro_econ_windturbine_warn_count (id,wp_id,pj_id,ln_id,wt_id,record_date,alertrule_id,alertrule_name,total,average_quantity,part) " +
|
|
|
+ "values(#{id,jdbcType=VARCHAR},#{wp_id,jdbcType=VARCHAR},#{pj_id,jdbcType=VARCHAR}," +
|
|
|
+ "#{ln_id,jdbcType=VARCHAR},#{wt_id,jdbcType=VARCHAR},#{record_date},#{alertrule_id,jdbcType=VARCHAR},#{alertrule_name,jdbcType=VARCHAR}," +
|
|
|
+ "#{total,jdbcType=INTEGER},#{average_quantity,jdbcType=DOUBLE},#{part,jdbcType=VARCHAR}) ")
|
|
|
public int insertWindturbineBjCount(Windturbinebjcount windturbinebjcount);
|
|
|
|
|
|
|
|
|
- @Select(" select * from WindturbinebjCount where alertruleid=#{alertruleid} and lnid=#{lnid} ")
|
|
|
- public List<Windturbinebjcount> queryWindturbinebjCountByLineAndAlertrule(@Param(value = "alertruleid") String alertruleid, @Param(value = "lnid")String lnid);
|
|
|
+ @Select(" select * from pro_econ_windturbine_warn_count where alertrule_id=#{alertrule_id} and ln_id=#{ln_id} ")
|
|
|
+ public List<Windturbinebjcount> queryWindturbinebjCountByLineAndAlertrule(@Param(value = "alertrule_id") String alertrule_id, @Param(value = "ln_id")String ln_id);
|
|
|
|
|
|
- @Select(" select lnid from Windturbinebjcount where alertruleid=#{alertruleid} group by lnid ")
|
|
|
- public List<String> queryWindturbinebjCountLine(@Param(value = "alertruleid") String alertruleid);
|
|
|
+ @Select(" select ln_id from pro_econ_windturbine_warn_count where alertrule_id=#{alertrule_id} group by ln_id ")
|
|
|
+ public List<String> queryWindturbinebjCountLine(@Param(value = "alertrule_id") String alertrule_id);
|
|
|
|
|
|
|
|
|
|
|
|
- @Delete(" delete from Windturbinebjcount where recodedate=#{recodedate} ")
|
|
|
- public int deleteWindturbinebjcount(@Param(value = "recodedate") Date recodedate);
|
|
|
+ @Delete(" delete from pro_econ_windturbine_warn_count where record_date=#{record_date} ")
|
|
|
+ public int deleteWindturbinebjcount(@Param(value = "record_date") Date record_date);
|
|
|
|
|
|
|
|
|
|