|
@@ -235,7 +235,7 @@ public class OrTeachingJobService {
|
|
|
* @Param
|
|
|
* @return
|
|
|
**/
|
|
|
- @Scheduled(fixedDelay = 300000)
|
|
|
+// @Scheduled(fixedDelay = 300000)
|
|
|
public void synchronousDoorOpeningAndClosingRecords(){
|
|
|
try {
|
|
|
List<DoorRecordDTO> allRecords = fetchAllDoorRecords();
|
|
@@ -244,7 +244,7 @@ public class OrTeachingJobService {
|
|
|
appGmtInfoMapper.insert(new AppGmtInfo()
|
|
|
.setFamilyId(data.getEmployeeNo())
|
|
|
.setSiteId(appDeviceMapper.selectOne(Wrappers.<AppDevice>lambdaQuery()
|
|
|
- .eq(AppDevice::getDeviceSerial, data.getDeviceSerial())).getSiteId())
|
|
|
+ .eq(AppDevice::getDeviceSerial, data.getDeviceSerial().split("-")[0])).getSiteId())
|
|
|
.setAuthResultMsg(data.getAuthResultMsg())
|
|
|
.setGmtCreate(DateUtils.str2Date(data.getGmtCreate(), new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")))
|
|
|
.setPicUrl(data.getPicUrl())
|