feat: 迁移国内标准法规部分2 创建国内标准法规
This commit is contained in:
+80
@@ -0,0 +1,80 @@
|
||||
<?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.sarStandPutTime.dao.SarStandPutTimeDao">
|
||||
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.adc.da.slrs.sarStandPutTime.entity.SarStandPutTime" >
|
||||
<id column="id" property="id" />
|
||||
<result column="stand_id" property="standId" />
|
||||
<result column="time_name" property="timeName" />
|
||||
<result column="put_time" property="putTime" />
|
||||
<result column="time_type" property="timeType" />
|
||||
<result column="order_num" property="orderNum" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_STAND_PUT_TIME table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, stand_id, time_name, put_time, time_type, order_num, creation_time
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="standId != null" >
|
||||
and stand_id ${standIdOperator} #{standId}
|
||||
</if>
|
||||
<if test="timeName != null" >
|
||||
and time_name ${timeNameOperator} #{timeName}
|
||||
</if>
|
||||
<if test="putTime != null" >
|
||||
and put_time ${putTimeOperator} #{putTime}
|
||||
</if>
|
||||
<if test="putTime1 != null" >
|
||||
and put_time >= #{putTime1}
|
||||
</if>
|
||||
<if test="putTime2 != null" >
|
||||
and put_time <= #{putTime2}
|
||||
</if>
|
||||
<if test="timeType != null" >
|
||||
and time_type ${timeTypeOperator} #{timeType}
|
||||
</if>
|
||||
<if test="orderNum != null" >
|
||||
and order_num ${orderNumOperator} #{orderNum}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<delete id="deleteByStandId" parameterType="java.lang.String">
|
||||
delete from SAR_STAND_PUT_TIME
|
||||
where stand_id = #{value}
|
||||
</delete>
|
||||
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
insert into SAR_STAND_PUT_TIME
|
||||
(id, stand_id, time_name, put_time, time_type,creation_time)
|
||||
values
|
||||
<foreach collection="list" item="item" index="index" separator=",">
|
||||
(#{item.id, jdbcType=VARCHAR},
|
||||
#{item.standId, jdbcType=VARCHAR},
|
||||
#{item.timeName, jdbcType=VARCHAR},
|
||||
#{item.putTime, jdbcType=VARCHAR},
|
||||
#{item.timeType, jdbcType=VARCHAR},
|
||||
#{item.creationTime, jdbcType=TIMESTAMP}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user