Browse Source

看板fix

master
psh 7 months ago
parent
commit
2ba50d5b31
  1. 6
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/impl/PdmBdWorkorderServiceImpl.java

6
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pdm/service/impl/PdmBdWorkorderServiceImpl.java

@ -114,8 +114,10 @@ public class PdmBdWorkorderServiceImpl extends ServiceImpl<PdmBdWorkorderMapper,
public void updateState(String workorder_code,String workorder_status) {
PdmBdWorkorder entity=getOne(new LambdaQueryWrapper<PdmBdWorkorder>()
.eq(PdmBdWorkorder::getWorkorder_code, workorder_code));
entity.setWorkorder_status(workorder_status);
pdmBdWorkorderMapper.updateById(entity);
if(ObjectUtil.isNotEmpty(entity)) {
entity.setWorkorder_status(workorder_status);
pdmBdWorkorderMapper.updateById(entity);
}
pdmBdWorkorderDetailMapper.delete(new LambdaQueryWrapper<PdmBdWorkorderDetail>().eq(PdmBdWorkorderDetail::getWorkorder_code, workorder_code));
}
}

Loading…
Cancel
Save