Просмотр исходного кода

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

anderx месяцев назад: 9
Родитель
Сommit
ad3226cfef

+ 1 - 0
src/main/java/com/goafanti/Interview/service/impl/UserArchivesInterviewServiceImpl.java

@@ -110,6 +110,7 @@ public class UserArchivesInterviewServiceImpl extends BaseMybatisDao<UserArchive
         if (in.getId()!=null){
             userArchivesMapper.update(in);
         }else {
+            in.setCreateTime(new Date());
             userArchivesMapper.insert(in);
         }
         return in;

+ 0 - 16
src/main/java/com/goafanti/common/dao/UserArchivesMapper.java

@@ -2,7 +2,6 @@ package com.goafanti.common.dao;
 
 import com.goafanti.common.model.UserArchives;
 import org.apache.ibatis.annotations.Param;
-import org.springframework.data.domain.Pageable;
 
 import java.util.List;
 
@@ -24,22 +23,7 @@ public interface UserArchivesMapper {
 
     
 
-    /**
-     * 查询指定行数据
-     *
-     * @param userArchives 查询条件
-     * @param pageable         分页对象
-     * @return 对象列表
-     */
-    List<UserArchives> findUserArchivesList(UserArchives userArchives, @Param("pageable") Pageable pageable);
 
-    /**
-     * 统计总行数
-     *
-     * @param userArchives 查询条件
-     * @return 总行数
-     */
-    int findUserArchivesCount(UserArchives userArchives);
 
     /**
      * 新增数据

+ 1 - 1
src/main/java/com/goafanti/common/mapper/UserArchivesMapper.xml

@@ -41,7 +41,7 @@
     </sql>
 
     <!--查询单个-->
-    <select id="selectById" resultMap="UserArchivesMap">
+    <select id="queryById" resultMap="UserArchivesMap">
         select
         <include refid="UserArchivesAllSql"/>
         from user_archives

+ 1 - 0
src/main/java/com/goafanti/customer/service/impl/UserArchivesServiceImpl.java

@@ -185,6 +185,7 @@ public class UserArchivesServiceImpl extends BaseMybatisDao< UserArchivesMapper>
                 userArchives.setPatentCount(count);
             }
             if(userArchives.getPatentCount()==null)userArchives.setPatentCount(0);
+            userArchives.setCreateTime(new Date());
             this.userArchivesMapper.insert(userArchives);
         }
         return userArchives;