|
|
@@ -371,14 +371,12 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
|
|
|
}
|
|
|
|
|
|
// 判断设备和用户是否绑定
|
|
|
- DevicePermiss devicePermiss = devicePermissDao.findTopByUserIdAndDeviceIdAndProjectOid(
|
|
|
- entity.getUserId(), entity.getDeviceId(), entity.getProjectOid());
|
|
|
+ DevicePermiss devicePermiss = devicePermissDao.findTopByUserIdAndDeviceIdAndProjectOid(entity.getUserId(), entity.getDeviceId(), entity.getProjectOid());
|
|
|
if (ObjectUtils.isEmpty(devicePermiss)) {
|
|
|
entity.setVerifyError("用户没有使用设备权限");
|
|
|
return;
|
|
|
}
|
|
|
- if (devicePermiss.getDataState() == null ||
|
|
|
- devicePermiss.getDataState() != DataState.Enable) {
|
|
|
+ if (devicePermiss.getDataState() == null || devicePermiss.getDataState() != DataState.Enable) {
|
|
|
entity.setVerifyError("用户设备权限未启用");
|
|
|
return;
|
|
|
}
|
|
|
@@ -726,6 +724,19 @@ public class ExpenseFlowServiceImpl extends SuperService implements ExpenseFlowS
|
|
|
return ResultContent.buildSuccess(statisticModel);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 机构今天和昨天的订单统计
|
|
|
+ *
|
|
|
+ * @param statisticSearch
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public ResultContent<BusinessMainStatisticModel> orgStatisticDay(StatisticSearch statisticSearch) {
|
|
|
+ BusinessMainStatisticModel statisticModel = new BusinessMainStatisticModel();
|
|
|
+
|
|
|
+
|
|
|
+ return ResultContent.buildSuccess(statisticModel);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 得到详情
|
|
|
*
|