This commit is contained in:
mashuai 2023-12-08 13:31:54 +08:00
parent d0cf721763
commit 16ea51a34d
3 changed files with 7 additions and 6 deletions

View File

@ -26,7 +26,6 @@ import javax.servlet.http.HttpServletResponse;
* @author xsheng * @author xsheng
* @date 2023-12-02 * @date 2023-12-02
*/ */
@Api(tags = "装备数据接口")
@RestController @RestController
@RequestMapping("/dev") @RequestMapping("/dev")
@Api(value = "设备信息",tags = "设备管理") @Api(value = "设备信息",tags = "设备管理")

View File

@ -5,7 +5,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.bonus.zlpt.home.mapper.BmCarouselSetMapper"> <mapper namespace="com.bonus.zlpt.home.mapper.BmCarouselSetMapper">
<sql id="selectBmCarouseVo"> <sql id="selectBmCarouseVo">
select id, car_name, car_url, type, open_url, bc.status, bc.create_time, su.user_name AS createBy, sort, is_active select bc.id, bc.car_name, bc.car_url, bc.type, bc.open_url, bc.status, bc.create_time, su.user_name AS createBy, bc.sort, bc.is_active
from bm_carousel_set bc from bm_carousel_set bc
left join sys_user su on bc.creator = su.user_id left join sys_user su on bc.creator = su.user_id
</sql> </sql>
@ -59,12 +59,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
BETWEEN date_format( #{beginTime}, '%Y-%m-%d' ) BETWEEN date_format( #{beginTime}, '%Y-%m-%d' )
and date_format( #{endTime}, '%Y-%m-%d' ) and date_format( #{endTime}, '%Y-%m-%d' )
</if> </if>
and bc.is_active = '1'
</where> </where>
ORDER BY CASE WHEN sort IS NULL THEN 1 ELSE 0 END, sort ORDER BY CASE WHEN bc.sort IS NULL THEN 1 ELSE 0 END, bc.sort
</select> </select>
<select id="selectListById" resultType="com.bonus.zlpt.home.pojo.BmCarouselSet"> <select id="selectListById" resultType="com.bonus.zlpt.home.pojo.BmCarouselSet">
<include refid="selectBmCarouseVo"/> <include refid="selectBmCarouseVo"/>
where id = #{id} where bc.id = #{id} and bc.is_active = '1'
</select> </select>
</mapper> </mapper>

View File

@ -5,7 +5,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.bonus.zlpt.home.mapper.BmTopicInfoMapper"> <mapper namespace="com.bonus.zlpt.home.mapper.BmTopicInfoMapper">
<sql id="selectBmTopicVo"> <sql id="selectBmTopicVo">
select id, topic_name, type, view_num, content, is_active, su.user_name AS creator, bt.create_time select bt.id, bt.topic_name, bt.type, bt.view_num, bt.content, bt.is_active, su.user_name AS creator, bt.create_time
from bm_topic_info bt from bm_topic_info bt
left join sys_user su on bt.creator = su.user_id left join sys_user su on bt.creator = su.user_id
</sql> </sql>
@ -55,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectListById" resultType="com.bonus.zlpt.home.pojo.BmTopicInfo"> <select id="selectListById" resultType="com.bonus.zlpt.home.pojo.BmTopicInfo">
<include refid="selectBmTopicVo"/> <include refid="selectBmTopicVo"/>
where id = #{id} where bt.id = #{id} and bt.is_active = '1'
</select> </select>
<select id="selectSpecialInfoList" resultType="com.bonus.zlpt.home.pojo.BmTopicInfo"> <select id="selectSpecialInfoList" resultType="com.bonus.zlpt.home.pojo.BmTopicInfo">
@ -69,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
BETWEEN date_format( #{beginTime}, '%Y-%m-%d' ) BETWEEN date_format( #{beginTime}, '%Y-%m-%d' )
and date_format( #{endTime}, '%Y-%m-%d' ) and date_format( #{endTime}, '%Y-%m-%d' )
</if> </if>
and bt.is_active = '1'
</where> </where>
</select> </select>
</mapper> </mapper>