diff --git a/ruoyi-system/src/main/resources/mapper/system/TdIndentureMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TdIndentureMapper.xml index 2fb15d8..881f65a 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TdIndentureMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TdIndentureMapper.xml @@ -5,39 +5,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" <mapper namespace="com.ruoyi.system.mapper.TdIndentureMapper"> <resultMap type="TdIndenture" id="TdIndentureResult"> - <result property="indentureId" column="INDENTURE_ID" /> - <result property="indentureName" column="INDENTURE_NAME" /> - <result property="indentureAddress" column="INDENTURE_ADDRESS" /> - <result property="indenturePhone" column="INDENTURE_PHONE" /> - <result property="indentureMobile" column="INDENTURE_MOBILE" /> - <result property="indentureLinkman" column="INDENTURE_LINKMAN" /> - <result property="linkmanPhone" column="LINKMAN_PHONE" /> - <result property="linkmanMobile" column="LINKMAN_MOBILE" /> - <result property="indentureState" column="INDENTURE_STATE" /> - <result property="remark" column="REMARK" /> - <result property="createStaffid" column="CREATE_STAFFID" /> - <result property="createDate" column="CREATE_DATE" /> + <result property="indentureId" column="indenture_id" /> + <result property="indentureName" column="indenture_name" /> + <result property="indentureAddress" column="indenture_address" /> + <result property="indenturePhone" column="indenture_phone" /> + <result property="indentureMobile" column="indenture_mobile" /> + <result property="indentureLinkman" column="indenture_linkman" /> + <result property="linkmanPhone" column="linkman_phone" /> + <result property="linkmanMobile" column="linkman_mobile" /> + <result property="indentureState" column="indenture_state" /> + <result property="remark" column="remark" /> + <result property="createStaffid" column="create_staffid" /> + <result property="createDate" column="create_date" /> <result property="deptId" column="dept_id" jdbcType="INTEGER"/> </resultMap> <sql id="selectTdIndentureVo"> - select INDENTURE_ID, INDENTURE_NAME, INDENTURE_ADDRESS, INDENTURE_PHONE, INDENTURE_MOBILE, INDENTURE_LINKMAN, LINKMAN_PHONE, LINKMAN_MOBILE, INDENTURE_STATE, REMARK, CREATE_STAFFID, CREATE_DATE ,dept_id from td_indenture d + select indenture_id, indenture_name, indenture_address, indenture_phone, indenture_mobile, indenture_linkman, linkman_phone, linkman_mobile, indenture_state, remark, create_staffid, create_date ,dept_id from td_indenture d </sql> <select id="selectTdIndentureList" parameterType="TdIndenture" resultMap="TdIndentureResult"> <include refid="selectTdIndentureVo"/> <where> - <if test="indentureName != null and indentureName != ''"> and INDENTURE_NAME like concat('%', #{indentureName}, '%')</if> - <if test="indentureAddress != null and indentureAddress != ''"> and INDENTURE_ADDRESS = #{indentureAddress}</if> - <if test="indenturePhone != null and indenturePhone != ''"> and INDENTURE_PHONE = #{indenturePhone}</if> - <if test="indentureMobile != null and indentureMobile != ''"> and INDENTURE_MOBILE = #{indentureMobile}</if> - <if test="indentureLinkman != null and indentureLinkman != ''"> and INDENTURE_LINKMAN = #{indentureLinkman}</if> - <if test="linkmanPhone != null and linkmanPhone != ''"> and LINKMAN_PHONE = #{linkmanPhone}</if> - <if test="linkmanMobile != null and linkmanMobile != ''"> and LINKMAN_MOBILE = #{linkmanMobile}</if> - <if test="indentureState != null and indentureState != ''"> and INDENTURE_STATE = #{indentureState}</if> - <if test="remark != null and REMARK != ''"> and REMARK = #{remark}</if> - <if test="createStaffid != null and createStaffid != ''"> and CREATE_STAFFID = #{createStaffid}</if> - <if test="createDate != null "> and CREATE_DATE = #{createDate}</if> + <if test="indentureName != null and indentureName != ''"> and indenture_name like concat('%', #{indentureName}, '%')</if> + <if test="indentureAddress != null and indentureAddress != ''"> and indenture_address = #{indentureAddress}</if> + <if test="indenturePhone != null and indenturePhone != ''"> and indenture_phone = #{indenturePhone}</if> + <if test="indentureMobile != null and indentureMobile != ''"> and indenture_mobile = #{indentureMobile}</if> + <if test="indentureLinkman != null and indentureLinkman != ''"> and indenture_linkman = #{indentureLinkman}</if> + <if test="linkmanPhone != null and linkmanPhone != ''"> and linkman_phone = #{linkmanPhone}</if> + <if test="linkmanMobile != null and linkmanMobile != ''"> and linkman_mobile = #{linkmanMobile}</if> + <if test="indentureState != null and indentureState != ''"> and indenture_state = #{indentureState}</if> + <if test="remark != null and REMARK != ''"> and remark = #{remark}</if> + <if test="createStaffid != null and createStaffid != ''"> and create_staffid = #{createStaffid}</if> + <if test="createDate != null "> and create_date = #{createDate}</if> <if test="deptId != null "> and dept_id = #{deptId}</if> <!-- 数据范围过滤 --> ${params.dataScope} @@ -46,24 +46,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" <select id="selectTdIndentureByIndentureId" parameterType="String" resultMap="TdIndentureResult"> <include refid="selectTdIndentureVo"/> - where INDENTURE_ID = #{indentureId} + where indenture_id = #{indentureId} </select> <insert id="insertTdIndenture" parameterType="TdIndenture"> insert into td_indenture <trim prefix="(" suffix=")" suffixOverrides=","> - <if test="indentureId != null">INDENTURE_ID,</if> - <if test="indentureName != null">INDENTURE_NAME,</if> - <if test="indentureAddress != null">INDENTURE_ADDRESS,</if> - <if test="indenturePhone != null">INDENTURE_PHONE,</if> - <if test="indentureMobile != null">INDENTURE_MOBILE,</if> - <if test="indentureLinkman != null">INDENTURE_LINKMAN,</if> - <if test="linkmanPhone != null">LINKMAN_PHONE,</if> - <if test="linkmanMobile != null">LINKMAN_MOBILE,</if> - <if test="indentureState != null">INDENTURE_STATE,</if> - <if test="remark != null">REMARK,</if> - <if test="createStaffid != null">CREATE_STAFFID,</if> - <if test="createDate != null">CREATE_DATE,</if> + <if test="indentureId != null">indenture_id,</if> + <if test="indentureName != null">indenture_name,</if> + <if test="indentureAddress != null">indenture_address,</if> + <if test="indenturePhone != null">indenture_phone,</if> + <if test="indentureMobile != null">indenture_mobile,</if> + <if test="indentureLinkman != null">indenture_linkman,</if> + <if test="linkmanPhone != null">linkman_phone,</if> + <if test="linkmanMobile != null">linkman_mobile,</if> + <if test="indentureState != null">indenture_state,</if> + <if test="remark != null">remark,</if> + <if test="createStaffid != null">create_staffid,</if> + <if test="createDate != null">create_date,</if> <if test="deptId != null">dept_id,</if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> @@ -76,7 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" <if test="linkmanPhone != null">#{linkmanPhone},</if> <if test="linkmanMobile != null">#{linkmanMobile},</if> <if test="indentureState != null">#{indentureState},</if> - <if test="remark != null">#{REMARK},</if> + <if test="remark != null">#{remark},</if> <if test="createStaffid != null">#{createStaffid},</if> <if test="createDate != null">#{createDate},</if> <if test="deptId != null">#{deptId},</if> @@ -86,20 +86,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" <update id="updateTdIndenture" parameterType="TdIndenture"> update td_indenture <trim prefix="SET" suffixOverrides=","> - <if test="indentureName != null">INDENTURE_NAME = #{indentureName},</if> - <if test="indentureAddress != null">INDENTURE_ADDRESS = #{indentureAddress},</if> - <if test="indenturePhone != null">INDENTURE_PHONE = #{indenturePhone},</if> - <if test="indentureMobile != null">INDENTURE_MOBILE = #{indentureMobile},</if> - <if test="indentureLinkman != null">INDENTURE_LINKMAN = #{indentureLinkman},</if> - <if test="linkmanPhone != null">LINKMAN_PHONE = #{linkmanPhone},</if> - <if test="linkmanMobile != null">LINKMAN_MOBILE = #{linkmanMobile},</if> - <if test="indentureState != null">INDENTURE_STATE = #{indentureState},</if> - <if test="remark != null">REMARK = #{remark},</if> - <if test="createStaffid != null">CREATE_STAFFID = #{createStaffid},</if> - <if test="createDate != null">CREATE_DATE = #{createDate},</if> + <if test="indentureName != null">indenture_name = #{indentureName},</if> + <if test="indentureAddress != null">indenture_address = #{indentureAddress},</if> + <if test="indenturePhone != null">indenture_phone = #{indenturePhone},</if> + <if test="indentureMobile != null">indenture_mobile = #{indentureMobile},</if> + <if test="indentureLinkman != null">indenture_linkman = #{indentureLinkman},</if> + <if test="linkmanPhone != null">linkman_phone = #{linkmanPhone},</if> + <if test="linkmanMobile != null">linkman_mobile = #{linkmanMobile},</if> + <if test="indentureState != null">indenture_state = #{indentureState},</if> + <if test="remark != null">remark = #{remark},</if> + <if test="createStaffid != null">create_staffid = #{createStaffid},</if> + <if test="createDate != null">create_date = #{createDate},</if> <if test="deptId != null">dept_id = #{deptId},</if> </trim> - where INDENTURE_ID = #{indentureId} + where indenture_id = #{indentureId} </update> <delete id="deleteTdIndentureByIndentureId" parameterType="String">