Commit d131b314 authored by 赵啸非's avatar 赵啸非

添加设备上线和下线的业务日志记录

parent dbadd95d
......@@ -58,6 +58,11 @@ public class DeviceStatTaskImpl implements ITaskExcuteService {
} else {
waitDeviceInfos.add(deviceEntity);
}
try {
Thread.sleep(0);
} catch (InterruptedException e) {
log.error("线程休眠异常!",e);
}
}
log.info("waitDeviceInfos size:{}", waitDeviceInfos.size());
......
......@@ -189,7 +189,7 @@ public class DeviceEntity extends DeviceVo {
/**
* 产品编码
*/
@Excel(name = "产品类型",cacheDict = "productDict" ,type = Excel.Type.IMPORT)
@Excel(name = "产品类型")
private String productCode;
/**
* 大厅Id
......
......@@ -74,6 +74,8 @@ public class ProductServiceImpl extends AbstractCRUDCacheServiceImpl<ProductDao,
@Autowired
private MessageProducer messageProducer;
@Override
protected void saveBefore(ProductEntity entity, Context context) throws AppException {
//新增产品编码不能重复
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment