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