Browse Source

feat:公司对接信息调整

chenjianhua 3 weeks ago
parent
commit
9a03f9a64c

+ 4 - 0
service-base/src/main/java/com/simuwang/base/pojo/dos/ContactInformationDO.java

@@ -111,6 +111,9 @@ public class ContactInformationDO {
     @TableField("open_status")
     @TableField("open_status")
     private Integer openStatus;
     private Integer openStatus;
 
 
+    @TableField("is_receiver")
+    private Integer isReceiver;
+
     @TableField(exist = false)
     @TableField(exist = false)
     private String fileName;
     private String fileName;
 
 
@@ -133,6 +136,7 @@ public class ContactInformationDO {
         vo.setCreatorId(creatorId);
         vo.setCreatorId(creatorId);
         vo.setUpdaterId(updaterId);
         vo.setUpdaterId(updaterId);
         vo.setOpenStatus(openStatus);
         vo.setOpenStatus(openStatus);
+        vo.setIsReceiver(isReceiver);
         vo.setCreateTime(DateUtils.format(createTime, DateUtils.YYYY_MM_DD_HH_MM_SS));
         vo.setCreateTime(DateUtils.format(createTime, DateUtils.YYYY_MM_DD_HH_MM_SS));
         vo.setUpdateTime(DateUtils.format(updateTime, DateUtils.YYYY_MM_DD_HH_MM_SS));
         vo.setUpdateTime(DateUtils.format(updateTime, DateUtils.YYYY_MM_DD_HH_MM_SS));
         return vo;
         return vo;

+ 2 - 0
service-base/src/main/java/com/simuwang/base/pojo/vo/ContactInformationVO.java

@@ -59,4 +59,6 @@ public class ContactInformationVO {
     private Integer isvalid;
     private Integer isvalid;
 
 
     private Integer openStatus;
     private Integer openStatus;
+
+    private Integer isReceiver;
 }
 }

+ 4 - 3
service-base/src/main/resources/mapper/daq/ContactInformationMapper.xml

@@ -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>