|
|
|
|
@ -1,21 +1,23 @@
|
|
|
|
|
<?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">
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.ruoyi.szxc.mapper.SzxcCsFwMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="SzxcCsFw" id="SzxcCsFwResult">
|
|
|
|
|
<result property="csId" column="cs_id" />
|
|
|
|
|
<result property="fwId" column="fw_id" />
|
|
|
|
|
<result property="fwName" column="fw_name" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectSzxcCsFwVo">
|
|
|
|
|
select cs_id, fw_id from szxc_cs_fw
|
|
|
|
|
select cs_id, fw_id, fw_name from szxc_cs_fw
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectSzxcCsFwList" parameterType="SzxcCsFw" resultMap="SzxcCsFwResult">
|
|
|
|
|
<include refid="selectSzxcCsFwVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="fwName != null and fwName != ''"> and fw_name like concat('%', #{fwName}, '%')</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
@ -29,10 +31,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="csId != null">cs_id,</if>
|
|
|
|
|
<if test="fwId != null">fw_id,</if>
|
|
|
|
|
<if test="fwName != null and fwName != ''">fw_name,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="csId != null">#{csId},</if>
|
|
|
|
|
<if test="fwId != null">#{fwId},</if>
|
|
|
|
|
<if test="fwName != null and fwName != ''">#{fwName},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
@ -40,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
update szxc_cs_fw
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="fwId != null">fw_id = #{fwId},</if>
|
|
|
|
|
<if test="fwName != null and fwName != ''">fw_name = #{fwName},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where cs_id = #{csId}
|
|
|
|
|
</update>
|
|
|
|
|
|