模式新增 换档时间、蜂鸣提醒时间、震动提醒时间
parent
2d4f2af247
commit
03bc97a428
@ -0,0 +1,65 @@
|
||||
package com.flossom.common.core.mapper;
|
||||
|
||||
import com.flossom.common.core.domain.entity.WxModeGear;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* FR200 模式挡位切换配置Mapper接口
|
||||
*
|
||||
* @author flossom
|
||||
* @date 2024-03-15
|
||||
*/
|
||||
public interface WxModeGearMapper {
|
||||
/**
|
||||
* 查询FR200 模式挡位切换配置
|
||||
*
|
||||
* @param id FR200 模式挡位切换配置主键
|
||||
* @return FR200 模式挡位切换配置
|
||||
*/
|
||||
public WxModeGear selectWxModeGearById(Long id);
|
||||
|
||||
/**
|
||||
* 查询FR200 模式挡位切换配置列表
|
||||
*
|
||||
* @param wxModeGear FR200 模式挡位切换配置
|
||||
* @return FR200 模式挡位切换配置集合
|
||||
*/
|
||||
public List<WxModeGear> selectWxModeGearList(WxModeGear wxModeGear);
|
||||
|
||||
/**
|
||||
* 新增FR200 模式挡位切换配置
|
||||
*
|
||||
* @param wxModeGear FR200 模式挡位切换配置
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertWxModeGear(WxModeGear wxModeGear);
|
||||
|
||||
/**
|
||||
* 修改FR200 模式挡位切换配置
|
||||
*
|
||||
* @param wxModeGear FR200 模式挡位切换配置
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateWxModeGear(WxModeGear wxModeGear);
|
||||
|
||||
/**
|
||||
* 删除FR200 模式挡位切换配置
|
||||
*
|
||||
* @param id FR200 模式挡位切换配置主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeGearById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除FR200 模式挡位切换配置
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteWxModeGearByIds(Long[] ids);
|
||||
|
||||
void deleteWxModeGearByModeId(@Param("modeId") Long modeId);
|
||||
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.flossom.common.core.mapper.WxModeGearMapper">
|
||||
|
||||
<resultMap type="WxModeGear" id="WxModeGearResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="modeId" column="mode_id" />
|
||||
<result property="second" column="second" />
|
||||
<result property="type" column="type" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWxModeGearVo">
|
||||
select id, mode_id, second, type, create_time, create_by from wx_mode_gear
|
||||
</sql>
|
||||
|
||||
<select id="selectWxModeGearList" parameterType="WxModeGear" resultMap="WxModeGearResult">
|
||||
<include refid="selectWxModeGearVo"/>
|
||||
<where>
|
||||
<if test="modeId != null "> and mode_id = #{modeId}</if>
|
||||
<if test="second != null "> and second = #{second}</if>
|
||||
<if test="type != null "> and type = #{type}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectWxModeGearById" parameterType="Long" resultMap="WxModeGearResult">
|
||||
<include refid="selectWxModeGearVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertWxModeGear" parameterType="WxModeGear" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into wx_mode_gear
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="modeId != null">mode_id,</if>
|
||||
<if test="second != null">second,</if>
|
||||
<if test="type != null">type,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="modeId != null">#{modeId},</if>
|
||||
<if test="second != null">#{second},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateWxModeGear" parameterType="WxModeGear">
|
||||
update wx_mode_gear
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="modeId != null">mode_id = #{modeId},</if>
|
||||
<if test="second != null">second = #{second},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteWxModeGearById" parameterType="Long">
|
||||
delete from wx_mode_gear where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWxModeGearByIds" parameterType="String">
|
||||
delete from wx_mode_gear where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteWxModeGearByModeId" parameterType="Long">
|
||||
delete from wx_mode_gear where mode_id = #{modeId}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue