+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *
+ * http://www.apache.org/licenses/LICENSE-2.0 + *
+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.energy.modules.system.service; + +import org.energy.modules.system.vo.HomePageVO; + +/** + * 服务类 + * + * @author DafX + */ +public interface IRoleDataService { + + HomePageVO findCurrHomePageInfo(); + +} diff --git a/src/main/java/org/energy/modules/system/service/impl/RoleDataServiceImpl.java b/src/main/java/org/energy/modules/system/service/impl/RoleDataServiceImpl.java new file mode 100644 index 0000000..94c11be --- /dev/null +++ b/src/main/java/org/energy/modules/system/service/impl/RoleDataServiceImpl.java @@ -0,0 +1,131 @@ +/** + * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com). + *
+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *
+ * http://www.apache.org/licenses/LICENSE-2.0 + *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.energy.modules.system.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.dayu.daf.core.tool.constant.DafConstant;
+import org.energy.modules.leger.entity.EquipmentLedger;
+import org.energy.modules.leger.entity.ToolInventoryRecord;
+import org.energy.modules.leger.service.IEquipmentLedgerService;
+import org.energy.modules.leger.service.IToolInventoryRecordService;
+import org.energy.modules.smart.entity.OperationTicket;
+import org.energy.modules.smart.entity.WorkOrder;
+import org.energy.modules.smart.entity.WorkPermit;
+import org.energy.modules.smart.service.IOperationTicketService;
+import org.energy.modules.smart.service.IWorkOrderService;
+import org.energy.modules.smart.service.IWorkPermitService;
+import org.energy.modules.spares.entity.ManufacturerInfo;
+import org.energy.modules.spares.entity.Material;
+import org.energy.modules.spares.entity.SupplierInfo;
+import org.energy.modules.spares.entity.Warehouse;
+import org.energy.modules.spares.service.IManufacturerInfoService;
+import org.energy.modules.spares.service.IMaterialService;
+import org.energy.modules.spares.service.ISupplierInfoService;
+import org.energy.modules.spares.service.IWarehouseService;
+import org.energy.modules.system.service.IRoleDataService;
+import org.energy.modules.system.vo.HomePageVO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 服务实现类
+ *
+ * @author DafX
+ */
+@Service
+public class RoleDataServiceImpl implements IRoleDataService {
+
+ @Autowired
+ private IEquipmentLedgerService equipmentLedgerService;
+ @Autowired
+ private IToolInventoryRecordService toolInventoryRecordService;
+ @Autowired
+ private IOperationTicketService operationTicketService;
+ @Autowired
+ private IWorkPermitService workPermitService;
+ @Autowired
+ private IWarehouseService warehouseService;
+ @Autowired
+ private IManufacturerInfoService manufacturerInfoService;
+ @Autowired
+ private ISupplierInfoService supplierInfoService;
+ @Autowired
+ private IMaterialService materialService;
+ @Autowired
+ private IWorkOrderService workOrderService;
+
+ @Override
+ public HomePageVO findCurrHomePageInfo() {
+ HomePageVO hp = new HomePageVO();
+
+ // Equipment Ledger Service
+ QueryWrapper