|
|
|
@ -81,11 +81,11 @@ public class DmSygdMxServiceImpl extends ServiceImpl<DmSygdMxMapper, DmSygdMx> i
|
|
|
|
|
public ResultBean sygdPC() {
|
|
|
|
|
//todo 重复导入(三月滚动计划)的数据处理
|
|
|
|
|
//零件 删除
|
|
|
|
|
String begin=DateUtil.format(DateUtil.nextMonth(),"yyyy/MM/01");
|
|
|
|
|
String end =DateUtil.format(DateUtil.endOfMonth(DateUtil.offsetMonth(DateUtil.date(),3)),"yyyy/MM/dd");
|
|
|
|
|
// String begin=DateUtil.format(DateUtil.nextMonth(),"yyyy/MM/01");
|
|
|
|
|
// String end =DateUtil.format(DateUtil.endOfMonth(DateUtil.offsetMonth(DateUtil.date(),3)),"yyyy/MM/dd");
|
|
|
|
|
//测试日期
|
|
|
|
|
// String begin = "2023/08/01";
|
|
|
|
|
// String end = "2023/10/31";
|
|
|
|
|
String begin = "2023/08/01";
|
|
|
|
|
String end = "2023/10/31";
|
|
|
|
|
//todo 零件
|
|
|
|
|
ljService.remove(new QueryWrapper<DmSygdMxLj>().between("xzglxq", begin, end));
|
|
|
|
|
//todo 三月滚动明细
|
|
|
|
@ -119,7 +119,7 @@ public class DmSygdMxServiceImpl extends ServiceImpl<DmSygdMxMapper, DmSygdMx> i
|
|
|
|
|
Map<String, List<DmSygdMx>> mxMap = list.stream().collect(Collectors.groupingBy(x -> x.getKw() + x.getZl()));
|
|
|
|
|
//加工工序list
|
|
|
|
|
List<EmSbcnp> sbcnp = sbcnpService.list(new QueryWrapper<EmSbcnp>().orderByDesc("tzbh,zl,jgsx"));
|
|
|
|
|
Map<String, List<EmSbcnp>> cnMap = sbcnp.stream().collect(Collectors.groupingBy(l -> l.getTzbh() + l.getZl()));
|
|
|
|
|
Map<String, List<EmSbcnp>> cnMap = sbcnp.stream().collect(Collectors.groupingBy(l -> l.getKw().substring(1) + l.getZl()));
|
|
|
|
|
for (String ljkey : mxMap.keySet()) {
|
|
|
|
|
for (String cnkey : cnMap.keySet()) {
|
|
|
|
|
if (ljkey.equals(cnkey)) {
|
|
|
|
@ -457,9 +457,10 @@ public class DmSygdMxServiceImpl extends ServiceImpl<DmSygdMxMapper, DmSygdMx> i
|
|
|
|
|
//1.查询未来3个月明细信息
|
|
|
|
|
//测试
|
|
|
|
|
// List<DmSygdMx> list=null;
|
|
|
|
|
String begin = DateUtil.format(DateUtil.nextMonth(), "yyyy/MM/01");
|
|
|
|
|
String end = DateUtil.format(DateUtil.endOfMonth(DateUtil.offsetMonth(DateUtil.date(), 3)), "yyyy/MM/dd");
|
|
|
|
|
|
|
|
|
|
// String begin = DateUtil.format(DateUtil.nextMonth(), "yyyy/MM/01");
|
|
|
|
|
// String end = DateUtil.format(DateUtil.endOfMonth(DateUtil.offsetMonth(DateUtil.date(), 3)), "yyyy/MM/dd");
|
|
|
|
|
String begin = "2023/08/01";
|
|
|
|
|
String end = "2023/10/31";
|
|
|
|
|
List<DmSygdMx> list = this.list(new QueryWrapper<DmSygdMx>()
|
|
|
|
|
.between("jssj",
|
|
|
|
|
begin,
|
|
|
|
|