dongyukun
6 天以前 ed8fc5f674544d3af63c6f68093ffc038385c493
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 
<mapper namespace="com.iailab.module.model.mcs.pre.dao.MmModelArithSettingsDao">
    <update id="updatePyFile">
        update t_mm_model_arith_settings set value = #{value} where `key` = 'pyFile' and `value` like CONCAT(#{likeValue},'%')
    </update>
    <select id="getMmModelArithSettings" resultType="com.iailab.module.model.mcs.pre.entity.MmModelArithSettingsEntity"
            parameterType="map">
        SELECT
            id,
            modelid,
            `key`,
            `value`,
            name,
            valuetype
        FROM t_mm_model_arith_settings
        WHERE
            modelid = #{modelid}
    </select>
    <insert id="insertList" parameterType="list">
        INSERT INTO
        t_mm_model_arith_settings
        ( id, modelid, `key`, `value`, name, valuetype )
        VALUES
        <foreach collection="list" item="item" separator=",">
            (#{item.id}, #{item.modelid}, #{item.key}, #{item.value}, #{item.name}, #{item.valuetype})
        </foreach>
    </insert>
</mapper>