|
@@ -101,15 +101,12 @@ public class MhPostInspectServiceImpl extends AbstractCrudService<MhPostInspectM
|
|
|
|
|
|
@Override
|
|
|
@Transactional
|
|
|
- public void postInspectPush(MhPostInspect mhPostInspect) {
|
|
|
- String uuid = UUID.randomUUID().toString().replaceAll("-", "");
|
|
|
- mhPostInspect.setInspectCode(uuid);
|
|
|
+ public MhPostInspect postInspectPush(MhPostInspect mhPostInspect) {
|
|
|
mhPostInspect.setInspectTime(LocalDateTime.now());
|
|
|
mhPostInspect.setInspectStatus(0);
|
|
|
mhPostInspect.setCreator(SecurityUtils.getUsername());
|
|
|
mhPostInspect.setCreateTime(LocalDateTime.now());
|
|
|
this.save(mhPostInspect);
|
|
|
-// String message = mhPostInspect.toString();
|
|
|
//查岗时间与当前时间差
|
|
|
long data1 = LocalDateTime.now().toEpochSecond(ZoneOffset.of("+8"));
|
|
|
long data2 = mhPostInspect.getInspectTime().toEpochSecond(ZoneOffset.of("+8"));
|
|
@@ -120,6 +117,7 @@ public class MhPostInspectServiceImpl extends AbstractCrudService<MhPostInspectM
|
|
|
for (int i = 0; i < userCompanyList.size(); i++) {
|
|
|
this.webSocketPush(new TextMessage(message), userCompanyList.get(i).getUserId());
|
|
|
}
|
|
|
+ return mhPostInspect;
|
|
|
}
|
|
|
|
|
|
|