Merge branch 'feature-20240104' of https://gitee.com/yunqiang_technology/floatomcloud into feature-20240104
commit
d41b7aaf59
@ -0,0 +1,63 @@
|
|||||||
|
package com.flossom.common.core.mapper;
|
||||||
|
|
||||||
|
import com.flossom.common.core.domain.entity.WxInstrumentLining;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 仪器与膜布的关联Mapper接口
|
||||||
|
*
|
||||||
|
* @author flossom
|
||||||
|
* @date 2024-03-27
|
||||||
|
*/
|
||||||
|
public interface WxInstrumentLiningMapper {
|
||||||
|
/**
|
||||||
|
* 查询仪器与膜布的关联
|
||||||
|
*
|
||||||
|
* @param id 仪器与膜布的关联主键
|
||||||
|
* @return 仪器与膜布的关联
|
||||||
|
*/
|
||||||
|
public WxInstrumentLining selectWxInstrumentLiningById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询仪器与膜布的关联列表
|
||||||
|
*
|
||||||
|
* @param wxInstrumentLining 仪器与膜布的关联
|
||||||
|
* @return 仪器与膜布的关联集合
|
||||||
|
*/
|
||||||
|
public List<WxInstrumentLining> selectWxInstrumentLiningList(WxInstrumentLining wxInstrumentLining);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增仪器与膜布的关联
|
||||||
|
*
|
||||||
|
* @param wxInstrumentLining 仪器与膜布的关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertWxInstrumentLining(WxInstrumentLining wxInstrumentLining);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改仪器与膜布的关联
|
||||||
|
*
|
||||||
|
* @param wxInstrumentLining 仪器与膜布的关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateWxInstrumentLining(WxInstrumentLining wxInstrumentLining);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除仪器与膜布的关联
|
||||||
|
*
|
||||||
|
* @param id 仪器与膜布的关联主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWxInstrumentLiningById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除仪器与膜布的关联
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteWxInstrumentLiningByIds(Long[] ids);
|
||||||
|
|
||||||
|
public int deleteByInstrumentId(Long instrumentId);
|
||||||
|
}
|
||||||
@ -0,0 +1,78 @@
|
|||||||
|
<?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.WxInstrumentLiningMapper">
|
||||||
|
|
||||||
|
<resultMap type="WxInstrumentLining" id="WxInstrumentLiningResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="instrumentId" column="instrument_id" />
|
||||||
|
<result property="liningId" column="lining_id" />
|
||||||
|
<result property="status" column="status" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectWxInstrumentLiningVo">
|
||||||
|
select id, instrument_id, lining_id, status, create_by, create_time from wx_instrument_lining
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectWxInstrumentLiningList" parameterType="WxInstrumentLining" resultMap="WxInstrumentLiningResult">
|
||||||
|
<include refid="selectWxInstrumentLiningVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="instrumentId != null "> and instrument_id = #{instrumentId}</if>
|
||||||
|
<if test="liningId != null "> and lining_id = #{liningId}</if>
|
||||||
|
<if test="status != null "> and status = #{status}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectWxInstrumentLiningById" parameterType="Long" resultMap="WxInstrumentLiningResult">
|
||||||
|
<include refid="selectWxInstrumentLiningVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertWxInstrumentLining" parameterType="WxInstrumentLining" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into wx_instrument_lining
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="instrumentId != null">instrument_id,</if>
|
||||||
|
<if test="liningId != null">lining_id,</if>
|
||||||
|
<if test="status != null">status,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="instrumentId != null">#{instrumentId},</if>
|
||||||
|
<if test="liningId != null">#{liningId},</if>
|
||||||
|
<if test="status != null">#{status},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateWxInstrumentLining" parameterType="WxInstrumentLining">
|
||||||
|
update wx_instrument_lining
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="instrumentId != null">instrument_id = #{instrumentId},</if>
|
||||||
|
<if test="liningId != null">lining_id = #{liningId},</if>
|
||||||
|
<if test="status != null">status = #{status},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteWxInstrumentLiningById" parameterType="Long">
|
||||||
|
delete from wx_instrument_lining where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteWxInstrumentLiningByIds" parameterType="String">
|
||||||
|
delete from wx_instrument_lining where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteByInstrumentId" parameterType="Long">
|
||||||
|
delete from wx_instrument_lining where instrument_id = #{instrumentId}
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue