| | |
| | | where date_format(create_time, '%Y%m%d%H') = ${time}; |
| | | </select> |
| | | |
| | | <insert id="insert" parameterType="com.yssh.entity.VocVals" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into voc_vals (x, y, val, create_time) values |
| | | (${x}, ${y}, ${val}, ${createTime}); |
| | | <insert id="insert" parameterType="com.yssh.entity.VocVals" useGeneratedKeys="false" keyProperty="id"> |
| | | insert into voc_vals (id, x, y, val, create_time) values |
| | | (${id}, ${x}, ${y}, ${val}, ${createTime}); |
| | | </insert> |
| | | |
| | | <insert id="inserts" parameterType="com.yssh.entity.VocVals" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into voc_vals (x, y, val, create_time) values |
| | | <insert id="inserts" parameterType="com.yssh.entity.VocVals" useGeneratedKeys="false" keyProperty="id"> |
| | | insert into voc_vals (id, x, y, val, create_time) values |
| | | <foreach collection="list" item="item" index="index" separator=","> |
| | | (#{item.x},#{item.y},#{item.val},#{item.createTime}) |
| | | (${item.id}, #{item.x},#{item.y},#{item.val},#{item.createTime}) |
| | | </foreach> |
| | | </insert> |
| | | |