Browse Source

有效面谈逻辑修改

anderx 9 months ago
parent
commit
7f3dbc89c2

+ 4 - 4
src/main/java/com/goafanti/common/mapper/UserFirstInterviewMapper.xml

@@ -6,7 +6,7 @@
         <result property="id" column="id" jdbcType="INTEGER"/>
         <result property="uid" column="uid" jdbcType="VARCHAR"/>
         <result property="aid" column="aid" jdbcType="VARCHAR"/>
-        <result property="prdid" column="prdid" jdbcType="VARCHAR"/>
+        <result property="prdid" column="prdid" jdbcType="INTEGER"/>
         <result property="firstTime" column="first_time" jdbcType="TIMESTAMP"/>
     </resultMap>
 
@@ -59,7 +59,7 @@
             <if test="aid != null and aid != ''">
                 aid = #{aid},
             </if>
-            <if test="prdid != null and prdid != ''">
+            <if test="prdid != null">
                 prdid = #{prdid},
             </if>
             <if test="firstTime != null">
@@ -85,7 +85,7 @@
             <if test="aid != null and aid != ''">
                 and aid = #{aid}
             </if>
-            <if test="prdid != null and prdid != ''">
+            <if test="prdid != null">
                 and prdid = #{prdid}
             </if>
             <if test="firstTime != null">
@@ -111,7 +111,7 @@
             <if test="aid != null and aid != ''">
                 and aid = #{aid}
             </if>
-            <if test="prdid != null and prdid != ''">
+            <if test="prdid != null">
                 and prdid = #{prdid}
             </if>
             <if test="firstTime != null">

+ 5 - 5
src/main/java/com/goafanti/common/model/UserFirstInterview.java

@@ -8,10 +8,10 @@ import java.util.Date;
  * 客户首次面谈表(UserFirstInterview)实体类
  *
  * @author makejava
- * @since 2025-04-17 11:54:16
+ * @since 2025-04-17 13:46:49
  */
 public class UserFirstInterview implements Serializable {
-    private static final long serialVersionUID = -48910358705056269L;
+    private static final long serialVersionUID = 387703548785339240L;
 
     private Integer id;
     /**
@@ -25,7 +25,7 @@ public class UserFirstInterview implements Serializable {
     /**
      * 项目编号
      */
-    private String prdid;
+    private Integer prdid;
     /**
      * 首次面谈时间
      */
@@ -56,11 +56,11 @@ public class UserFirstInterview implements Serializable {
         this.aid = aid;
     }
 
-    public String getPrdid() {
+    public Integer getPrdid() {
         return prdid;
     }
 
-    public void setPrdid(String prdid) {
+    public void setPrdid(Integer prdid) {
         this.prdid = prdid;
     }
 

+ 7 - 0
src/main/java/com/goafanti/weChat/service/impl/PublicReleaseServiceImpl.java

@@ -176,6 +176,13 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 				newPRD.setId(e.getId());
 				newPRD.setInterviewStatus(1);
 				publicReleaseDetailsMapper.update(newPRD);
+				//需要添加首次面谈表
+				UserFirstInterview userFirstInterview=new UserFirstInterview();
+				userFirstInterview.setUid(e.getUid());
+				userFirstInterview.setAid(TokenManager.getAdminId());
+				userFirstInterview.setPrdid(e.getId());
+				userFirstInterview.setFirstTime(new Date());
+				userFirstInterviewMapper.insert(userFirstInterview);
 				for (UserInterviewProjectBo userInterviewProjectBo : collect) {
 					UserInterviewProject userInterviewProject=new UserInterviewProject();
 					userInterviewProject.setId(userInterviewProjectBo.getId());