Browse Source

add 乐保历史数据处理

周箭河 4 years ago
parent
commit
661321563b

+ 1 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/StudentInstrumentServiceImpl.java

@@ -382,7 +382,7 @@ public class StudentInstrumentServiceImpl extends BaseServiceImpl<Long, StudentI
         Date nowDate = new Date();
         StudentInstrument studentInstrument = studentInstrumentDao.getStudentInstrument(2094765, 60);
         if (studentInstrument != null) {
-            startTime = DateUtil.addMinutes(nowDate, -30);
+            startTime = DateUtil.addMinutes(nowDate, -15);
         }
         List<StudentInstrument> oldStudentInstruments = studentInstrumentDao.getOldStudentInstrument(startTime);
         for (StudentInstrument oldStudentInstrument : oldStudentInstruments) {

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/StudentInstrumentMapper.xml

@@ -213,7 +213,7 @@
         AND (spod.goods_id_list_ IN ('437', '438', '439', '440', '441', '442', '443') OR
         FIND_IN_SET('76', spod.goods_id_list_))
         <if test="startTime != null ">
-            AND spo.create_time_ >= #{startTime}
+            AND spo.pay_time_ >= #{startTime}
         </if>
         ORDER BY spo.create_time_ ASC
     </select>