Browse Source

更新企业档案与面谈接口修改

anderx 9 months ago
parent
commit
887b84f8d8

+ 1 - 0
src/main/java/com/goafanti/common/dao/UserInterviewProjectMapper.java

@@ -82,5 +82,6 @@ public interface UserInterviewProjectMapper {
 
     List<UserInterviewProjectBo> selectByAid(@Param("aid") String aid, @Param("uid") String uid);
 
+    void updateTypeByUid(String uid);
 }
 

+ 5 - 0
src/main/java/com/goafanti/common/mapper/UserInterviewProjectMapper.xml

@@ -95,6 +95,7 @@
         where id = #{id}
     </update>
 
+
     <resultMap type="com.goafanti.common.model.UserInterviewProjectBo" id="ListMap">
         <result property="id" column="id" jdbcType="INTEGER"/>
         <result property="uid" column="uid" jdbcType="VARCHAR"/>
@@ -196,5 +197,9 @@
         where a.uid = #{uid} and a.aid = #{aid}
     </select>
 
+    <update id="updateTypeByUid">
+        update user_interview_project set type = 1 where uid = #{uid}
+    </update>
+
 </mapper>
 

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

@@ -101,6 +101,8 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 	private UserFirstInterviewMapper userFirstInterviewMapper;
 	@Autowired
 	private UserArchivesInterviewMapper userArchivesInterviewMapper;
+	@Autowired
+	private UserInterviewProjectMapper userInterviewProjectMapper;
 
 	@Override
 	@Transactional
@@ -163,6 +165,8 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 					userArchivesInterviewMapper.update(uai);
 				}
 			}
+			userInterviewProjectMapper.updateTypeByUid(e.getUid());
+
 		}
 	}