| | |
| | | import com.ruoyi.system.service.ISysDeptService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | } |
| | | |
| | | return inoutSysConfMapper.selectList(queryWrapper); |
| | | } |
| | | |
| | | /** |
| | | * 根据条件查询流程信息 |
| | | * |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | public InoutSysConf getInoutSysConf(String deptId) { |
| | | |
| | | List<InoutSysConf> list = listInoutSysConf(deptId, null); |
| | | |
| | | if (null == list || list.isEmpty()) { |
| | | return null; |
| | | } |
| | | return list.get(0); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public InoutSysConf getCacheInoutSysConf(String companyId, String deptId) { |
| | | String key = RedisConst.buildKey(deptId, Constant.CACHE_INOUT_SYS_CONF); |
| | | return (InoutSysConf) redisCache.getCacheObject(key); |
| | | InoutSysConf conf = (InoutSysConf) redisCache.getCacheObject(key); |
| | | if (null == conf) { |
| | | conf = getInoutSysConf(deptId); |
| | | flushInoutSysConfCache(conf); |
| | | } |
| | | return conf; |
| | | } |
| | | |
| | | /*--------------- 出入库设备 ---------------*/ |