feat: 迁移国内标准法规部分2 创建国内标准法规
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?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.adc.da.slrs.sarStandVal.dao.SarStandValDao">
|
||||
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarStandVal.entity.SarStandVal" >
|
||||
<id column="id" property="id" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="property_val" property="propertyVal" />
|
||||
<result column="property_type" property="propertyType" />
|
||||
<result column="stand_id" property="standId" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_STAND_VAL table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
modify_time, creation_time, valid_flag, property_val, property_type, stand_id, id
|
||||
</sql>
|
||||
|
||||
<delete id="deleteDataByStandid" parameterType="java.lang.String">
|
||||
delete from SAR_STAND_VAL
|
||||
where stand_id = #{standId}
|
||||
</delete>
|
||||
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
insert into SAR_STAND_VAL
|
||||
(<include refid="Base_Column_List" />)
|
||||
values
|
||||
<foreach collection="list" item="item" index="index" separator=",">
|
||||
(#{item.modifyTime, jdbcType=TIMESTAMP},
|
||||
#{item.creationTime, jdbcType=TIMESTAMP},
|
||||
#{item.validFlag, jdbcType=INTEGER},
|
||||
#{item.propertyVal, jdbcType=VARCHAR},
|
||||
#{item.propertyType, jdbcType=VARCHAR},
|
||||
#{item.standId, jdbcType=VARCHAR},
|
||||
#{item.id, jdbcType=VARCHAR})
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user