|
@@ -16,6 +16,7 @@ import com.huiju.estateagents.event.EventBus;
|
16
|
16
|
import com.huiju.estateagents.mapper.*;
|
17
|
17
|
import com.huiju.estateagents.service.ITaPersonService;
|
18
|
18
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
19
|
+import com.huiju.estateagents.service.ITaPointsRecordsService;
|
19
|
20
|
import com.huiju.estateagents.service.ITaRecommendCustomerService;
|
20
|
21
|
import org.springframework.beans.factory.annotation.Autowired;
|
21
|
22
|
import org.springframework.context.ApplicationContext;
|
|
@@ -72,6 +73,10 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
|
72
|
73
|
@Autowired
|
73
|
74
|
private TaBuildingDynamicMapper taBuildingDynamicMapper;
|
74
|
75
|
|
|
76
|
+ @Autowired
|
|
77
|
+ private ITaPointsRecordsService pointsRecordsService;
|
|
78
|
+
|
|
79
|
+
|
75
|
80
|
@Resource
|
76
|
81
|
private ApplicationContext applicationContext;
|
77
|
82
|
|
|
@@ -363,6 +368,7 @@ public class TaPersonServiceImpl extends ServiceImpl<TaPersonMapper, TaPerson> i
|
363
|
368
|
}
|
364
|
369
|
|
365
|
370
|
sign.setPerson(taPerson);
|
|
371
|
+ pointsRecordsService.checkinPoints(sign);
|
366
|
372
|
applicationContext.publishEvent(new EventBus(sign, EventBus.EventType.DailyCheckin));
|
367
|
373
|
|
368
|
374
|
return ResponseBean.success("success");
|