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

营销员新增客户统计表处理

anderx лет назад: 2
Родитель
Сommit
1a2f0a1107

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

@@ -18,5 +18,5 @@ public interface AdminUserCountMapper {
 
     int updateByAidAndDateSelective(AdminUserCount e);
 
-    Integer updateByaidAndDate(@Param("aid") String aid,@Param("startTime") String startTime, @Param("endTime")String endTime);
+    int updateByaidAndDate(@Param("aid") String aid,@Param("startTime") String startTime, @Param("endTime")String endTime);
 }

+ 2 - 2
src/main/java/com/goafanti/common/mapper/AdminUserCountMapper.xml

@@ -171,12 +171,12 @@
     </update>
 
 
-  <select id="updateByaidAndDate" resultType="java.lang.Integer">
+  <update id="updateByaidAndDate" >
     update admin_user_count a,(select aid,dates,count(*)counts
         from (select aid,DATE_FORMAT(a.transfer_time , '%Y-%m-%d') dates
         from user a where status =0 and source in(1,2,3) and share_type=0 and new_channel=0 and aid=  #{aid}
         and create_time BETWEEN #{startTime} and  #{endTime})x group by aid,dates)b
     set a.private_count =b.counts
     where a.aid=b.aid and a.date_time=b.dates
-  </select>
+  </update>
 </mapper>