|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- <?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.ruoyi.resource.mapper.TResourceOperationMapper">
-
- <resultMap type="TResourceOperation" id="TResourceOperationResult">
- <result property="id" column="fid" />
- <result property="dkbm" column="DKBM" />
- <result property="dkmc" column="DKMC" />
- <result property="dkdz" column="DKDZ" />
- <result property="dkxz" column="DKXZ" />
- <result property="dknz" column="DKNZ" />
- <result property="dkbz" column="DKBZ" />
- <result property="jymj" column="JYMJ" />
- <result property="jyfs" column="JYFS" />
- <result property="jydxlx" column="JYDXLX" />
- <result property="jydxmc" column="JYDXMC" />
- <result property="jydxzjlx" column="JYDXZJLX" />
- <result property="jydxzjhm" column="JYDXZJHM" />
- <result property="sfqdht" column="SFQDHT" />
- <result property="jykssj" column="JYKSSJ" />
- <result property="jyjssj" column="JYJSSJ" />
- <result property="cbje" column="CBJE" />
- <result property="dxje" column="DXJE" />
- <result property="sqje" column="SQJE" />
- <result property="nsy" column="NSY" />
- <result property="bzxx" column="BZXX" />
- <result property="dkImg" column="dk_img" />
- <result property="surveyStatus" column="survey_status" />
- <result property="importCode" column="import_code" />
- <result property="deptName" column="dept_name" />
- <result property="createBy" column="create_by" />
- <result property="createTime" column="create_time" />
- <result property="updateBy" column="update_by" />
- <result property="updateTime" column="update_time" />
- </resultMap>
-
- <sql id="selectTResourceOperationVo">
- select fid, DKBM, DKMC, DKDZ, DKXZ, DKNZ, DKBZ, JYMJ, JYFS, JYDXLX, JYDXMC, JYDXZJLX, JYDXZJHM, SFQDHT, JYKSSJ, JYJSSJ, CBJE, DXJE, SQJE, NSY, BZXX, dk_img, survey_status, import_code, dept_name, create_by, create_time, update_by, update_time from t_resource_operation
- </sql>
-
- <select id="selectTResourceOperationList" parameterType="TResourceOperation" resultMap="TResourceOperationResult">
- <include refid="selectTResourceOperationVo"/>
- <where>
- <if test="dkbm != null and dkbm != ''"> and DKBM = #{dkbm}</if>
- <if test="dkmc != null and dkmc != ''"> and DKMC = #{dkmc}</if>
- <if test="jyfs != null and jyfs != ''"> and JYFS = #{jyfs}</if>
- <if test="jydxlx != null and jydxlx != ''"> and JYDXLX = #{jydxlx}</if>
- <if test="jydxmc != null and jydxmc != ''"> and JYDXMC = #{jydxmc}</if>
- <if test="jydxzjlx != null and jydxzjlx != ''"> and JYDXZJLX = #{jydxzjlx}</if>
- <if test="jydxzjhm != null and jydxzjhm != ''"> and JYDXZJHM = #{jydxzjhm}</if>
- <if test="sfqdht != null and sfqdht != ''"> and SFQDHT = #{sfqdht}</if>
- <if test="surveyStatus != null and surveyStatus != ''"> and survey_status = #{surveyStatus}</if>
- <if test="importCode != null and importCode != ''"> and import_code like concat(#{importCode}, '%')</if>
- </where>
- </select>
-
- <select id="selectTResourceOperationById" parameterType="Long" resultMap="TResourceOperationResult">
- <include refid="selectTResourceOperationVo"/>
- where fid = #{id}
- </select>
-
-
- <select id="selectTResourceOperationByDkbm" parameterType="String" resultMap="TResourceOperationResult">
- <include refid="selectTResourceOperationVo"/>
- where dkbm = #{dkbm}
- </select>
-
- <insert id="insertTResourceOperation" parameterType="TResourceOperation" useGeneratedKeys="true" keyProperty="id">
- insert into t_resource_operation
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="dkbm != null and dkbm != ''">DKBM,</if>
- <if test="dkmc != null and dkmc != ''">DKMC,</if>
- <if test="dkdz != null">DKDZ,</if>
- <if test="dkxz != null">DKXZ,</if>
- <if test="dknz != null">DKNZ,</if>
- <if test="dkbz != null">DKBZ,</if>
- <if test="jymj != null">JYMJ,</if>
- <if test="jyfs != null">JYFS,</if>
- <if test="jydxlx != null">JYDXLX,</if>
- <if test="jydxmc != null">JYDXMC,</if>
- <if test="jydxzjlx != null">JYDXZJLX,</if>
- <if test="jydxzjhm != null">JYDXZJHM,</if>
- <if test="sfqdht != null">SFQDHT,</if>
- <if test="jykssj != null">JYKSSJ,</if>
- <if test="jyjssj != null">JYJSSJ,</if>
- <if test="cbje != null">CBJE,</if>
- <if test="dxje != null">DXJE,</if>
- <if test="sqje != null">SQJE,</if>
- <if test="nsy != null">NSY,</if>
- <if test="bzxx != null">BZXX,</if>
- <if test="dkImg != null">dk_img,</if>
- <if test="surveyStatus != null and surveyStatus != ''">survey_status,</if>
- <if test="importCode != null and importCode != ''">import_code,</if>
- <if test="deptName != null">dept_name,</if>
- <if test="createBy != null and createBy != ''">create_by,</if>
- <if test="createTime != null">create_time,</if>
- <if test="updateBy != null">update_by,</if>
- <if test="updateTime != null">update_time,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="dkbm != null and dkbm != ''">#{dkbm},</if>
- <if test="dkmc != null and dkmc != ''">#{dkmc},</if>
- <if test="dkdz != null">#{dkdz},</if>
- <if test="dkxz != null">#{dkxz},</if>
- <if test="dknz != null">#{dknz},</if>
- <if test="dkbz != null">#{dkbz},</if>
- <if test="jymj != null">#{jymj},</if>
- <if test="jyfs != null">#{jyfs},</if>
- <if test="jydxlx != null">#{jydxlx},</if>
- <if test="jydxmc != null">#{jydxmc},</if>
- <if test="jydxzjlx != null">#{jydxzjlx},</if>
- <if test="jydxzjhm != null">#{jydxzjhm},</if>
- <if test="sfqdht != null">#{sfqdht},</if>
- <if test="jykssj != null">#{jykssj},</if>
- <if test="jyjssj != null">#{jyjssj},</if>
- <if test="cbje != null">#{cbje},</if>
- <if test="dxje != null">#{dxje},</if>
- <if test="sqje != null">#{sqje},</if>
- <if test="nsy != null">#{nsy},</if>
- <if test="bzxx != null">#{bzxx},</if>
- <if test="dkImg != null">#{dkImg},</if>
- <if test="surveyStatus != null and surveyStatus != ''">#{surveyStatus},</if>
- <if test="importCode != null and importCode != ''">#{importCode},</if>
- <if test="deptName != null">#{deptName},</if>
- <if test="createBy != null and createBy != ''">#{createBy},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="updateBy != null">#{updateBy},</if>
- <if test="updateTime != null">#{updateTime},</if>
- </trim>
- </insert>
-
- <insert id="insertTResourceOperationBatch" parameterType="list" useGeneratedKeys="true" keyProperty="id">
- insert into t_resource_operation
- <trim prefix="(" suffix=")" suffixOverrides=",">
- DKBM,
- DKMC,
- DKDZ,
- DKXZ,
- DKNZ,
- DKBZ,
- JYMJ,
- JYFS,
- JYDXLX,
- JYDXMC,
- JYDXZJLX,
- JYDXZJHM,
- SFQDHT,
- JYKSSJ,
- JYJSSJ,
- CBJE,
- DXJE,
- SQJE,
- NSY,
- BZXX,
- dk_img,
- survey_status,
- import_code,
- dept_name,
- create_by,
- create_time,
- update_by,
- update_time,
- </trim>
- values
- <foreach item="item" collection="list" separator="," >
- <trim prefix="(" suffix=")" suffixOverrides=",">
- #{item.dkbm},
- #{item.dkmc},
- #{item.dkdz},
- #{item.dkxz},
- #{item.dknz},
- #{item.dkbz},
- #{item.jymj},
- #{item.jyfs},
- #{item.jydxlx},
- #{item.jydxmc},
- #{item.jydxzjlx},
- #{item.jydxzjhm},
- #{item.sfqdht},
- #{item.jykssj},
- #{item.jyjssj},
- #{item.cbje},
- #{item.dxje},
- #{item.sqje},
- #{item.nsy},
- #{item.bzxx},
- #{item.dkImg},
- #{item.surveyStatus},
- #{item.importCode},
- #{item.deptName},
- #{item.createBy},
- #{item.createTime},
- #{item.updateBy},
- #{item.updateTime},
- </trim>
- </foreach>
- </insert>
-
- <update id="updateTResourceOperation" parameterType="TResourceOperation">
- update t_resource_operation
- <trim prefix="SET" suffixOverrides=",">
- <if test="dkbm != null and dkbm != ''">DKBM = #{dkbm},</if>
- <if test="dkmc != null and dkmc != ''">DKMC = #{dkmc},</if>
- <if test="dkdz != null">DKDZ = #{dkdz},</if>
- <if test="dkxz != null">DKXZ = #{dkxz},</if>
- <if test="dknz != null">DKNZ = #{dknz},</if>
- <if test="dkbz != null">DKBZ = #{dkbz},</if>
- <if test="jymj != null">JYMJ = #{jymj},</if>
- <if test="jyfs != null">JYFS = #{jyfs},</if>
- <if test="jydxlx != null">JYDXLX = #{jydxlx},</if>
- <if test="jydxmc != null">JYDXMC = #{jydxmc},</if>
- <if test="jydxzjlx != null">JYDXZJLX = #{jydxzjlx},</if>
- <if test="jydxzjhm != null">JYDXZJHM = #{jydxzjhm},</if>
- <if test="sfqdht != null">SFQDHT = #{sfqdht},</if>
- <if test="jykssj != null">JYKSSJ = #{jykssj},</if>
- <if test="jyjssj != null">JYJSSJ = #{jyjssj},</if>
- <if test="cbje != null">CBJE = #{cbje},</if>
- <if test="dxje != null">DXJE = #{dxje},</if>
- <if test="sqje != null">SQJE = #{sqje},</if>
- <if test="nsy != null">NSY = #{nsy},</if>
- <if test="bzxx != null">BZXX = #{bzxx},</if>
- <if test="dkImg != null">dk_img = #{dkImg},</if>
- <if test="surveyStatus != null and surveyStatus != ''">survey_status = #{surveyStatus},</if>
- <if test="importCode != null and importCode != ''">import_code = #{importCode},</if>
- <if test="deptName != null">dept_name = #{deptName},</if>
- <if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="updateBy != null">update_by = #{updateBy},</if>
- <if test="updateTime != null">update_time = #{updateTime},</if>
- </trim>
- where fid = #{id}
- </update>
-
- <!--批量更新-->
- <update id="updateTResourceOperationBatch" parameterType="list" >
- <foreach collection="list" item="item" index="index" open="" close="" separator=";">
- update t_resource_operation
- <set>
- <if test="item.dkbm != null and item.dkbm != ''">DKBM = #{item.dkbm},</if>
- <if test="item.dkmc != null and item.dkmc != ''">DKMC = #{item.dkmc},</if>
- <if test="item.dkdz != null">DKDZ = #{item.dkdz},</if>
- <if test="item.dkxz != null">DKXZ = #{item.dkxz},</if>
- <if test="item.dknz != null">DKNZ = #{item.dknz},</if>
- <if test="item.dkbz != null">DKBZ = #{item.dkbz},</if>
- <if test="item.jymj != null">JYMJ = #{item.jymj},</if>
- <if test="item.jyfs != null">JYFS = #{item.jyfs},</if>
- <if test="item.jydxlx != null">JYDXLX = #{item.jydxlx},</if>
- <if test="item.jydxmc != null">JYDXMC = #{item.jydxmc},</if>
- <if test="item.jydxzjlx != null">JYDXZJLX = #{item.jydxzjlx},</if>
- <if test="item.jydxzjhm != null">JYDXZJHM = #{item.jydxzjhm},</if>
- <if test="item.sfqdht != null">SFQDHT = #{item.sfqdht},</if>
- <if test="item.jykssj != null">JYKSSJ = #{item.jykssj},</if>
- <if test="item.jyjssj != null">JYJSSJ = #{item.jyjssj},</if>
- <if test="item.cbje != null">CBJE = #{item.cbje},</if>
- <if test="item.dxje != null">DXJE = #{item.dxje},</if>
- <if test="item.sqje != null">SQJE = #{item.sqje},</if>
- <if test="item.nsy != null">NSY = #{item.nsy},</if>
- <if test="item.bzxx != null">BZXX = #{item.bzxx},</if>
- <if test="item.dkImg != null">dk_img = #{item.dkImg},</if>
- <if test="item.surveyStatus != null and item.surveyStatus != ''">survey_status = #{item.surveyStatus},</if>
- <if test="item.importCode != null and item.importCode != ''">import_code = #{item.importCode},</if>
- <if test="item.deptName != null">dept_name = #{item.deptName},</if>
- <if test="item.createBy != null and item.createBy != ''">create_by = #{item.createBy},</if>
- <if test="item.createTime != null">create_time = #{item.createTime},</if>
- <if test="item.updateBy != null">update_by = #{item.updateBy},</if>
- <if test="item.updateTime != null">update_time = #{item.updateTime},</if>
- </set>
- where fid = #{item.id}
- </foreach>
- </update>
-
- <delete id="deleteTResourceOperationById" parameterType="Long">
- delete from t_resource_operation where fid = #{id}
- </delete>
-
- <delete id="deleteTResourceOperationByIds" parameterType="String">
- delete from t_resource_operation where fid in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
-
- <delete id="deleteByCode" parameterType="String">
- delete from t_resource_operation where import_code = #{importCode}
- </delete>
- </mapper>
|