生产计划自动化-查询条件修改 5.14

master
zhc077 2 years ago
parent de06be2a99
commit 6c122cb961
  1. 5
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/service/impl/IZyProductPlanAutoServiceImpl.java

@ -427,7 +427,10 @@ public class IZyProductPlanAutoServiceImpl extends ServiceImpl<ZyProductPlanMapp
@Transactional(rollbackFor = Exception.class, readOnly = false) @Transactional(rollbackFor = Exception.class, readOnly = false)
public void diffWorker(List<ZyPlanProcess> zyPlanProcessList, final String planId) { public void diffWorker(List<ZyPlanProcess> zyPlanProcessList, final String planId) {
ZyProductPlan zyProductPlan = iZyProductPlanService.getById(planId); ZyProductPlan zyProductPlan = iZyProductPlanService.getById(planId);
Groupx groupx = iGroupxService.getOne(new LambdaQueryWrapper<Groupx>().eq(Groupx::getDepartId, zyProductPlan.getWorkshopId())); Groupx groupx = iGroupxService.getOne(new LambdaQueryWrapper<Groupx>()
.eq(Groupx::getDepartId, zyProductPlan.getWorkshopId())
.eq(Groupx::getId, zyProductPlan.getTeamId())
);
List<GroupxMember> memberList = iGroupxMemberService.list(new LambdaQueryWrapper<GroupxMember>() List<GroupxMember> memberList = iGroupxMemberService.list(new LambdaQueryWrapper<GroupxMember>()
.eq(GroupxMember::getGroupxId, groupx.getId())); .eq(GroupxMember::getGroupxId, groupx.getId()));
if (ObjectUtils.isEmpty(memberList)) return; if (ObjectUtils.isEmpty(memberList)) return;

Loading…
Cancel
Save