@ -17,10 +17,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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 from td_indenture
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
</sql>
<select id= "selectTdIndentureList" parameterType= "TdIndenture" resultMap= "TdIndentureResult" >
@ -37,6 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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>
</where>
</select>
@ -60,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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= "," >
<if test= "indentureId != null" > #{indentureId},</if>
@ -74,6 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test= "remark != null" > #{REMARK},</if>
<if test= "createStaffid != null" > #{createStaffid},</if>
<if test= "createDate != null" > #{createDate},</if>
<if test= "deptId != null" > #{deptId},</if>
</trim>
</insert>
@ -91,6 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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}
</update>