|
|
@ -1,5 +1,6 @@
|
|
|
|
package com.dsic.gj_erp.pc.service;
|
|
|
|
package com.dsic.gj_erp.pc.service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.dsic.gj_erp.bean.jhgk.DmSygd;
|
|
|
|
import com.dsic.gj_erp.pc.工序CD;
|
|
|
|
import com.dsic.gj_erp.pc.工序CD;
|
|
|
|
import com.dsic.gj_erp.pc.订货计划;
|
|
|
|
import com.dsic.gj_erp.pc.订货计划;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
@ -9,10 +10,8 @@ import org.springframework.cache.annotation.Cacheable;
|
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
@Service
|
|
|
|
@AllArgsConstructor
|
|
|
|
@AllArgsConstructor
|
|
|
@ -46,6 +45,7 @@ public class 订货计划滚动信息接口 {
|
|
|
|
订货计划 _订货计划= (订货计划) redisTemplate.opsForValue().get(key);
|
|
|
|
订货计划 _订货计划= (订货计划) redisTemplate.opsForValue().get(key);
|
|
|
|
list.add(_订货计划);
|
|
|
|
list.add(_订货计划);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
list = list.stream().sorted(Comparator.comparing(订货计划::getMonth).thenComparing(订货计划::getIndex)).collect(Collectors.toList());
|
|
|
|
return list;
|
|
|
|
return list;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|