refactor(portal): 移除XML中web_code字段的更新逻辑

- 注释掉了HwWebMapper.xml中web_code字段的更新语句
- 注释掉了HwWebMapper1.xml中web_code字段的更新语句
- 在HwWebServiceImpl.java的updateHwWeb方法上添加了@Transactional注解
- 在H1.java的updatewWebServiceImplHwWeb方法上添加了@Transactional注解
master
zangch@mesnac.com 2 months ago
parent a1894210d5
commit c535c2a7a4

@ -6,6 +6,7 @@ import org.springframework.stereotype.Service;
import com.ruoyi.portal.mapper.HwWebMapper;
import com.ruoyi.portal.domain.HwWeb;
import com.ruoyi.portal.service.IHwWebService;
import org.springframework.transaction.annotation.Transactional;
/**
* haiweijsonService
@ -64,6 +65,7 @@ public class HwWebServiceImpl implements IHwWebService
* @return
*/
@Override
@Transactional( rollbackFor = Exception.class )
public int updateHwWeb(HwWeb hwWeb)
{
HwWeb codeWeb = new HwWeb();

@ -8,6 +8,7 @@ import org.springframework.stereotype.Service;
import java.util.List;
import com.ruoyi.portal.domain.HwWeb1;
import com.ruoyi.portal.domain.HwWeb;
import org.springframework.transaction.annotation.Transactional;
/**
* haiweijsonService
@ -65,6 +66,7 @@ public class HwWebServiceImpl1 implements IHwWebService1
* @return
*/
@Override
@Transactional( rollbackFor = Exception.class )
public int updateHwWeb(HwWeb1 hwWeb1)
{
HwWeb1 codeWeb = new HwWeb1();

@ -49,7 +49,7 @@
<trim prefix="SET" suffixOverrides=",">
<if test="webJson != null">web_json = #{webJson},</if>
<if test="webJsonString != null">web_json_string = #{webJsonString},</if>
<if test="webCode != null">web_code = #{webCode},</if>
<!-- <if test="webCode != null">web_code = #{webCode},</if>-->
</trim>
where web_code = #{webCode}
</update>

@ -55,7 +55,7 @@
<trim prefix="SET" suffixOverrides=",">
<if test="webJson != null">web_json = #{webJson},</if>
<if test="webJsonString != null">web_json_string = #{webJsonString},</if>
<if test="webCode != null">web_code = #{webCode},</if>
<!-- <if test="webCode != null">web_code = #{webCode},</if>-->
<if test="deviceId != null">device_id = #{deviceId},</if>
</trim>
where web_code = #{webCode}

Loading…
Cancel
Save