| | |
| | | import com.fzzy.igds.service.*; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.fzzy.igds.utils.DateUtil; |
| | | import com.fzzy.work.data.OrderStatus; |
| | | import com.fzzy.work.data.WorkStatus; |
| | | import com.fzzy.work.service.WorkOrderService; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.domain.entity.SysDictData; |
| | |
| | | private EventInfoService eventInfoService; |
| | | @Resource |
| | | private SnapRecordService snapRecordService; |
| | | @Resource |
| | | private GatewaySerService gatewaySerService; |
| | | |
| | | /** |
| | | * 根据库区编码获取库区网关信息 |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | public GatewaySer getGatewaySerByDeptId(String deptId) { |
| | | if(StringUtils.isBlank(deptId)){ |
| | | deptId = ContextUtil.subDeptId(null); |
| | | } |
| | | |
| | | return gatewaySerService.getCacheSerByDeptId(deptId); |
| | | } |
| | | |
| | | /** |
| | | * 根据库区编码获取库区下所有仓库列表 |
| | |
| | | * @date 2025/12/17 |
| | | */ |
| | | public List<Company> listCompanyData() { |
| | | SysUser user = ContextUtil.getLoginUser(); |
| | | return coreCompanyService.listCompany(null, null, user.getDeptId() + ""); |
| | | return coreCompanyService.getCompanyByUserType(); |
| | | } |
| | | |
| | | |
| | |
| | | MainData mainData = new MainData(); |
| | | |
| | | //待办工单数 |
| | | Integer orderNum = workOrderService.getNumByUser(OrderStatus.STATUS_30.getCode(), user.getLoginName()); |
| | | Integer orderNum = workOrderService.getTodoNumByUser(user); |
| | | mainData.setOrderNum(orderNum); |
| | | |
| | | //统计出入库信息 |