Sfoglia il codice sorgente

新增人员评分列表

anderx 1 anno fa
parent
commit
f19166145c

+ 61 - 61
src/main/java/com/goafanti/common/mapper/AdminProjectStatisticsMapper.xml

@@ -5,17 +5,17 @@
     <resultMap type="com.goafanti.common.model.AdminProjectStatistics" id="AdminProjectStatisticsMap">
         <result property="id" column="id" jdbcType="INTEGER"/>
         <result property="aid" column="aid" jdbcType="VARCHAR"/>
-        <result property="htsatcount" column="htSatCount" jdbcType="INTEGER"/>
-        <result property="htsatscorecount" column="htSatScoreCount" jdbcType="INTEGER"/>
-        <result property="htsatscoreaverage" column="htSatScoreAverage" jdbcType="NUMERIC"/>
-        <result property="membercount" column="memberCount" jdbcType="INTEGER"/>
-        <result property="memberscorecount" column="memberScoreCount" jdbcType="INTEGER"/>
-        <result property="memberscoreaverage" column="memberScoreAverage" jdbcType="NUMERIC"/>
+        <result property="htSatCount" column="ht_sat_count" jdbcType="INTEGER"/>
+        <result property="htSatScoreCount" column="ht_sat_score_count" jdbcType="INTEGER"/>
+        <result property="htSatScoreAverage" column="ht_sat_score_average" jdbcType="NUMERIC"/>
+        <result property="memberCount" column="member_count" jdbcType="INTEGER"/>
+        <result property="memberScoreCount" column="member_score_count" jdbcType="INTEGER"/>
+        <result property="memberScoreAverage" column="member_score_average" jdbcType="NUMERIC"/>
         <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
     </resultMap>
 
     <sql id="AdminProjectStatisticsAllSql">
-        id, aid, htSatCount, htSatScoreCount, htSatScoreAverage, memberCount, memberScoreCount, memberScoreAverage, create_time
+        id, aid, ht_sat_count, ht_sat_score_count, ht_sat_score_average, member_count, member_score_count, member_score_average, create_time
     </sql>
 
     <!--查询单个-->
@@ -39,23 +39,23 @@
             <if test="aid != null and aid != ''">
                 and aid = #{aid}
             </if>
-            <if test="htsatcount != null">
-                and htSatCount = #{htsatcount}
+            <if test="htSatCount != null">
+                and ht_sat_count = #{htSatCount}
             </if>
-            <if test="htsatscorecount != null">
-                and htSatScoreCount = #{htsatscorecount}
+            <if test="htSatScoreCount != null">
+                and ht_sat_score_count = #{htSatScoreCount}
             </if>
-            <if test="htsatscoreaverage != null">
-                and htSatScoreAverage = #{htsatscoreaverage}
+            <if test="htSatScoreAverage != null">
+                and ht_sat_score_average = #{htSatScoreAverage}
             </if>
-            <if test="membercount != null">
-                and memberCount = #{membercount}
+            <if test="memberCount != null">
+                and member_count = #{memberCount}
             </if>
-            <if test="memberscorecount != null">
-                and memberScoreCount = #{memberscorecount}
+            <if test="memberScoreCount != null">
+                and member_score_count = #{memberScoreCount}
             </if>
-            <if test="memberscoreaverage != null">
-                and memberScoreAverage = #{memberscoreaverage}
+            <if test="memberScoreAverage != null">
+                and member_score_average = #{memberScoreAverage}
             </if>
             <if test="createTime != null">
                 and create_time = #{createTime}
@@ -77,23 +77,23 @@
             <if test="aid != null and aid != ''">
                 and aid = #{aid}
             </if>
-            <if test="htsatcount != null">
-                and htSatCount = #{htsatcount}
+            <if test="htSatCount != null">
+                and ht_sat_count = #{htSatCount}
             </if>
-            <if test="htsatscorecount != null">
-                and htSatScoreCount = #{htsatscorecount}
+            <if test="htSatScoreCount != null">
+                and ht_sat_score_count = #{htSatScoreCount}
             </if>
-            <if test="htsatscoreaverage != null">
-                and htSatScoreAverage = #{htsatscoreaverage}
+            <if test="htSatScoreAverage != null">
+                and ht_sat_score_average = #{htSatScoreAverage}
             </if>
-            <if test="membercount != null">
-                and memberCount = #{membercount}
+            <if test="memberCount != null">
+                and member_count = #{memberCount}
             </if>
-            <if test="memberscorecount != null">
-                and memberScoreCount = #{memberscorecount}
+            <if test="memberScoreCount != null">
+                and member_score_count = #{memberScoreCount}
             </if>
-            <if test="memberscoreaverage != null">
-                and memberScoreAverage = #{memberscoreaverage}
+            <if test="memberScoreAverage != null">
+                and member_score_average = #{memberScoreAverage}
             </if>
             <if test="createTime != null">
                 and create_time = #{createTime}
@@ -103,38 +103,38 @@
 
     <!--新增所有列-->
     <insert id="insert" keyProperty="id" useGeneratedKeys="true">
-        insert into admin_project_statistics(aid, htSatCount, htSatScoreCount, htSatScoreAverage, memberCount,
-                                             memberScoreCount, memberScoreAverage, create_time)
-        values (#{aid}, #{htsatcount}, #{htsatscorecount}, #{htsatscoreaverage}, #{membercount}, #{memberscorecount},
-                #{memberscoreaverage}, #{createTime})
+        insert into admin_project_statistics(aid, ht_sat_count, ht_sat_score_count, ht_sat_score_average, member_count,
+                                             member_score_count, member_score_average, create_time)
+        values (#{aid}, #{htSatCount}, #{htSatScoreCount}, #{htSatScoreAverage}, #{memberCount}, #{memberScoreCount},
+                #{memberScoreAverage}, #{createTime})
     </insert>
 
     <insert id="insertBatch">
-        insert into admin_project_statistics(aid, htSatCount, htSatScoreCount, htSatScoreAverage, memberCount,
-        memberScoreCount, memberScoreAverage, create_time)
+        insert into admin_project_statistics(aid, ht_sat_count, ht_sat_score_count, ht_sat_score_average, member_count,
+        member_score_count, member_score_average, create_time)
         values
         <foreach collection="entities" item="entity" separator=",">
-            (#{entity.aid}, #{entity.htsatcount}, #{entity.htsatscorecount}, #{entity.htsatscoreaverage},
-            #{entity.membercount}, #{entity.memberscorecount}, #{entity.memberscoreaverage}, #{entity.createTime})
+            (#{entity.aid}, #{entity.htSatCount}, #{entity.htSatScoreCount}, #{entity.htSatScoreAverage},
+            #{entity.memberCount}, #{entity.memberScoreCount}, #{entity.memberScoreAverage}, #{entity.createTime})
         </foreach>
     </insert>
 
     <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
-        insert into admin_project_statistics(aid, htSatCount, htSatScoreCount, htSatScoreAverage, memberCount,
-        memberScoreCount, memberScoreAverage, create_time)
+        insert into admin_project_statistics(aid, ht_sat_count, ht_sat_score_count, ht_sat_score_average, member_count,
+        member_score_count, member_score_average, create_time)
         values
         <foreach collection="entities" item="entity" separator=",">
-            (#{entity.aid}, #{entity.htsatcount}, #{entity.htsatscorecount}, #{entity.htsatscoreaverage},
-            #{entity.membercount}, #{entity.memberscorecount}, #{entity.memberscoreaverage}, #{entity.createTime})
+            (#{entity.aid}, #{entity.htSatCount}, #{entity.htSatScoreCount}, #{entity.htSatScoreAverage},
+            #{entity.memberCount}, #{entity.memberScoreCount}, #{entity.memberScoreAverage}, #{entity.createTime})
         </foreach>
         on duplicate key update
         aid = values(aid),
-        htSatCount = values(htSatCount),
-        htSatScoreCount = values(htSatScoreCount),
-        htSatScoreAverage = values(htSatScoreAverage),
-        memberCount = values(memberCount),
-        memberScoreCount = values(memberScoreCount),
-        memberScoreAverage = values(memberScoreAverage),
+        ht_sat_count = values(ht_sat_count),
+        ht_sat_score_count = values(ht_sat_score_count),
+        ht_sat_score_average = values(ht_sat_score_average),
+        member_count = values(member_count),
+        member_score_count = values(member_score_count),
+        member_score_average = values(member_score_average),
         create_time = values(create_time)
     </insert>
 
@@ -145,23 +145,23 @@
             <if test="aid != null and aid != ''">
                 aid = #{aid},
             </if>
-            <if test="htsatcount != null">
-                htSatCount = #{htsatcount},
+            <if test="htSatCount != null">
+                ht_sat_count = #{htSatCount},
             </if>
-            <if test="htsatscorecount != null">
-                htSatScoreCount = #{htsatscorecount},
+            <if test="htSatScoreCount != null">
+                ht_sat_score_count = #{htSatScoreCount},
             </if>
-            <if test="htsatscoreaverage != null">
-                htSatScoreAverage = #{htsatscoreaverage},
+            <if test="htSatScoreAverage != null">
+                ht_sat_score_average = #{htSatScoreAverage},
             </if>
-            <if test="membercount != null">
-                memberCount = #{membercount},
+            <if test="memberCount != null">
+                member_count = #{memberCount},
             </if>
-            <if test="memberscorecount != null">
-                memberScoreCount = #{memberscorecount},
+            <if test="memberScoreCount != null">
+                member_score_count = #{memberScoreCount},
             </if>
-            <if test="memberscoreaverage != null">
-                memberScoreAverage = #{memberscoreaverage},
+            <if test="memberScoreAverage != null">
+                member_score_average = #{memberScoreAverage},
             </if>
             <if test="createTime != null">
                 create_time = #{createTime},