Browse Source

解决新增不了问题

master
maotiantian 1 day ago
parent
commit
c66a5cb9d7
  1. 8
      chenhai-system/src/main/resources/mapper/muhu/CarouselAdsMapper.xml
  2. 8
      chenhai-system/src/main/resources/mapper/muhu/DisasterWarningMapper.xml

8
chenhai-system/src/main/resources/mapper/muhu/CarouselAdsMapper.xml

@ -86,7 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<insert id="insertCarouselAds" parameterType="CarouselAds" useGeneratedKeys="true" keyProperty="carouselId">
insert into carousel_ads
insert into muhu_carousel_ads
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">title,</if>
<if test="subtitle != null">subtitle,</if>
@ -156,7 +156,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert>
<update id="updateCarouselAds" parameterType="CarouselAds">
update carousel_ads
update muhu_carousel_ads
<trim prefix="SET" suffixOverrides=",">
<if test="title != null and title != ''">title = #{title},</if>
<if test="subtitle != null">subtitle = #{subtitle},</if>
@ -194,11 +194,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete id="deleteCarouselAdsByCarouselId" parameterType="Long">
delete from carousel_ads where carousel_id = #{carouselId}
delete from muhu_carousel_ads where carousel_id = #{carouselId}
</delete>
<delete id="deleteCarouselAdsByCarouselIds" parameterType="String">
delete from carousel_ads where carousel_id in
delete from muhu_carousel_ads where carousel_id in
<foreach item="carouselId" collection="array" open="(" separator="," close=")">
#{carouselId}
</foreach>

8
chenhai-system/src/main/resources/mapper/muhu/DisasterWarningMapper.xml

@ -44,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<insert id="insertDisasterWarning" parameterType="DisasterWarning" useGeneratedKeys="true" keyProperty="id">
insert into disaster_warning
insert into muhu_disaster_warning
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="warningType != null and warningType != ''">warning_type,</if>
<if test="warningLevel != null and warningLevel != ''">warning_level,</if>
@ -72,7 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert>
<update id="updateDisasterWarning" parameterType="DisasterWarning">
update disaster_warning
update muhu_disaster_warning
<trim prefix="SET" suffixOverrides=",">
<if test="warningType != null and warningType != ''">warning_type = #{warningType},</if>
<if test="warningLevel != null and warningLevel != ''">warning_level = #{warningLevel},</if>
@ -89,11 +89,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete id="deleteDisasterWarningById" parameterType="Long">
delete from disaster_warning where id = #{id}
delete from muhu_disaster_warning where id = #{id}
</delete>
<delete id="deleteDisasterWarningByIds" parameterType="String">
delete from disaster_warning where id in
delete from muhu_disaster_warning where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>

Loading…
Cancel
Save