Commit cb851ec1 by wnb0128

车家智能数据服务 触发条件指令上下架功能实现--think.wang

1 parent ecc586e6
package com.glsx.smart.dao.entity;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
/**
* <p>Description:
......@@ -58,4 +59,10 @@ public class SmartScenceSupstatus {
*/
@Column(name = "`type`")
private String type;
/**
* 状态 1上线 0下线
*/
@Column(name = "status")
private Byte status;
}
......@@ -65,7 +65,7 @@
<select id="getAllConditionList" resultMap="BaseResultMap">
select <include refid="Base_Column_List" />
from smart_product_type where id in (select distinct product_id from smart_scence_supstatus)
from smart_product_type where id in (select distinct product_id from smart_scence_supstatus where `status` = 1)
</select>
<select id="getAllContentList" resultMap="BaseResultMap">
......
......@@ -11,15 +11,16 @@
<result column="order_code" jdbcType="VARCHAR" property="orderCode" />
<result column="order_value" jdbcType="VARCHAR" property="orderValue" />
<result column="type" jdbcType="VARCHAR" property="type" />
<result column="status" jdbcType="TINYINT" property="status"/>
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated generated on Fri Mar 19 17:23:04 CST 2021.-->
id, scene_supstatus_code, scene_supstatus_value, product_id, order_code, order_value,
`type`
`type`, `status`
</sql>
<select id="getListByProductId" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from smart_scence_supstatus t where t.product_id = #{productId,jdbcType=VARCHAR}
from smart_scence_supstatus t where t.`status` = 1 and t.product_id = #{productId,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!