|
@@ -20,6 +20,7 @@
|
|
<result column="updatetime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
<result column="updatetime" property="updateTime" jdbcType="TIMESTAMP" />
|
|
<result column="isvalid" property="isvalid" jdbcType="INTEGER" />
|
|
<result column="isvalid" property="isvalid" jdbcType="INTEGER" />
|
|
<result column="open_status" property="openStatus" jdbcType="INTEGER" />
|
|
<result column="open_status" property="openStatus" jdbcType="INTEGER" />
|
|
|
|
+ <result column="is_receiver" property="isReceiver" jdbcType="INTEGER" />
|
|
<result column="file_id" property="fileId" jdbcType="INTEGER" />
|
|
<result column="file_id" property="fileId" jdbcType="INTEGER" />
|
|
<result column="file_name" property="fileName" jdbcType="VARCHAR" />
|
|
<result column="file_name" property="fileName" jdbcType="VARCHAR" />
|
|
<result column="file_path" property="filePath" jdbcType="VARCHAR" />
|
|
<result column="file_path" property="filePath" jdbcType="VARCHAR" />
|
|
@@ -28,7 +29,7 @@
|
|
<sql id="Base_Column_List" >
|
|
<sql id="Base_Column_List" >
|
|
id,company_id, contact_name, contact_email, contact_phone, contact_wechat, contact_position,
|
|
id,company_id, contact_name, contact_email, contact_phone, contact_wechat, contact_position,
|
|
contact_remark, file_id, creatorid, createtime, updaterid,
|
|
contact_remark, file_id, creatorid, createtime, updaterid,
|
|
- updatetime, isvalid,open_status
|
|
|
|
|
|
+ updatetime, isvalid,open_status,is_receiver
|
|
</sql>
|
|
</sql>
|
|
<delete id="deleteContactInformationById">
|
|
<delete id="deleteContactInformationById">
|
|
update CONTACT_INFORMATION set isvalid=0,updatetime=now(),updaterid=#{userId} where id=#{id}
|
|
update CONTACT_INFORMATION set isvalid=0,updatetime=now(),updaterid=#{userId} where id=#{id}
|
|
@@ -49,7 +50,7 @@
|
|
<select id="selectContactInformationList" resultMap="BaseResultMap">
|
|
<select id="selectContactInformationList" resultMap="BaseResultMap">
|
|
select c.id,c.company_id, c.contact_name, c.contact_email, c.contact_phone, c.contact_wechat, c.contact_position,
|
|
select c.id,c.company_id, c.contact_name, c.contact_email, c.contact_phone, c.contact_wechat, c.contact_position,
|
|
c.contact_remark, c.file_id, c.creatorid, c.createtime, c.updaterid,
|
|
c.contact_remark, c.file_id, c.creatorid, c.createtime, c.updaterid,
|
|
- c.updatetime, c.isvalid,c.open_status,f.file_name,f.file_path
|
|
|
|
|
|
+ c.updatetime, c.isvalid,c.open_status,c.is_receiver,f.file_name,f.file_path
|
|
from CONTACT_INFORMATION c
|
|
from CONTACT_INFORMATION c
|
|
left join image_info f on c.file_id = f.id and f.isvalid=1
|
|
left join image_info f on c.file_id = f.id and f.isvalid=1
|
|
where c.isvalid=1 and c.company_id=#{companyId}
|
|
where c.isvalid=1 and c.company_id=#{companyId}
|
|
@@ -69,7 +70,7 @@
|
|
</select>
|
|
</select>
|
|
<select id="selectByKey" resultMap="BaseResultMap">
|
|
<select id="selectByKey" resultMap="BaseResultMap">
|
|
select * from CONTACT_INFORMATION where isvalid=1
|
|
select * from CONTACT_INFORMATION where isvalid=1
|
|
- and company_id =#{companyId} and contact_email=#{contactEmail} limit 1
|
|
|
|
|
|
+ and company_id =#{companyId} and contact_name=#{contactName} limit 1
|
|
</select>
|
|
</select>
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|