| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.smartor.mapper.SchemeAutofinshruleMapper"> |
| | | |
| | | <resultMap type="SchemeAutofinshrule" id="SchemeAutofinshruleResult"> |
| | | <mapper namespace="com.smartor.mapper.SchemeAutofinshruleMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SchemeAutofinshrule" id="SchemeAutofinshruleResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="schemeid" column="schemeid" /> |
| | | <result property="ruletype" column="ruletype" /> |
| | |
| | | select id, schemeid, ruletype, rulevalue, orgid, del_flag, create_by, create_time, update_by, update_time, isupload, upload_time from scheme_autofinshrule |
| | | </sql> |
| | | |
| | | <select id="selectSchemeAutofinshruleList" parameterType="SchemeAutofinshrule" resultMap="SchemeAutofinshruleResult"> |
| | | <select id="selectSchemeAutofinshruleList" parameterType="com.smartor.domain.SchemeAutofinshrule" resultMap="SchemeAutofinshruleResult"> |
| | | <include refid="selectSchemeAutofinshruleVo"/> |
| | | <where> |
| | | <where> |
| | | <if test="schemeid != null "> and schemeid = #{schemeid}</if> |
| | | <if test="ruletype != null "> and ruletype = #{ruletype}</if> |
| | | <if test="rulevalue != null and rulevalue != ''"> and rulevalue = #{rulevalue}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectSchemeAutofinshruleById" parameterType="Long" resultMap="SchemeAutofinshruleResult"> |
| | | <include refid="selectSchemeAutofinshruleVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSchemeAutofinshrule" parameterType="SchemeAutofinshrule" useGeneratedKeys="true" keyProperty="id"> |
| | | |
| | | <insert id="insertSchemeAutofinshrule" parameterType="com.smartor.domain.SchemeAutofinshrule" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into scheme_autofinshrule |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="schemeid != null">schemeid,</if> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSchemeAutofinshrule" parameterType="SchemeAutofinshrule"> |
| | | <update id="updateSchemeAutofinshrule" parameterType="com.smartor.domain.SchemeAutofinshrule"> |
| | | update scheme_autofinshrule |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="schemeid != null">schemeid = #{schemeid},</if> |
| | |
| | | </delete> |
| | | |
| | | <delete id="deleteSchemeAutofinshruleByIds" parameterType="String"> |
| | | delete from scheme_autofinshrule where id in |
| | | delete from scheme_autofinshrule where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |