| | |
| | | <!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 |