DS
潘志宝
2024-08-23 0fbd01c6fe5386e454d4053df161b01e8b42f423
iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/StModelRunlogDao.xml
@@ -2,29 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.iailab.module.mcs.dao.StModelRunlogDao">
    <insert id="migrationModelRunlog"
            parameterType="java.util.List">
        INSERT INTO `t_st_model_runlog` (id, `modelid`, `run_time`, `run_type`, `run_result`)
        VALUES
        <foreach item="item" collection="list" separator=",">
            (#{item.id},#{item.modelid},#{item.runTime},#{item.runType},#{item.runCommonResult})
        </foreach>
    </insert>
    <select id="getLastFxLog" resultType="com.iailab.module.mcs.dto.StModelRunlogDTO">
        select *
        from t_st_model_runlog
        where run_type in ('separation_control','DensityPredict')
        order by run_time desc
        limit 10
    </select>
    <select id="getLastJyLog" resultType="com.iailab.module.mcs.dto.StModelRunlogDTO">
        select *
        from t_st_model_runlog
        where run_type in ('dosing_control','Dosingsystempre')
        order by run_time desc
        limit 10
    </select>
    <select id="getLastLog" parameterType="map" resultType="com.iailab.module.mcs.dto.StModelRunlogDTO">
        select *
        from t_st_model_runlog