|
@@ -20,11 +20,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="isDel" column="is_del" />
|
|
|
<result property="sysDeptId" column="sys_dept_id" />
|
|
|
+ <result property="ivestor" column="ivestor" />
|
|
|
+ <result property="recommendCompany" column="recommend_company" />
|
|
|
+ <result property="recommendPhone" column="recommend_phone" />
|
|
|
<result property="remark" column="remark" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectBmProjectReportVo">
|
|
|
- select id, project_name, investment_quota, contacts_name, contacts_phone, project_introduction, report_status, url, bm_project_id, create_by, create_time, update_by, update_time, is_del, sys_dept_id, remark from bm_project_report
|
|
|
+ select id, project_name, investment_quota, contacts_name, contacts_phone, project_introduction, report_status, url, bm_project_id, create_by, create_time, update_by, update_time, is_del, sys_dept_id, ivestor, recommend_company,recommend_phone, remark from bm_project_report
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectBmProjectReportList" parameterType="BmProjectReport" resultMap="BmProjectReportResult">
|
|
@@ -39,6 +42,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="url != null and url != ''"> and url = #{url}</if>
|
|
|
<if test="bmProjectId != null "> and bm_project_id = #{bmProjectId}</if>
|
|
|
<if test="sysDeptId != null "> and sys_dept_id = #{sysDeptId}</if>
|
|
|
+ <if test="ivestor != null and ivestor != ''"> and ivestor = #{ivestor}</if>
|
|
|
+ <if test="recommendCompany != null and recommendCompany != '' "> and recommend_company = #{recommendCompany}</if>
|
|
|
+ <if test="recommendPhone != null and recommendPhone != ''"> and recommend_phone = #{recommendPhone}</if>
|
|
|
<if test="isDel != null "> and is_del = #{isDel}</if>
|
|
|
</where>
|
|
|
</select>
|
|
@@ -65,6 +71,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="isDel != null">is_del,</if>
|
|
|
<if test="sysDeptId != null">sys_dept_id,</if>
|
|
|
+ <if test="ivestor != null">ivestor,</if>
|
|
|
+ <if test="recommendCompany != null">recommend_company,</if>
|
|
|
+ <if test="recommendPhone != null">recommend_phone,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -82,6 +91,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="isDel != null">#{isDel},</if>
|
|
|
<if test="sysDeptId != null">#{sysDeptId},</if>
|
|
|
+ <if test="ivestor != null">#{ivestor},</if>
|
|
|
+ <if test="recommendCompany != null">#{recommendCompany},</if>
|
|
|
+ <if test="recommendPhone != null">#{recommendPhone},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -103,6 +115,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="isDel != null">is_del = #{isDel},</if>
|
|
|
<if test="sysDeptId != null">sys_dept_id = #{sysDeptId},</if>
|
|
|
+ <if test="ivestor != null">ivestor = #{ivestor},</if>
|
|
|
+ <if test="recommendCompany != null">recommend_company = #{recommendCompany},</if>
|
|
|
+ <if test="recommendPhone != null">recommend_phone = #{recommendPhone},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|