|  |  |  | 
|---|
|  |  |  | import com.ld.igds.data.SimpleDepot; | 
|---|
|  |  |  | import com.ld.igds.grain.dto.GrainData; | 
|---|
|  |  |  | import com.ld.igds.grain.service.CoreGrainService; | 
|---|
|  |  |  | import com.ld.igds.inout.dto.InoutParam; | 
|---|
|  |  |  | import com.ld.igds.models.*; | 
|---|
|  |  |  | import com.ld.igds.sys.service.DicTriggerService; | 
|---|
|  |  |  | import com.ld.igds.sys.service.SysDeptService; | 
|---|
|  |  |  | 
|---|
|  |  |  | import com.ld.igds.warn.data.WarnParam; | 
|---|
|  |  |  | import com.ld.igds.warn.service.CoreWarnService; | 
|---|
|  |  |  | import com.ld.igds.weather.CoreWeatherService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import lombok.extern.slf4j.Slf4j; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import org.apache.commons.lang3.StringUtils; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.stereotype.Component; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import javax.annotation.Resource; | 
|---|
|  |  |  | import javax.servlet.http.HttpServletRequest; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.*; | 
|---|
|  |  |  | import java.util.stream.Collectors; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | private CoreWarnService coreWarnService; | 
|---|
|  |  |  | @Resource | 
|---|
|  |  |  | private RedisUtil redisUtil; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 获取入库作业中,仓库下拉框,值获取状态=非满仓的粮库 | 
|---|
|  |  |  | 
|---|
|  |  |  | log.debug("----------------根据用户IP获取选择-地磅----{}", userIp); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | String key = "INOUT:WEIGHT:" + userIp; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return (String) redisUtil.get(key); | 
|---|
|  |  |  | String sort =  (String)redisUtil.get(key); | 
|---|
|  |  |  | if(StringUtils.isEmpty(sort))sort="1"; | 
|---|
|  |  |  | return sort; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|