根据仪器ID获取仪器模式带上是否new字段

master
382696293@qq.com 2 years ago
parent 63473f999a
commit a67825fd5d

@ -96,6 +96,8 @@ public class WxMode extends BaseEntity
private List<Long> lockCompanyTagArray = new ArrayList<Long>();
private Integer isNew;
public void setId(Long id)
{
@ -289,6 +291,14 @@ public class WxMode extends BaseEntity
this.combineData = combineData;
}
public Integer getIsNew() {
return isNew;
}
public void setIsNew(Integer isNew) {
this.isNew = isNew;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

@ -130,6 +130,8 @@ public class WxModeRet {
// 组合实体类
private List<WxModeCombineInfo> combineData;
private Integer isNew;
private List<Long> lockWechatTagArray = new ArrayList<Long>();
@ -319,4 +321,12 @@ public class WxModeRet {
public void setCombineData(List<WxModeCombineInfo> combineData) {
this.combineData = combineData;
}
public Integer getIsNew() {
return isNew;
}
public void setIsNew(Integer isNew) {
this.isNew = isNew;
}
}

@ -27,6 +27,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="remark" column="remark" />
</resultMap>
<resultMap type="WxMode" id="WxModeNewResult" extends="WxModeResult">
<result property="isNew" column="is_new" />
</resultMap>
<sql id="selectWxModeVo">
select id, instrument_type, instrument_model, mode_name, mode_desc, mode_banner, mode_video, mode_type, mode_class, is_cabin_mode, mode_time, preparation_video, began_video, pause_video, status, create_by, create_time, update_by, update_time, remark from wx_mode
</sql>
@ -51,9 +55,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="selectListByInstrumentId" parameterType="Long" resultMap="WxModeResult">
<select id="selectListByInstrumentId" parameterType="Long" resultMap="WxModeNewResult">
SELECT
DISTINCT mo.*, imo.mode_sort
DISTINCT mo.*, imo.mode_sort, imo.is_new
FROM
wx_mode mo
LEFT JOIN `wx_instrument_mode` imo ON imo.mode_id = mo.id

Loading…
Cancel
Save