潘志宝
2024-12-10 a440ec3bfaa1363f5841100b8948d852971a2eb1
提交 | 用户 | 时间
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">
5     <select id="getMmModelArithSettings" resultType="com.iailab.module.model.mcs.pre.entity.MmModelArithSettingsEntity"
6             parameterType="map">
7         SELECT
8             id,
9             modelid,
10             `key`,
11             `value`,
12             name,
13             valuetype
14         FROM t_mm_model_arith_settings
15         WHERE
16             modelid = #{modelid}
17     </select>
18     <insert id="insertList" parameterType="list">
19         INSERT INTO
20         t_mm_model_arith_settings
21         ( id, modelid, `key`, `value`, name, valuetype )
22         VALUES
23         <foreach collection="list" item="item" separator=",">
24             (#{item.id}, #{item.modelid}, #{item.key}, #{item.value}, #{item.name}, #{item.valuetype})
25         </foreach>
26     </insert>
27 </mapper>