增加修复模式组合回显问题

master
elliott 2 years ago
parent 7c6a792525
commit 7255692b5a

@ -23,6 +23,8 @@ public class WxModeCombineInfo extends BaseEntity
/** 关联模式ID */
@Excel(name = "关联模式ID")
private Long modeId;
/** 关联模式组合ID */
private Long combineModeId;
/** 组合时间 */
@Excel(name = "组合时间")
@ -91,6 +93,14 @@ public class WxModeCombineInfo extends BaseEntity
this.technologyArray = technologyArray;
}
public Long getCombineModeId() {
return combineModeId;
}
public void setCombineModeId(Long combineModeId) {
this.combineModeId = combineModeId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="id" column="id" />
<result property="modeId" column="mode_id" />
<result property="combine" column="combine" />
<result property="combineModeId" column="combine_mode_id" />
<result property="technologyInfo" column="technology_info" />
<result property="effectContent" column="effect_content" />
<result property="createTime" column="create_time" />
@ -15,13 +16,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectWxModeCombineInfoVo">
select id, mode_id, combine, technology_info, effect_content, create_time, create_by from wx_mode_combine_info
select id, combine_mode_id,mode_id, combine, technology_info, effect_content, create_time, create_by from wx_mode_combine_info
</sql>
<select id="selectWxModeCombineInfoList" parameterType="WxModeCombineInfo" resultMap="WxModeCombineInfoResult">
<include refid="selectWxModeCombineInfoVo"/>
<where>
<if test="modeId != null "> and mode_id = #{modeId}</if>
<if test="combineModeId != null "> and combine_mode_id = #{combineModeId}</if>
<if test="combine != null "> and combine = #{combine}</if>
<if test="technologyInfo != null and technologyInfo != ''"> and technology_info = #{technologyInfo}</if>
<if test="effectContent != null and effectContent != ''"> and effect_content = #{effectContent}</if>
@ -39,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="modeId != null">mode_id,</if>
<if test="combineModeId != null">combine_mode_id,</if>
<if test="combine != null">combine,</if>
<if test="technologyInfo != null">technology_info,</if>
<if test="effectContent != null">effect_content,</if>
@ -48,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="modeId != null">#{modeId},</if>
<if test="combineModeId != null">#{combineModeId},</if>
<if test="combine != null">#{combine},</if>
<if test="technologyInfo != null">#{technologyInfo},</if>
<if test="effectContent != null">#{effectContent},</if>
@ -60,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update wx_mode_combine_info
<trim prefix="SET" suffixOverrides=",">
<if test="modeId != null">mode_id = #{modeId},</if>
<if test="combineModeId != null">combine_mode_id = #{combineModeId},</if>
<if test="combine != null">combine = #{combine},</if>
<if test="technologyInfo != null">technology_info = #{technologyInfo},</if>
<if test="effectContent != null">effect_content = #{effectContent},</if>

@ -351,7 +351,7 @@
<el-form-item label="模式名称" prop="modeName" label-width="110px" style="margin-top: 10px">
<el-row>
<el-col :span ="12">
<el-select v-model="item.modeId">
<el-select v-model="item.combineModeId">
<el-option
v-for="mode in combineModeList"
:key="mode.id"

Loading…
Cancel
Save