|
@@ -1,47 +0,0 @@
|
|
-<?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.nationrel.alta.dao.AltaColumnMapper">
|
|
|
|
-
|
|
|
|
- <resultMap id="BaseResultMap" type="com.nationrel.modules.alta.entity.AltaColumn">
|
|
|
|
- <id column="analysis_id" property="analysisId" jdbcType="CHAR"/>
|
|
|
|
- <id column="column_id" property="columnId" jdbcType="CHAR"/>
|
|
|
|
- <result column="name" property="name" jdbcType="VARCHAR"/>
|
|
|
|
- <result column="unit" property="unit" jdbcType="VARCHAR"/>
|
|
|
|
- <result column="select_status" property="selectStatus" jdbcType="INTEGER"/>
|
|
|
|
- <result column="show_status" property="showStatus" jdbcType="INTEGER"/>
|
|
|
|
- <result column="stress_level" property="stressLevel" jdbcType="DOUBLE"/>
|
|
|
|
- <result column="general_code" property="generalCode" jdbcType="VARCHAR"/>
|
|
|
|
- </resultMap>
|
|
|
|
-
|
|
|
|
- <sql id="All_Column_List">
|
|
|
|
- analysis_id,
|
|
|
|
- column_id,
|
|
|
|
- name,
|
|
|
|
- unit,
|
|
|
|
- select_status,
|
|
|
|
- show_status,
|
|
|
|
- stress_level,
|
|
|
|
- general_code,
|
|
|
|
- </sql>
|
|
|
|
-
|
|
|
|
- <!-- 批量修改 -->
|
|
|
|
- <update id="batchUpdate" parameterType="java.util.List">
|
|
|
|
- <foreach collection="list" item="item" index="index" separator=";">
|
|
|
|
- update alta_column
|
|
|
|
- <set>
|
|
|
|
- name = #{item.name},
|
|
|
|
- unit = #{item.unit},
|
|
|
|
- select_status= #{item.selectStatus},
|
|
|
|
- show_status= #{item.showStatus},
|
|
|
|
- stress_level= #{item.stressLevel},
|
|
|
|
- general_code= #{item.generalCode}
|
|
|
|
- </set>
|
|
|
|
- <where>
|
|
|
|
- analysis_id = #{item.analysisId}
|
|
|
|
- and column_id = #{item.columnId}
|
|
|
|
- </where>
|
|
|
|
- </foreach>
|
|
|
|
- </update>
|
|
|
|
-</mapper>
|
|
|