|
@@ -85,7 +85,7 @@ public class MaterialsCheckPlanServiceImpl extends ServiceImpl<MaterialsCheckPla
|
|
|
List<MaterialsPlanCabinetDO> isMaterialsPlanCabinets = new ArrayList<>();
|
|
List<MaterialsPlanCabinetDO> isMaterialsPlanCabinets = new ArrayList<>();
|
|
|
for (Long cabinetId : createReqVO.getCabinetIds()) {
|
|
for (Long cabinetId : createReqVO.getCabinetIds()) {
|
|
|
MaterialsPlanCabinetDO isMaterialsPlanCabinet = new MaterialsPlanCabinetDO();
|
|
MaterialsPlanCabinetDO isMaterialsPlanCabinet = new MaterialsPlanCabinetDO();
|
|
|
- isMaterialsPlanCabinet.setId(materialsCheckPlan.getId());
|
|
|
|
|
|
|
+ isMaterialsPlanCabinet.setPlanId(materialsCheckPlan.getId());
|
|
|
isMaterialsPlanCabinet.setCabinetId(cabinetId);
|
|
isMaterialsPlanCabinet.setCabinetId(cabinetId);
|
|
|
isMaterialsPlanCabinets.add(isMaterialsPlanCabinet);
|
|
isMaterialsPlanCabinets.add(isMaterialsPlanCabinet);
|
|
|
}
|
|
}
|
|
@@ -168,11 +168,11 @@ public class MaterialsCheckPlanServiceImpl extends ServiceImpl<MaterialsCheckPla
|
|
|
// 3.开始新增计划和物资柜的关联关系
|
|
// 3.开始新增计划和物资柜的关联关系
|
|
|
// 3.1先删除,再新增
|
|
// 3.1先删除,再新增
|
|
|
materialsPlanCabinetService.remove(Wrappers.<MaterialsPlanCabinetDO>lambdaQuery()
|
|
materialsPlanCabinetService.remove(Wrappers.<MaterialsPlanCabinetDO>lambdaQuery()
|
|
|
- .eq(MaterialsPlanCabinetDO::getId, updateReqVO.getId()));
|
|
|
|
|
|
|
+ .eq(MaterialsPlanCabinetDO::getPlanId, updateReqVO.getId()));
|
|
|
List<MaterialsPlanCabinetDO> isMaterialsPlanCabinets = new ArrayList<>();
|
|
List<MaterialsPlanCabinetDO> isMaterialsPlanCabinets = new ArrayList<>();
|
|
|
for (Long cabinetId : updateReqVO.getCabinetIds()) {
|
|
for (Long cabinetId : updateReqVO.getCabinetIds()) {
|
|
|
MaterialsPlanCabinetDO materialsPlanCabinetDO = new MaterialsPlanCabinetDO();
|
|
MaterialsPlanCabinetDO materialsPlanCabinetDO = new MaterialsPlanCabinetDO();
|
|
|
- materialsPlanCabinetDO.setId(materialsCheckPlan.getId());
|
|
|
|
|
|
|
+ materialsPlanCabinetDO.setPlanId(materialsCheckPlan.getId());
|
|
|
materialsPlanCabinetDO.setCabinetId(cabinetId);
|
|
materialsPlanCabinetDO.setCabinetId(cabinetId);
|
|
|
isMaterialsPlanCabinets.add(materialsPlanCabinetDO);
|
|
isMaterialsPlanCabinets.add(materialsPlanCabinetDO);
|
|
|
}
|
|
}
|
|
@@ -195,7 +195,7 @@ public class MaterialsCheckPlanServiceImpl extends ServiceImpl<MaterialsCheckPla
|
|
|
removeBatchByIds(ids);
|
|
removeBatchByIds(ids);
|
|
|
// 开始删除关联的物资柜数据
|
|
// 开始删除关联的物资柜数据
|
|
|
materialsPlanCabinetService.remove(Wrappers.<MaterialsPlanCabinetDO>lambdaQuery()
|
|
materialsPlanCabinetService.remove(Wrappers.<MaterialsPlanCabinetDO>lambdaQuery()
|
|
|
- .in(MaterialsPlanCabinetDO::getId, ids));
|
|
|
|
|
|
|
+ .in(MaterialsPlanCabinetDO::getPlanId, ids));
|
|
|
// 取消关联的发送邮件
|
|
// 取消关联的发送邮件
|
|
|
MailTemplateDO template = mailTemplateService.getOne(Wrappers.<MailTemplateDO>lambdaQuery()
|
|
MailTemplateDO template = mailTemplateService.getOne(Wrappers.<MailTemplateDO>lambdaQuery()
|
|
|
.eq(MailTemplateDO::getCode, attributeService.getAttributeByKey("sys.template.check_plan").getSysAttrValue()));
|
|
.eq(MailTemplateDO::getCode, attributeService.getAttributeByKey("sys.template.check_plan").getSysAttrValue()));
|