fix copy bug & add 拷贝开关字段 1-开启 不拷贝 不是1抽取到的都拷贝(空或者0 都拷贝)

This commit is contained in:
limqhz
2022-02-21 14:41:09 +08:00
parent 0e4a271200
commit 348121af3a
8 changed files with 48 additions and 16 deletions

View File

@@ -35,6 +35,7 @@
<result column="copy_week" property="copyWeek"/>
<result column="copy_time" property="copyTime"/>
<result column="copy_target" property="copyTarget"/>
<result column="copy_control" property="copyControl"/>
</resultMap>
<resultMap id="VenueDtoMap" type="com.sv.dto.api.VenueDTO">
@@ -64,6 +65,7 @@
<result column="copy_week" property="copyWeek"/>
<result column="copy_time" property="copyTime"/>
<result column="copy_target" property="copyTarget"/>
<result column="copy_control" property="copyControl"/>
<result column="code_url" property="codeUrl"></result>
<association property="cards" select="com.sv.mapper.VenueCardMapper.findByVenueId"
column="{venueId = id,venueType=type}"></association>
@@ -126,7 +128,8 @@
limit_no_week,
copy_week,
copy_time,
copy_target
copy_target,
copy_control
</sql>
<!-- 字段值 -->
@@ -156,7 +159,8 @@
#{limit_no_week, jdbcType=TINYINT},
#{copy_week, jdbcType=TINYINT},
#{copy_time, jdbcType=TIMESTAMP},
#{copy_target, jdbcType=TINYINT}
#{copy_target, jdbcType=TINYINT},
#{copy_control, jdbcType=TINYINT}
</sql>
<!-- 查询全部记录 -->
@@ -300,6 +304,9 @@
<if test="copyTarget != null">
copy_target,
</if>
<if test="copyControl != null">
copy_control,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@@ -515,6 +522,9 @@
<if test="copyTarget != null">
copy_target = #{copyTarget},
</if>
<if test="copyControl != null">
copy_control = #{copyControl},
</if>
</set>
WHERE id = #{id}
</update>
@@ -557,7 +567,8 @@
limit_no_week,
copy_week,
copy_time,
copy_target
copy_target,
copy_control
FROM
sv_venue
WHERE